diff options
author | Theophile Ranquet <theophile.ranquet@gmail.com> | 2012-10-10 17:14:01 +0000 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-10-11 09:30:18 +0200 |
commit | 47a31596c62b2d25dd68ca11df30dccef4944e13 (patch) | |
tree | 1032498b86594ba8cb5b817239f4a30c5246d5d3 /src/system.h | |
parent | db8ab2be3337ef87629b761078ebc46a01e7f876 (diff) | |
download | bison-47a31596c62b2d25dd68ca11df30dccef4944e13.tar.gz |
obstack: import obstack_finish0 from master
* src/system.h (obstack_finish0): New.
Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 3 |
1 files changed, 3 insertions, 0 deletions
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)) /*-----------------------------------------. |