X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/211c818502252259ed149a28c4c3139249fad990..d065cb3853cf5763a035abbb58f6c5f598af7879:/src/system.h diff --git a/src/system.h b/src/system.h index a8b0f584..f40e0fc0 100644 --- a/src/system.h +++ b/src/system.h @@ -1,6 +1,6 @@ /* System-dependent definitions for Bison. - Copyright (C) 2000-2007, 2009-2012 Free Software Foundation, Inc. + Copyright (C) 2000-2007, 2009-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -51,7 +51,7 @@ typedef size_t uintptr_t; # endif -// Version mismatch. +/* Version mismatch. */ # define EX_MISMATCH 63 /*---------. @@ -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)) /*-----------------------------------------.