* regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 21:33:24 +0000 (14:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 21:33:24 +0000 (14:33 -0700)
src/ChangeLog
src/regex.c

index 91d5069..2ebee67 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
+
        Use functions, not macros, for up- and down-casing (Bug#8254).
        * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
        (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove.  All callers changed
index e6d0da9..a60ff0c 100644 (file)
@@ -1267,6 +1267,13 @@ print_double_string (where, string1, size1, string2, size2)
 
 #endif /* not DEBUG */
 \f
+/* Use this to suppress gcc's `...may be used before initialized' warnings. */
+#ifdef lint
+# define IF_LINT(Code) Code
+#else
+# define IF_LINT(Code) /* empty */
+#endif
+\f
 /* Set by `re_set_syntax' to the current regexp syntax to recognize.  Can
    also be assigned to arbitrarily: each pattern buffer stores its own
    syntax, so it can be changed between regex compilations.  */