package: codespell

* data/skeletons/glr2.cc, src/parse-gram.y: Fix spelling.
This commit is contained in:
Akim Demaille
2021-01-16 18:05:57 +01:00
parent 4fd2e5c22a
commit 4f6d1f5fdc
3 changed files with 7 additions and 6 deletions

View File

@@ -140,9 +140,10 @@ gen-ChangeLog:
$(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -o $@ -E $< $(CC) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -o $@ -E $<
.PHONY: codespell .PHONY: codespell
CODESPELL = codespell
codespell: codespell:
$(AM_V_GEN) cd $(srcdir) \ $(AM_V_GEN) cd $(srcdir) \
&& codespell \ && $(CODESPELL) \
--regex "[\\w\\-'\`]+\+*" \ --regex "[\\w\\-'\`]+\+*" \
--ignore-words-list "ba,circularly,cloneable,copyable,define'd,dout,froms,iff,ifset,od,ois" \ --ignore-words-list "ba,circularly,cloneable,copyable,define'd,dout,froms,iff,ifset,od,ois" \
$$(git ls-files data doc lib src tests) $$(git ls-files data doc lib src tests)

View File

@@ -920,7 +920,7 @@ public:
YY_IGNORE_NULL_DEREFERENCE_END 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 }; enum { MAGIC = 713705 };
unsigned int magic_;]])[ unsigned int magic_;]])[
}; };
@@ -1312,7 +1312,7 @@ public:
YY_IGNORE_NULL_DEREFERENCE_END 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 }; enum { MAGIC = 0xeff1cace };
unsigned int magic_;]])[ unsigned int magic_;]])[
}; };
@@ -1440,7 +1440,7 @@ public:
YYASSERT (this->magic_ == MAGIC); YYASSERT (this->magic_ == MAGIC);
YYASSERT (this->is_state_ == false || this->is_state_ == true); 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. enum { MAGIC = 0xDEAD1ACC }; // 3735886540.
const unsigned int magic_;]])[ const unsigned int magic_;]])[
}; };
@@ -1605,7 +1605,7 @@ private:
yyitems.reserve (yynewSize); yyitems.reserve (yynewSize);
const glr_stack_item *newbase = &yyitems[0]; 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. // is no reason for objects to be aligned on their size.
const ptrdiff_t disp const ptrdiff_t disp
= reinterpret_cast<const char*> (newbase) - reinterpret_cast<const char*> (oldbase); = reinterpret_cast<const char*> (newbase) - reinterpret_cast<const char*> (oldbase);

View File

@@ -518,7 +518,7 @@ tag:
// A non empty list of possibly tagged symbols for %nterm. // A non empty list of possibly tagged symbols for %nterm.
// //
// Can easily be defined like symbol_decls but restricted to ID, but // 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"'. // make nicer error messages on "%nterm 'a'" or '%nterm FOO "foo"'.
nterm_decls: nterm_decls:
token_decls token_decls