This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] AR Index, remove yacc-lex sources for boolean tests


  This simple patch
avoids  testing lex and yacc files
for 'boolean' 'false' and 'true'.

  Daniel, can I check this in?


Pierre Muller
Pascal language support maintainer for GDB


Index: gdb_ari.sh
===================================================================
RCS file: /cvs/gdbadmin/ss/gdb_ari.sh,v
retrieving revision 1.77
diff -u -p -r1.77 gdb_ari.sh
--- gdb_ari.sh  24 Oct 2007 20:24:55 -0000      1.77
+++ gdb_ari.sh  12 Mar 2009 10:02:38 -0000
@@ -1364,7 +1364,9 @@ Do not use `boolean'\'',  use `int'\'' i
     category["boolean"] = ari_regression
 }
 /(^|[^_[:alnum:]])boolean([^_[:alnum:]]|$)/ {
-    fail("boolean")
+    if (is_yacc_or_lex == 0) {
+       fail("boolean")
+    }
 }

 BEGIN { doc["false"] = "\
@@ -1372,7 +1374,9 @@ Definitely do not use `false'\'' in bool
     category["false"] = ari_regression
 }
 /(^|[^_[:alnum:]])false([^_[:alnum:]]|$)/ {
-    fail("false")
+    if (is_yacc_or_lex == 0) {
+       fail("false")
+    }
 }

 BEGIN { doc["true"] = "\
@@ -1380,7 +1384,9 @@ Do not try to use `true'\'' in boolean e
     category["true"] = ari_regression
 }
 /(^|[^_[:alnum:]])true([^_[:alnum:]]|$)/ {
-    fail("true")
+    if (is_yacc_or_lex == 0) {
+       fail("true")
+    }
 }

 BEGIN { doc["if assignment"] = "\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]