X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/deb63d811784855bbdd81d5b76c274aa8041dd1f..3dc4aa8c362af2ffeabd2d3cb15a5816d4584ed6:/src/system.h diff --git a/src/system.h b/src/system.h index 1d681c9a..369218cd 100644 --- a/src/system.h +++ b/src/system.h @@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef BISON_SYSTEM_H #define BISON_SYSTEM_H @@ -26,12 +26,10 @@ #include #include -#include #include #include -/* Verify a requirement at compile-time (unlike assert, which is runtime). */ -#define verify(name, assertion) struct name {char name[(assertion) ? 1 : -1];} +#include "unlocked-io.h" #if HAVE_SYS_TYPES_H # include @@ -54,6 +52,9 @@ typedef size_t uintptr_t; #endif +#include + +#include #include @@ -63,6 +64,9 @@ typedef size_t uintptr_t; #include +/* From lib/basename.c. */ +char *base_name (char const *name); + /*-----------------. | GCC extensions. | @@ -130,9 +134,9 @@ typedef size_t uintptr_t; | Obstacks. | `-----------*/ -# define obstack_chunk_alloc xmalloc -# define obstack_chunk_free free -# include +#define obstack_chunk_alloc xmalloc +#define obstack_chunk_free free +#include #define obstack_sgrow(Obs, Str) \ obstack_grow (Obs, Str, strlen (Str))