summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/common.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-07-21 14:30:31 +0000
committerderaadt <deraadt@openbsd.org>2003-07-21 14:30:31 +0000
commit1422fa04b6564ae060dcb7357235dfa9db93b9a9 (patch)
tree163cb68ab3a16c7d00b4ecfb7ad8e827ec017a3a /usr.bin/patch/common.h
parentknf (diff)
downloadwireguard-openbsd-1422fa04b6564ae060dcb7357235dfa9db93b9a9.tar.xz
wireguard-openbsd-1422fa04b6564ae060dcb7357235dfa9db93b9a9.zip
remove a bit more junk
Diffstat (limited to 'usr.bin/patch/common.h')
-rw-r--r--usr.bin/patch/common.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/usr.bin/patch/common.h b/usr.bin/patch/common.h
index 22512185130..fb5cfc1423e 100644
--- a/usr.bin/patch/common.h
+++ b/usr.bin/patch/common.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.h,v 1.14 2003/07/21 14:00:41 deraadt Exp $ */
+/* $OpenBSD: common.h,v 1.15 2003/07/21 14:30:31 deraadt Exp $ */
#define DEBUGGING
@@ -24,15 +24,8 @@
/* constants */
-/* AIX predefines these. */
-#ifdef TRUE
-#undef TRUE
-#endif
-#ifdef FALSE
-#undef FALSE
-#endif
-#define TRUE (1)
-#define FALSE (0)
+#define TRUE 1
+#define FALSE 0
#define MAXHUNKSIZE 100000 /* is this enough lines? */
#define INITHUNKMAX 125 /* initial dynamic allocation size */
@@ -68,7 +61,6 @@
typedef char bool;
typedef long LINENUM; /* must be signed */
-typedef unsigned MEM; /* what to feed malloc */
/* globals */
@@ -135,10 +127,3 @@ EXT char else_defined[] INIT("#else\n"); /* #else */
EXT char end_defined[128]; /* #endif xyzzy */
EXT char *revision INIT(Nullch); /* prerequisite revision, if any */
-
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
-#if !defined(S_ISREG) && defined(S_IFREG)
-#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
-#endif