From: Theophile Ranquet Date: Wed, 10 Oct 2012 17:14:01 +0000 (+0000) Subject: obstack: import obstack_finish0 from master X-Git-Tag: v2.6.90~73 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/47a31596c62b2d25dd68ca11df30dccef4944e13 obstack: import obstack_finish0 from master * src/system.h (obstack_finish0): New. Signed-off-by: Akim Demaille --- diff --git a/src/system.h b/src/system.h index a8b0f584..3a82e7f3 100644 --- a/src/system.h +++ b/src/system.h @@ -202,7 +202,10 @@ typedef size_t uintptr_t; } while (0) +/* Append the ending 0, finish Obs, and return the string. */ +# define obstack_finish0(Obs) \ + (obstack_1grow (Obs, '\0'), (char *) obstack_finish (Obs)) /*-----------------------------------------.