/* System-dependent definitions for Bison.
- Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
# include <sys/types.h>
#endif
-#if HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-#if HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-
-#include <stdint.h>
+#include <unistd.h>
+#include <inttypes.h>
#ifndef UINTPTR_MAX
/* This isn't perfect, but it's good enough for Bison, which needs
| Gnulib. |
`---------*/
-#include <stpcpy.h>
#include <unlocked-io.h>
#include <verify.h>
#include <xalloc.h>
#define N_(Msgid) (Msgid)
-/*-------------------------------.
-| Fix broken compilation flags. |
-`-------------------------------*/
-
-#ifndef LOCALEDIR
-# define LOCALEDIR "/usr/local/share/locale"
-#endif
-
-
/*-----------.
| Booleans. |
`-----------*/
#include <stdbool.h>
+
+/*-------------.
+| Assertions. |
+`-------------*/
+
+/* <assert.h>'s assertions are too heavyweight, and can be disabled
+ too easily, so use aver rather than assert. */
+static inline void
+aver (bool assertion)
+{
+ if (! assertion)
+ abort ();
+}
+
+
/*-----------.
| Obstacks. |
`-----------*/
} while (0)
-/* Assertions. <assert.h>'s assertions are too heavyweight, and can
- be disabled too easily, so implement it separately here. */
-#define assert(x) ((void) ((x) || (abort (), 0)))
-
-
/*---------------------------------------------.
| Debugging memory allocation (must be last). |
`---------------------------------------------*/