X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/c85541913b99f841de090aacf626bb8f52f7f727..8d9cffffeda10c91230e60026fbf7ecfc33a32ae:/src/flex-scanner.h diff --git a/src/flex-scanner.h b/src/flex-scanner.h index cf2b6b9e..c1e07eae 100644 --- a/src/flex-scanner.h +++ b/src/flex-scanner.h @@ -86,10 +86,7 @@ static struct obstack obstack_for_string; obstack_grow (&obstack_for_string, yytext, yyleng) # define STRING_FINISH \ - do { \ - obstack_1grow (&obstack_for_string, '\0'); \ - last_string = obstack_finish (&obstack_for_string); \ - } while (0) + (last_string = obstack_finish0 (&obstack_for_string)) # define STRING_FREE \ obstack_free (&obstack_for_string, last_string)