summaryrefslogtreecommitdiff
path: root/graphics/pstex/std.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/pstex/std.h
Initial commit
Diffstat (limited to 'graphics/pstex/std.h')
-rw-r--r--graphics/pstex/std.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/graphics/pstex/std.h b/graphics/pstex/std.h
new file mode 100644
index 0000000000..b2de9b4645
--- /dev/null
+++ b/graphics/pstex/std.h
@@ -0,0 +1,54 @@
+/*
+ * Standard definitions.
+ *
+ * Neil Hunt (Neil%Teleos.com@ai.sri.com).
+ *
+ * Copyright (c) 1989 Teleos Research, Inc 1989.
+ * Copyright (c) 1988 Schlumberger Technologies, Inc 1988.
+ *
+ * Anyone can use this software in any manner they choose,
+ * including modification and redistribution, provided they make
+ * no charge for it, and these conditions remain unchanged.
+ *
+ * This program is distributed as is, with all faults (if any), and
+ * without any wrranty. No author or distributor accepts responsibility
+ * to anyone for the consequences of using it, or for whether it serves any
+ * particular purpose at all, or any other reason.
+ *
+ * $Log: std.h,v $
+ * Revision 1.1 89/02/10 18:41:57 neil
+ * Initial revision
+ *
+ */
+
+#ifndef _TYPES_
+typedef unsigned int uint;
+typedef short ushort;
+#endif /* _TYPES_ */
+typedef unsigned char uchar;
+#ifdef bool
+#undef bool
+#endif /* bool */
+typedef unsigned int bool;
+
+#define DEL '\177'
+#define ESC '\033'
+#define Control(c) ((c) - 0x40)
+
+#define forward extern
+
+#define Range(min, x, max) (((x) < (min))? \
+ (min) : (((x) > (max))? (max) : (x)) \
+ )
+
+#define MAXINT 2147483647
+#define NEGMAXINT (-2147483648)
+
+#ifndef TRUE
+#define TRUE 1
+#define FALSE 0
+#endif /* TRUE */
+
+#define Abs(n) (((n) >= 0.0)? (n) : -(n))
+#define Min(a, b) ((a) > (b)? (b) : (a))
+#define Max(a, b) ((a) < (b)? (b) : (a))