]> git.saurik.com Git - bison.git/commitdiff
maint: fix comment typos
authorJim Meyering <meyering@redhat.com>
Tue, 5 Jun 2012 07:02:36 +0000 (09:02 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 5 Jun 2012 07:17:43 +0000 (09:17 +0200)
Using http://github.com/lyda/misspell-check, massage its
output into sed commands to perform the suggested changes.
Initially, I filtered out the THRU->Through changes, because
that failed to retain capitalization in the grammar token.
Instead, do this manually, beforehand:

sed -i s/THRU/THROUGH/ tests/existing.at
git ls-files|misspellings -f -|perl -nl \
  -e '/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/ or next;' \
  -e '($file,$n,$l,$r)=($1,$2,$3,$4); $q="'\''"; $r=~s/$q/$q\\$q$q/g;'\
  -e 'print "sed -i $q${n}s!$l!$r!$q $file"'|bash

ChangeLog-2012
data/yacc.c
djgpp/README.in
djgpp/config.bat
doc/Doxyfile.in
src/parse-gram.c
tests/existing.at
tests/local.at

index b341b11cb751a7918de0a19b2c29f43be2ddd793..789e7605fef6d00342d9cae67daee083b889a826 100644 (file)
        (PERCENT_LEX_PARAM, PERCENT_PARSE_PARAM): Remove the {...} part,
        which is now, again, a separate token.
        Adjust all dependencies.
        (PERCENT_LEX_PARAM, PERCENT_PARSE_PARAM): Remove the {...} part,
        which is now, again, a separate token.
        Adjust all dependencies.
-       Whereever actions with $ and @ are used, use translate_code.
+       Wherever actions with $ and @ are used, use translate_code.
        (action): Remove this nonterminal which is now useless.
        * src/reader.c: Include assert.h, scan-gram.h and scan-code.h.
        (grammar_current_rule_action_append): Use translate_code.
        (action): Remove this nonterminal which is now useless.
        * src/reader.c: Include assert.h, scan-gram.h and scan-code.h.
        (grammar_current_rule_action_append): Use translate_code.
 
        * Makefile.am: DJGPP specific files added to EXTRA_DIST.
        * djgpp/Makefile.maint: Fix PACKAGE variable computation.
 
        * Makefile.am: DJGPP specific files added to EXTRA_DIST.
        * djgpp/Makefile.maint: Fix PACKAGE variable computation.
-       * djgpp/config.bat: Replace every occurence of the file name
+       * djgpp/config.bat: Replace every occurrence of the file name
        scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with
        c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS.
        scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with
        c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS.
-       * djgpp/config.sed: Replace every occurence of the file name
+       * djgpp/config.sed: Replace every occurrence of the file name
        scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with
        c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS.
        * djgpp/djunpack.bat: DJGPP specific file.
        scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with
        c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS.
        * djgpp/djunpack.bat: DJGPP specific file.
        (YYERROR): Goto to yyerrorlab, not yyerrlab1.
        (yyerrlab1): Remove, but where it used to be (now the bottom part of
        yyerrlab), when hitting EOF, pop the whole stack here instead of
        (YYERROR): Goto to yyerrorlab, not yyerrlab1.
        (yyerrlab1): Remove, but where it used to be (now the bottom part of
        yyerrlab), when hitting EOF, pop the whole stack here instead of
-       merely falling thru the default error handling mechanism.
+       merely falling through the default error handling mechanism.
        (yyerrorlab): New label, with the old contents of YYERROR,
        plus the following change: pop the stack of rhs corresponding
        to the production that invoked YYERROR.  That is how Yacc
        (yyerrorlab): New label, with the old contents of YYERROR,
        plus the following change: pop the stack of rhs corresponding
        to the production that invoked YYERROR.  That is how Yacc
 
 2002-07-30  Akim Demaille  <akim@epita.fr>
 
 
 2002-07-30  Akim Demaille  <akim@epita.fr>
 
-       `stage' was accidently included in a previous patch.
+       `stage' was accidentally included in a previous patch.
        Initiate its autoconfiscation.
 
        * configure.in: Look for malloc.h and sys/times.h.
        Initiate its autoconfiscation.
 
        * configure.in: Look for malloc.h and sys/times.h.
        (insert_accepting_state, augment_automaton): Remove, since now
        these states are automatically computed from the initial state.
        (generate_states): Adjust.
        (insert_accepting_state, augment_automaton): Remove, since now
        these states are automatically computed from the initial state.
        (generate_states): Adjust.
-       * src/print.c: When reporting a rule number to the user, substract
+       * src/print.c: When reporting a rule number to the user, subtract
        1, so that the axiom rule is rule 0, and the first user rule is 1.
        * src/reduce.c: Likewise.
        * src/print_graph.c (print_core): For the time being, just as for
        1, so that the axiom rule is rule 0, and the first user rule is 1.
        * src/reduce.c: Likewise.
        * src/print_graph.c (print_core): For the time being, just as for
index 19fd3011537c56b6936666cc9d63547d2283eee8..dbaff877a67243ef43df972a7b56aa9e1118b232 100644 (file)
@@ -197,7 +197,7 @@ m4_define([b4_declare_parser_state_variables], [b4_pure_if([[
        `yyvs': related to semantic values.]b4_locations_if([[
        `yyls': related to locations.]])[
 
        `yyvs': related to semantic values.]b4_locations_if([[
        `yyls': related to locations.]])[
 
-       Refer to the stacks thru separate pointers, to allow yyoverflow
+       Refer to the stacks through separate pointers, to allow yyoverflow
        to reallocate them elsewhere.  */
 
     /* The state stack.  */
        to reallocate them elsewhere.  */
 
     /* The state stack.  */
index 154c8a293a8d7eb1382eb8b60544028a736653dc..60fd952ac69abe3e1c4f18cc459bc7dc5ca27c81 100644 (file)
@@ -179,7 +179,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
        This will install the products into your DJGPP installation tree given
        by the default prefix "/dev/env/DJDIR".  If you prefer to install them
 
        This will install the products into your DJGPP installation tree given
        by the default prefix "/dev/env/DJDIR".  If you prefer to install them
-       into some other directory you will have to set prefix to the appropiate
+       into some other directory you will have to set prefix to the appropriate
        value:
          make install prefix=z:/some/other/place
 
        value:
          make install prefix=z:/some/other/place
 
index e30c939fddfc33112304f594a4be2d9da7d0d84b..ab566d70a241a9319f535fa2575d9c72338d2c26 100644 (file)
@@ -471,7 +471,7 @@ redir -e /dev/null rm %XSRC%/po/stamp-cat-id
 \r
 Rem Update the arguments file for the configure script.\r
 Rem We prefer without-included-gettext because libintl.a from gettext package\r
 \r
 Rem Update the arguments file for the configure script.\r
 Rem We prefer without-included-gettext because libintl.a from gettext package\r
-Rem is the only one that is garanteed to have been ported to DJGPP.\r
+Rem is the only one that is guaranteed to have been ported to DJGPP.\r
 echo --enable-nls --without-included-gettext >> args\r
 goto ConfigurePackage\r
 \r
 echo --enable-nls --without-included-gettext >> args\r
 goto ConfigurePackage\r
 \r
index 3d2ea64e213ef752082bf38dc3642dd70a0e12c2..b5557518d640639c2a7b58d0f65528190b88da99 100644 (file)
@@ -982,7 +982,7 @@ CLASS_GRAPH            = YES
 COLLABORATION_GRAPH    = YES
 
 # If the UML_LOOK tag is set to YES doxygen will generate inheritance and
 COLLABORATION_GRAPH    = YES
 
 # If the UML_LOOK tag is set to YES doxygen will generate inheritance and
-# collaboration diagrams in a style similiar to the OMG's Unified Modeling
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
 # Language.
 
 UML_LOOK               = NO
 # Language.
 
 UML_LOOK               = NO
index 989c91c29ef6b46bb4040822d01f5266ce243035..c5bf878cbe898a30dc4aad024f6bce88e40e1839 100644 (file)
@@ -1925,7 +1925,7 @@ YYLTYPE yylloc;
        `yyvs': related to semantic values.
        `yyls': related to locations.
 
        `yyvs': related to semantic values.
        `yyls': related to locations.
 
-       Refer to the stacks thru separate pointers, to allow yyoverflow
+       Refer to the stacks through separate pointers, to allow yyoverflow
        to reallocate them elsewhere.  */
 
     /* The state stack.  */
        to reallocate them elsewhere.  */
 
     /* The state stack.  */
index a34f92380fca2af1a06e01000b149c9ac5930cd8..582f6b3df6f7747c2da9a0324998f392c7d35fc0 100644 (file)
@@ -1478,7 +1478,7 @@ AT_TEST_EXISTING_GRAMMAR([[GNU pic (Groff 1.18.1) Grammar]],
 %token RAND
 %token SRAND
 %token COPY
 %token RAND
 %token SRAND
 %token COPY
-%token THRU
+%token THROUGH
 %token TOP
 %token BOTTOM
 %token UPPER
 %token TOP
 %token BOTTOM
 %token UPPER
@@ -1604,12 +1604,12 @@ placeless_element:
                {}
          DELIMITED
        | COPY TEXT
                {}
          DELIMITED
        | COPY TEXT
-       | COPY TEXT THRU
+       | COPY TEXT THROUGH
                {}
          DELIMITED
                {}
          until
                {}
          DELIMITED
                {}
          until
-       | COPY THRU
+       | COPY THROUGH
                {}
          DELIMITED
                {}
                {}
          DELIMITED
                {}
index 65e528f98637e48f2713826c4e8320324036d51b..54ac833d54dbf9370f527102af074ba5c78d4ff7 100644 (file)
@@ -619,7 +619,7 @@ main (void)
 # In some versions of Autoconf, AT_CHECK invokes AS_ESCAPE before
 # expanding macros, so it corrupts some special characters in the
 # macros.  To avoid this, expand now and pass it the result with proper
 # In some versions of Autoconf, AT_CHECK invokes AS_ESCAPE before
 # expanding macros, so it corrupts some special characters in the
 # macros.  To avoid this, expand now and pass it the result with proper
-# string quotation.  Assume args 7 thru 12 expand to properly quoted
+# string quotation.  Assume args 7 through 12 expand to properly quoted
 # strings.
 
 m4_if(m4_index(m4_quote($3), [no-xml]), -1,
 # strings.
 
 m4_if(m4_index(m4_quote($3), [no-xml]), -1,