]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
cosmetics: fix typos and wording in some yacc tests
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 10 Apr 2011 09:13:54 +0000 (11:13 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 10 Apr 2011 09:49:52 +0000 (11:49 +0200)
* tests/yacc-cxx.test (foo.cc): Clarify comment about the content
of this file being valid C++ but invalid C.
(parse1.yy): Likewise.  Also, remove redundant parentheses in a
`return' statement.
* tests/yacc-d-cxx.test (write_parse): Clarify comment about the
content of the generated files being valid C++ but invalid C.
(write_main): Likewise.
* tests/yacc-basic.test: Remove redundant parentheses in a
`return' statement.
* tests/yacc-d-vpath.test: Adjust spacing around curly brackets.
* tests/yaccvpath.test: Likewise.
* tests/yaccdry.test: Likewise.
* tests/yacc8.test: Likewise.
* tests/yacc4.test: Likewise.

Suggested by Ralf Wildenhues.

ChangeLog
tests/yacc-basic.test
tests/yacc-cxx.test
tests/yacc-d-cxx.test
tests/yacc-d-vpath.test
tests/yacc8.test
tests/yaccdry.test
tests/yaccvpath.test

index ecc0e1f9011857a22a6e06b4cbb005ba5006f17e..daba1c3f82aeb2373d8aeef140bd005c47f404c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2011-04-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       cosmetics: fix typos and wording in some yacc tests
+       * tests/yacc-cxx.test (foo.cc): Clarify comment about the content
+       of this file being valid C++ but invalid C.
+       (parse1.yy): Likewise.  Also, remove redundant parentheses in a
+       `return' statement.
+       * tests/yacc-d-cxx.test (write_parse): Clarify comment about the
+       content of the generated files being valid C++ but invalid C.
+       (write_main): Likewise.
+       * tests/yacc-basic.test: Remove redundant parentheses in a
+       `return' statement.
+       * tests/yacc-d-vpath.test: Adjust spacing around curly brackets.
+       * tests/yaccvpath.test: Likewise.
+       * tests/yaccdry.test: Likewise.
+       * tests/yacc8.test: Likewise.
+       * tests/yacc4.test: Likewise.
+       Suggested by Ralf Wildenhues.
+
 2011-04-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        yacc: update NEWS and docs about yacc-generated headers extensions
index 845a8619af87d8a5ba6468e4e6d81591cad81236..96625ccf444d63224cf21ecc2b0609efb3be7b12 100755 (executable)
@@ -45,7 +45,7 @@ cat > parse.y << 'END'
 %{
 #include <stdio.h>
 #include <stdlib.h>
-int yylex () { return (getchar ()); }
+int yylex () { return getchar (); }
 void yyerror (char *s) {}
 %}
 %%
index 86693d6a874c6daf09000aba4a70dda762aeb0b0..a6682e50bb600d61374e00feb7fc30c3ed5e6057 100755 (executable)
@@ -45,10 +45,10 @@ END
 
 cat > parse1.yy << 'END'
 %{
-// Valid as C++, but deliberatly invalid as C.
+// Valid C++, but deliberately invalid C.
 #include <cstdio>
 #include <cstdlib>
-int yylex (void) { return (getchar ()); }
+int yylex (void) { return getchar (); }
 void yyerror (const char *s) { return; }
 %}
 %%
@@ -59,7 +59,7 @@ cp parse1.yy parse3.yxx
 cp parse1.yy parse4.ypp
 
 cat > foo.cc << 'END'
-// Valid as C++, but deliberatly invalid as C.
+// Valid C++, but deliberately invalid C.
 using namespace std;
 int main (int argc, char **argv)
 {
index b94b14d5574fdbd837708a5618f5b4ba7dba04f9..a8de6b370eea8efde31f284565890865412673c4 100755 (executable)
@@ -31,7 +31,7 @@ write_parse ()
   header=$1
   sed 's/^ *//' <<END
     %{
-    // Valid as C++, but deliberatly invalid as C.
+    // Valid C++, but deliberately invalid C.
     #include <cstdlib>
     #include "$header"
     int yylex (void) { return 0; }
@@ -47,7 +47,7 @@ write_main ()
 {
   header=$1
   sed 's/^ *//' <<END
-    // Valid as C++, but deliberatly invalid as C.
+    // Valid C++, but deliberately invalid C.
     #include <cstdio>
     #include "$header"
     int main (int argc, char **argv)
index bb099904aad8266e61ee7447d33ee429635a6faa..0efa61e8905de718887ebb850a34d41536a05e15 100755 (executable)
@@ -44,7 +44,7 @@ END
 # Original parser, with `foobar'
 cat > parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %token FOOBAR
@@ -77,7 +77,7 @@ $sleep
 # New parser, with `fubar'
 cat > ../parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %token FUBAR
@@ -97,7 +97,7 @@ $sleep
 # New parser, with `maude'
 cat > ../parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %token MAUDE
index a683c8d0eeeb8ac40e55e837f1a7b577852b74a2..ca1ac686ca6b449f6c8395fefe9e453b6d2b3a16 100755 (executable)
@@ -52,7 +52,7 @@ mkdir foo
 
 cat > foo/parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %%
index d30fb802e602dc56cb67c215180ce70aa7565080..3ad4f75305e0bd6a9d8b031b7f1e5fd83bfc3f76 100755 (executable)
@@ -39,7 +39,7 @@ END
 
 cat > parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %%
index 52092fa2bacc6b6b92070e24f9760f207c753081..77df917dcbae7889ea9de98a5a547ab031499c6e 100755 (executable)
@@ -44,7 +44,7 @@ END
 # Original parser, with `foobar'
 cat > parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %%
@@ -71,7 +71,7 @@ $sleep
 # New parser, with `fubar'
 cat > ../parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %%
@@ -89,7 +89,7 @@ $sleep
 # New parser, with `maude'
 cat > ../parse.y << 'END'
 %{
-int yylex () {return 0;}
+int yylex () { return 0; }
 void yyerror (char *s) {}
 %}
 %%