]> git.saurik.com Git - bison.git/blobdiff - src/system.h
* src/getargs.h (raw_flag): Remove.
[bison.git] / src / system.h
index fbb298bcff7873d50f635f37abafd08197cbab33..c6f77daeba453b7d76cf94c1dfdce4683b836f63 100644 (file)
@@ -145,8 +145,8 @@ typedef int bool;
 #define obstack_chunk_free  free
 #include "obstack.h"
 
-#define obstack_grow_literal_string(Obs, Str) \
-  obstack_grow (Obs, Str, sizeof (Str) - 1)
+#define obstack_sgrow(Obs, Str) \
+  obstack_grow (Obs, Str, strlen (Str))
 
 #define obstack_fgrow1(Obs, Format, Arg1)      \
 do {                                           \
@@ -169,6 +169,13 @@ do {                                                       \
   obstack_grow (Obs, buf, strlen (buf));               \
 } while (0)
 
+#define obstack_fgrow4(Obs, Format, Arg1, Arg2, Arg3, Arg4)    \
+do {                                                           \
+  char buf[4096];                                              \
+  sprintf (buf, Format, Arg1, Arg2, Arg3, Arg4);               \
+  obstack_grow (Obs, buf, strlen (buf));                       \
+} while (0)
+
 
 /*---------------------------------.
 | Machine-dependencies for Bison.  |