aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorronny2002-06-06 15:04:37 +0000
committerronny2002-06-06 15:04:37 +0000
commit03339c9ebf68ae89b5a7024f60ae092abb366e6a (patch)
tree33659cbf4fb95ea58f33962cfc875870f40ac52c
parentInitial import (diff)
Unix version
git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1087 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d
-rw-r--r--backendC/CleanCompilerSources/sun.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/backendC/CleanCompilerSources/sun.h b/backendC/CleanCompilerSources/sun.h
new file mode 100644
index 0000000..f1a86d0
--- /dev/null
+++ b/backendC/CleanCompilerSources/sun.h
@@ -0,0 +1,46 @@
+
+#define CheckVersion
+
+typedef short int TwoBytesInt;
+typedef int FourBytesInt;
+typedef short unsigned TwoBytesUnsigned;
+typedef unsigned FourBytesUnsigned;
+typedef double EightBytesReal;
+typedef float FourBytesReal;
+
+#define SizeT unsigned long
+#define SizeOf(A) ((SizeT) sizeof (A))
+#define MAXUNSIGNED 20000000L
+
+#include <string.h>
+#include <sys/types.h>
+#include <setjmp.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <stdio.h>
+
+#define _VARARGS_
+
+typedef FILE *File;
+
+#define StdOut stdout
+#define StdError stderr
+#define StdVerboseH stdout
+#define StdVerboseL stdout
+#define StdTrace stdout
+#define StdDebug stdout;
+#define StdListTypes stdout
+
+#define FGetC(f) fgetc(f)
+#define FGetS(s,n,f) fgets(s,n,f)
+#define FPutC(c,f) fputc(c,f)
+
+/* #define System system */
+
+int System (char *s);
+int abs (int n);
+
+/* int rand (void); */
+/* int vsprintf (char *s, char *format, va_list arg); */
+
+