#include <stdio.h>
+#include <assert.h>
+
#ifdef MSDOS
# include <io.h>
#endif
# define getpid _getpid
#endif
-#if defined(HAVE_STDLIB_H) || defined(MSDOS)
+#if HAVE_STDLIB_H
# include <stdlib.h>
#endif
-#if defined(HAVE_UNISTD_H)
+#if HAVE_UNISTD_H
# include <unistd.h>
#endif
-#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
-# define HAVE_STRING_H 1
-#endif
-
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
# include <string.h>
/* An ANSI string.h and pre-ANSI memory.h might conflict. */
extern int errno;
#endif
+#if PROTOTYPES
+# define PARAMS(p) p
+#else
+# define PARAMS(p) ()
+#endif
/*-----------------.
| GCC extensions. |
#define SETBIT(x, i) ((x)[(i)/BITS_PER_WORD] |= (1<<((i) % BITS_PER_WORD)))
#define RESETBIT(x, i) ((x)[(i)/BITS_PER_WORD] &= ~(1<<((i) % BITS_PER_WORD)))
#define BITISSET(x, i) (((x)[(i)/BITS_PER_WORD] & (1<<((i) % BITS_PER_WORD))) != 0)
+
+
+/*-----------.
+| Booleans. |
+`-----------*/
+
+#ifndef TRUE
+# define TRUE (1)
+# define FALSE (0)
+#endif
+typedef int bool;