bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/5] package: codespell


From: Akim Demaille
Subject: [PATCH 5/5] package: codespell
Date: Sun, 17 Jan 2021 08:06:36 +0100

* 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 7a930c26b..41c885cee 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 0925b37de..a674617f6 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<const char*> (newbase) - reinterpret_cast<const 
char*> (oldbase);
diff --git a/src/parse-gram.y b/src/parse-gram.y
index 02ba5093d..fb48f3dce 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
-- 
2.30.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]