summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/handy.h b/handy.h
index 3eb24774ec..6a7c2c785c 100644
--- a/handy.h
+++ b/handy.h
@@ -1,12 +1,16 @@
-/* $Header: handy.h,v 1.0 87/12/18 13:05:14 root Exp $
+/* $Header: handy.h,v 2.0 88/06/05 00:09:03 root Exp $
*
* $Log: handy.h,v $
- * Revision 1.0 87/12/18 13:05:14 root
- * Initial revision
+ * Revision 2.0 88/06/05 00:09:03 root
+ * Baseline version 2.0.
*
*/
-#define Null(type) ((type)0)
+#ifdef NULL
+#undef NULL
+#endif
+#define NULL 0
+#define Null(type) ((type)NULL)
#define Nullch Null(char*)
#define Nullfp Null(FILE*)
@@ -24,3 +28,14 @@
#define strGE(s1,s2) (strcmp(s1,s2) >= 0)
#define strnNE(s1,s2,l) (strncmp(s1,s2,l))
#define strnEQ(s1,s2,l) (!strncmp(s1,s2,l))
+
+#define MEM_SIZE unsigned int
+
+/* Line numbers are unsigned, 16 bits. */
+typedef unsigned short line_t;
+#ifdef lint
+#define NOLINE ((line_t)0)
+#else
+#define NOLINE ((line_t) 65535)
+#endif
+