From 4f6d1f5fdcd131694c5b2d2f0f8d2e393c735624 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sat, 16 Jan 2021 18:05:57 +0100 Subject: [PATCH] package: codespell * data/skeletons/glr2.cc, src/parse-gram.y: Fix spelling. --- Makefile.am | 3 ++- data/skeletons/glr2.cc | 8 ++++---- src/parse-gram.y | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 7a930c26..41c885ce 100644 --- a/Makefile.am +++ b/Makefile.am @@ -140,9 +140,10 @@ gen-ChangeLog: $(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -o $@ -E $< .PHONY: codespell +CODESPELL = codespell codespell: $(AM_V_GEN) cd $(srcdir) \ - && codespell \ + && $(CODESPELL) \ --regex "[\\w\\-'’\`]+\+*" \ --ignore-words-list "ba,circularly,cloneable,copyable,define'd,dout,froms,iff,ifset,od,ois" \ $$(git ls-files data doc lib src tests) diff --git a/data/skeletons/glr2.cc b/data/skeletons/glr2.cc index 0925b37d..a674617f 100644 --- a/data/skeletons/glr2.cc +++ b/data/skeletons/glr2.cc @@ -920,7 +920,7 @@ public: YY_IGNORE_NULL_DEREFERENCE_END } - // A magic number to check our pointer arithmetics is sane. + // A magic number to check our pointer arithmetic is sane. enum { MAGIC = 713705 }; unsigned int magic_;]])[ }; @@ -1312,7 +1312,7 @@ public: YY_IGNORE_NULL_DEREFERENCE_END } - // A magic number to check our pointer arithmetics is sane. + // A magic number to check our pointer arithmetic is sane. enum { MAGIC = 0xeff1cace }; unsigned int magic_;]])[ }; @@ -1440,7 +1440,7 @@ public: YYASSERT (this->magic_ == MAGIC); YYASSERT (this->is_state_ == false || this->is_state_ == true); } - // A magic number to check our pointer arithmetics is sane. + // A magic number to check our pointer arithmetic is sane. enum { MAGIC = 0xDEAD1ACC }; // 3735886540. const unsigned int magic_;]])[ }; @@ -1605,7 +1605,7 @@ private: yyitems.reserve (yynewSize); const glr_stack_item *newbase = &yyitems[0]; - // Adjust the pointers. Perform raw pointer arithmetics, as there + // Adjust the pointers. Perform raw pointer arithmetic, as there // is no reason for objects to be aligned on their size. const ptrdiff_t disp = reinterpret_cast (newbase) - reinterpret_cast (oldbase); diff --git a/src/parse-gram.y b/src/parse-gram.y index 02ba5093..fb48f3dc 100644 --- a/src/parse-gram.y +++ b/src/parse-gram.y @@ -518,7 +518,7 @@ tag: // A non empty list of possibly tagged symbols for %nterm. // // Can easily be defined like symbol_decls but restricted to ID, but -// using token_decls allows to reudce the number of rules, and also to +// using token_decls allows to reduce the number of rules, and also to // make nicer error messages on "%nterm 'a'" or '%nterm FOO "foo"'. nterm_decls: token_decls