]> Savannah Git Hosting - gnulib.git/commitdiff
GNU shell utilities
authorJim Meyering <jim@meyering.net>
Mon, 4 Oct 1993 21:07:56 +0000 (21:07 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 4 Oct 1993 21:07:56 +0000 (21:07 +0000)
lib/getdate.y
lib/strftime.c

index cdc2b5565dbd13e45fbd89fd4fcd2f29a99ae538..e5cf18a16b0fcb731641080d9f14733cff560aab 100644 (file)
 /* SUPPRESS 288 on yyerrlab *//* Label unused */
 
 #ifdef HAVE_CONFIG_H
+#if defined (emacs) || defined (CONFIG_BROKETS)
+#include <config.h>
+#else
 #include "config.h"
 #endif
+#endif
 
 /* Since the code of getdate.y is not included in the Emacs executable
    itself, there is no need to #define static in this file.  Even if
index a075717507ee38de9a482d5695accc87168137b2..cfd41adbee8ba1a6c94d4a570df30e7ff70d3aca 100644 (file)
@@ -104,7 +104,13 @@ static char const * const months[] =
 /* Add character C to STRING and increment LENGTH,
    unless LENGTH would exceed MAX. */
 
-#define add_char(c) (length + 1 <= max) && (string[length++] = (c))
+#define add_char(c)                                                    \
+  do                                                                   \
+    {                                                                  \
+      if (length + 1 <= max)                                           \
+       string[length++] = (c);                                         \
+    }                                                                  \
+  while (0)
 
 /* Add a 2 digit number to STRING, padding if specified.
    Return the number of characters added, up to MAX. */