obstack: import obstack_finish0 from master

* src/system.h (obstack_finish0): New.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
Theophile Ranquet
2012-10-10 17:14:01 +00:00
committed by Akim Demaille
parent db8ab2be33
commit 47a31596c6

View File

@@ -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))
/*-----------------------------------------.