summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/sprite.h
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-02 20:24:42 +0000
committerwill <will@FreeBSD.org>2000-12-02 20:24:42 +0000
commit65a98afaedffb34df44fe7938b9f87f8dbce1cd6 (patch)
tree9dcfaa566f6b1b0fd7a3947c238332a19dd073c2 /usr.bin/make/sprite.h
parent33a20c676da04b4c787eef9bd8f8ef901c319fee (diff)
downloadFreeBSD-src-65a98afaedffb34df44fe7938b9f87f8dbce1cd6.zip
FreeBSD-src-65a98afaedffb34df44fe7938b9f87f8dbce1cd6.tar.gz
There's also no point in #typedef'ing void/char pointers. Accordingly,
rip out ClientData/Address pointers and use standard types. Obtained from: OpenBSD
Diffstat (limited to 'usr.bin/make/sprite.h')
-rw-r--r--usr.bin/make/sprite.h45
1 files changed, 2 insertions, 43 deletions
diff --git a/usr.bin/make/sprite.h b/usr.bin/make/sprite.h
index fd2cef6..6e3207b 100644
--- a/usr.bin/make/sprite.h
+++ b/usr.bin/make/sprite.h
@@ -48,7 +48,6 @@
#ifndef _SPRITE
#define _SPRITE
-
/*
* A boolean type is defined as an integer, not an enum. This allows a
* boolean argument to be an expression that isn't strictly 0 or 1 valued.
@@ -62,49 +61,9 @@ typedef int Boolean;
#define FALSE 0
#endif /* FALSE */
-/*
- * Functions that must return a status can return a ReturnStatus to
- * indicate success or type of failure.
- */
-
typedef int ReturnStatus;
-/*
- * The following statuses overlap with the first 2 generic statuses
- * defined in status.h:
- *
- * SUCCESS There was no error.
- * FAILURE There was a general error.
- */
-
-#define SUCCESS 0x00000000
-#define FAILURE 0x00000001
-
-
-/*
- * A nil pointer must be something that will cause an exception if
- * referenced. There are two nils: the kernels nil and the nil used
- * by user processes.
- */
-
-#ifndef NULL
-#define NULL 0
-#endif /* NULL */
-
-/*
- * An address is just a pointer in C. It is defined as a character pointer
- * so that address arithmetic will work properly, a byte at a time.
- */
-
-typedef char *Address;
-
-/*
- * ClientData is an uninterpreted word. It is defined as an int so that
- * kdbx will not interpret client data as a string. Unlike an "Address",
- * client data will generally not be used in arithmetic.
- * But we don't have kdbx anymore so we define it as void (christos)
- */
-
-typedef void *ClientData;
+#define SUCCESS 0
+#define FAILURE 1
#endif /* _SPRITE */
OpenPOWER on IntegriCloud