summaryrefslogtreecommitdiff
path: root/dviware/quicspool/standard
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 /dviware/quicspool/standard
Initial commit
Diffstat (limited to 'dviware/quicspool/standard')
-rw-r--r--dviware/quicspool/standard/makefile28
-rw-r--r--dviware/quicspool/standard/makefile.trw28
-rw-r--r--dviware/quicspool/standard/standard.h14
-rw-r--r--dviware/quicspool/standard/standconst.h75
-rw-r--r--dviware/quicspool/standard/standenviron.h49
-rw-r--r--dviware/quicspool/standard/standmacro.h21
-rw-r--r--dviware/quicspool/standard/standtype.h118
7 files changed, 333 insertions, 0 deletions
diff --git a/dviware/quicspool/standard/makefile b/dviware/quicspool/standard/makefile
new file mode 100644
index 0000000000..c0e2b528d0
--- /dev/null
+++ b/dviware/quicspool/standard/makefile
@@ -0,0 +1,28 @@
+# $Header: Makefile,v 1.1 88/01/15 13:07:00 simpson Rel $
+# $Log: Makefile,v $
+#Revision 1.1 88/01/15 13:07:00 simpson
+#initial release
+#
+#Revision 0.1 87/12/11 18:34:10 simpson
+#beta test
+#
+INCLUDE=/usr/include/local
+
+all:
+
+# System include files are needed right away
+configure:
+ install -c -m 644 standard.h $(INCLUDE)
+ install -c -m 644 standmacro.h $(INCLUDE)
+ install -c -m 644 standtype.h $(INCLUDE)
+ install -c -m 644 standenviron.h $(INCLUDE)
+ install -c -m 644 standconst.h $(INCLUDE)
+
+install:
+ install -c -m 644 standard.h $(INCLUDE)
+ install -c -m 644 standmacro.h $(INCLUDE)
+ install -c -m 644 standtype.h $(INCLUDE)
+ install -c -m 644 standenviron.h $(INCLUDE)
+ install -c -m 644 standconst.h $(INCLUDE)
+
+clean:
diff --git a/dviware/quicspool/standard/makefile.trw b/dviware/quicspool/standard/makefile.trw
new file mode 100644
index 0000000000..2967f24873
--- /dev/null
+++ b/dviware/quicspool/standard/makefile.trw
@@ -0,0 +1,28 @@
+# $Header: Makefile.TRW,v 1.1 88/01/15 13:07:04 simpson Rel $
+# $Log: Makefile.TRW,v $
+#Revision 1.1 88/01/15 13:07:04 simpson
+#initial release
+#
+#Revision 0.1 87/12/11 18:34:11 simpson
+#beta test
+#
+INCLUDE=/usr/include/local
+
+all:
+
+# System include files are needed right away
+configure:
+ install -c -m 644 standard.h $(INCLUDE)
+ install -c -m 644 standmacro.h $(INCLUDE)
+ install -c -m 644 standtype.h $(INCLUDE)
+ install -c -m 644 standenviron.h $(INCLUDE)
+ install -c -m 644 standconst.h $(INCLUDE)
+
+install:
+ install -c -m 644 standard.h $(INCLUDE)
+ install -c -m 644 standmacro.h $(INCLUDE)
+ install -c -m 644 standtype.h $(INCLUDE)
+ install -c -m 644 standenviron.h $(INCLUDE)
+ install -c -m 644 standconst.h $(INCLUDE)
+
+clean:
diff --git a/dviware/quicspool/standard/standard.h b/dviware/quicspool/standard/standard.h
new file mode 100644
index 0000000000..28ff4aae78
--- /dev/null
+++ b/dviware/quicspool/standard/standard.h
@@ -0,0 +1,14 @@
+/* $Header: standard.h,v 1.1 88/01/15 13:07:06 simpson Rel $ */
+/*
+$Log: standard.h,v $
+ * Revision 1.1 88/01/15 13:07:06 simpson
+ * initial release
+ *
+ * Revision 0.1 87/12/11 18:34:12 simpson
+ * beta test
+ *
+*/
+#include <local/standenviron.h>
+#include <local/standconst.h>
+#include <local/standtype.h>
+#include <local/standmacro.h>
diff --git a/dviware/quicspool/standard/standconst.h b/dviware/quicspool/standard/standconst.h
new file mode 100644
index 0000000000..aeb06c2bbb
--- /dev/null
+++ b/dviware/quicspool/standard/standconst.h
@@ -0,0 +1,75 @@
+/* $Header: standconst.h,v 1.1 88/01/15 13:07:08 simpson Rel $ */
+/*
+$Log: standconst.h,v $
+ * Revision 1.1 88/01/15 13:07:08 simpson
+ * initial release
+ *
+ * Revision 0.1 87/12/11 18:34:13 simpson
+ * beta test
+ *
+*/
+/* Standard constants. */
+#ifndef STANDARD_CONST
+#define STANDARD_CONST
+
+/*
+ * These are the only values boolean variables may be set to,
+ * or that boolean functions may return.
+ */
+#define TRUE 1
+#define FALSE 0
+
+/*
+ * Program exit status.
+ * These two codes are intended to be used as arguments to the
+ * exit(2) system call. Obviously, more failure codes may be
+ * defined but for simple programs that need indicate only
+ * success or failure these will suffice.
+ */
+#define SUCCEED 0 /* successful program execution */
+#define FAIL 1 /* some error in running program */
+
+/* All bits on or off. */
+#define ON ~(long)0 /* all bits set */
+#define OFF (long)0 /* all bits off */
+
+/* UNIX file descriptor numbers for standard input, output, and error. */
+#define STANDARD_IN 0
+#define STANDARD_OUT 1
+#define STANDARD_ERROR 2
+
+
+/*
+ * Extreme values.
+ * These constants are the largest and smallest values
+ * that variables of the indicated type may hold.
+ */
+#if defined(vax) || defined(pyr) || defined(sun)
+# define MAX_TINY 0x7f
+# define MIN_TINY 0x80
+
+# define MAX_UNSIGNED_TINY 0xff
+# define MIN_UNSIGNED_TINY 0
+
+# define MAX_SHORT 0x7fff
+# define MIN_SHORT 0x8000
+
+# define MAX_UNSIGNED_SHORT 0xffff
+# define MIN_UNSIGNED_SHORT 0
+
+# define MAX_INTEGER 0x7fffffff
+# define MIN_INTEGER 0x80000000
+
+# define MAX_UNSIGNED_INTEGER 0xffffffff
+# define MIN_UNSIGNED_INTEGER 0
+
+# define MAX_LONG MAX_INTEGER
+# define MIN_LONG MIN_INTEGER
+# define MAX_UNSIGNED_LONG MAX_UNSIGNED_INTEGER
+# define MIN_UNSIGNED_LONG MIN_UNSIGNED_INTEGER
+# define BITS_PER_BYTE 8
+#endif
+
+/* for pointers */
+#define NIL ((long)0)
+#endif STANDARD_CONST
diff --git a/dviware/quicspool/standard/standenviron.h b/dviware/quicspool/standard/standenviron.h
new file mode 100644
index 0000000000..081f01ea1d
--- /dev/null
+++ b/dviware/quicspool/standard/standenviron.h
@@ -0,0 +1,49 @@
+/* $Header: standenviron.h,v 1.1 88/01/15 13:07:12 simpson Rel $ */
+/*
+$Log: standenviron.h,v $
+ * Revision 1.1 88/01/15 13:07:12 simpson
+ * initial release
+ *
+ * Revision 0.1 87/12/11 18:34:14 simpson
+ * beta test
+ *
+*/
+/*
+ * This file defines the machine/compiler C environment. It defines
+ * pre-processor macros that tell what C features are supported.
+ *
+ * #define HAS_UNSIGNED_SHORT Implies unsigned shorts are supported
+ * #define CHAR_IS_SIGNED Implies chars are signed
+ * #define HAS_UNSIGNED_CHAR Implies unsigned chars are supported
+ * #define HAS_UNSIGNED_LONG Implies unsigned longs are supported
+ * #define BITS_PER_CHAR n Number of bits in a char
+ * #define BITS_PER_INT n Number of bits in an int
+ * #define BITS_PER_LONG n Number of bits in a long
+ * #define BITS_PER_POINTER n Number of bits in a pointer
+ * #define BITS_PER_SHORT n Number of bits in a short
+ * #define HAS_VOID Implies void function type is supported
+ */
+
+#ifndef STANDARD_ENVIRON /* prevent multiple inclusions */
+
+#if defined(vax) || defined(pyr) || defined(sun)
+# define HAS_UNSIGNED_SHORT
+# define CHAR_IS_SIGNED
+# define HAS_UNSIGNED_CHAR
+# define HAS_UNSIGNED_LONG
+# define HAS_VOID
+
+# define BITS_PER_CHAR 8
+# define BITS_PER_SHORT 16
+# define BITS_PER_INT 32
+# define BITS_PER_LONG 32
+# define BITS_PER_POINTER 32
+# define STANDARD_ENVIRON
+#endif
+
+#endif STANDARD_ENVIRON
+
+/* make sure a known processor type was specified */
+#ifndef STANDARD_ENVIRON
+# include "Processor type unknown or unspecified"
+#endif STANDARD_ENVIRON
diff --git a/dviware/quicspool/standard/standmacro.h b/dviware/quicspool/standard/standmacro.h
new file mode 100644
index 0000000000..bfdf987867
--- /dev/null
+++ b/dviware/quicspool/standard/standmacro.h
@@ -0,0 +1,21 @@
+/* $Header: standmacro.h,v 1.1 88/01/15 13:07:14 simpson Rel $ */
+/*
+$Log: standmacro.h,v $
+ * Revision 1.1 88/01/15 13:07:14 simpson
+ * initial release
+ *
+ * Revision 0.1 87/12/11 18:34:15 simpson
+ * beta test
+ *
+*/
+#ifndef STANDARD_MACRO
+#define STANDARD_MACRO
+#define MAX(x, y) ((x) > (y) ? (x) : (y))
+#define MIN(x, y) ((x) < (y) ? (x) : (y))
+#define ABS(x) ((x) < 0 ? -(x) : (x))
+#define ROUND(x) ((int)(((x)<0)?((x)-0.5):((x)+0.5)))
+#define CEILING(x) (((x)>=0)?(int)(x)==(x)?(int)(x):(int)((x)+1):(int)(x))
+#define FLOOR(x) (((x)>=0)?(int)(x):(int)(x)==(x)?(int)(x):(int)((x)-1))
+#define EQ(s, t) (!strcmp(s, t))
+#define EQN(s, t, n) (!strncmp(s, t, n))
+#endif STANDARD_MACRO
diff --git a/dviware/quicspool/standard/standtype.h b/dviware/quicspool/standard/standtype.h
new file mode 100644
index 0000000000..7ae0a5a44b
--- /dev/null
+++ b/dviware/quicspool/standard/standtype.h
@@ -0,0 +1,118 @@
+/* $Header: standtype.h,v 1.1 88/01/15 13:07:17 simpson Rel $ */
+/*
+$Log: standtype.h,v $
+ * Revision 1.1 88/01/15 13:07:17 simpson
+ * initial release
+ *
+ * Revision 0.1 87/12/11 18:34:16 simpson
+ * beta test
+ *
+*/
+/* Standard machine independent type definitions. */
+
+#ifndef STANDARD_TYPE /* prevent multiple inclusions */
+#define STANDARD_TYPE
+
+/*
+ * Integers
+ * Tiny/UnsignedTiny 8+ bit integers
+ * Short/UnsignedShort 16+ bit integers
+ * Integer/UnsignedInteger natural machine integer size
+ * Long/UnsignedLong 32+ bit integers
+ *
+ * Bits
+ * TinyBits 8+ bits
+ * Bits 16+ bits
+ * LongBits 32+ bits
+ *
+ * Booleans
+ * TinyBoolean
+ * Boolean
+ *
+ * Void
+ *
+ * Storage Classes
+ * Export Seen in other compilation units
+ * Import Supplied by another compilation unit
+ * Local Unseen outside compilation unit
+ */
+
+/*
+ * Each of the following sections for the integer types defines both
+ * a base type and an extraction macro for the value.
+ */
+
+typedef char Tiny;
+/* Not all machines have signed characters so we may have to simulate them. */
+#ifdef CHAR_IS_SIGNED
+# define TINY(x) (x)
+#else
+# define TINY(x) (((x) & MIN_TINY) ? (~MAX_TINY | (x)) : (x))
+#endif CHAR_IS_SIGNED
+
+/* Not all compilers support unsigned chars so we may have to simulate them. */
+#ifdef HAS_UNSIGNED_CHAR
+ typedef unsigned char UnsignedTiny;
+#else
+ typedef char UnsignedTiny;
+#endif HAS_UNSIGNED_CHAR
+#ifdef CHAR_IS_SIGNED
+# define UNSIGNED_TINY(x) ((x) & MAX_UNSIGNED_TINY)
+#else
+# define UNSIGNED_TINY(x) (x)
+#endif
+
+/*
+ * All compilers have signed short integers. This type is included
+ * for lexical consistency.
+ */
+typedef short Short;
+
+/* Not all compilers support unsigned shorts so we may have to simulate them. */
+#ifdef HAS_UNSIGNED_SHORT
+ typedef unsigned short UnsignedShort;
+#else
+ typedef short UnsignedShort;
+#endif
+# define UNSIGNED_SHORT(x) ((unsigned)(x) & MAX_UNSIGNED_SHORT)
+
+/* These types are solely for lexical consistency. */
+typedef int Integer;
+typedef unsigned int UnsignedInteger;
+
+typedef long Long;
+
+/* Not all compilers support unsigned longs so we may have to simulate them. */
+#ifdef HAS_UNSIGNED_LONG
+ typedef unsigned long UnsignedLong;
+# define UNSIGNED_LONG(s) ((UnsignedLong)(x))
+#else
+ typedef long UnsignedLong;
+# define UNSIGNED_LONG(x) ((long)(x) & MAX_LONG)
+#endif HAS_UNSIGNED_LONG
+
+/* Boolean types take on only the values TRUE or FALSE. */
+typedef char TinyBoolean;
+typedef short Boolean;
+
+/* This type is included for lexical consistency. */
+typedef char Character;
+
+/* Bit types are used only for bit set, clear and test operations. */
+typedef char TinyBits;
+typedef short Bits;
+typedef long LongBits;
+
+/* Not all compilers support void functions so we may have to simulate it. */
+#ifdef HAS_VOID
+# define Void void
+#else
+ typedef int Void;
+#endif
+
+/* Storage classes. */
+#define Export
+#define Import extern
+#define Local static
+
+#endif STANDARD_TYPE