From 248a4b904249c33c1ebfe14466d86d48df84a6dd Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Wed, 28 Mar 1990 13:29:37 +0000 Subject: [PATCH] add LCC - a better C-Compiler for WEGA --- WEGA/contrib/lcc/lib/libc/port/print/print.h | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 WEGA/contrib/lcc/lib/libc/port/print/print.h diff --git a/WEGA/contrib/lcc/lib/libc/port/print/print.h b/WEGA/contrib/lcc/lib/libc/port/print/print.h new file mode 100644 index 0000000..a17c67a --- /dev/null +++ b/WEGA/contrib/lcc/lib/libc/port/print/print.h @@ -0,0 +1,30 @@ +/* Maximum number of digits in any integer representation */ +#define MAXDIGS 11 + +/* Maximum total number of digits in E format */ +#define MAXECVT 17 + +/* Maximum number of digits after decimal point in F format */ +#define MAXFCVT 60 + +/* Maximum significant figures in a floating-point number */ +#define MAXFSIG 17 + +/* Maximum number of characters in an exponent */ +#define MAXESIZ 4 + +/* Maximum (positive) exponent */ +#define MAXEXP 310 + +/* Data type for flags */ +typedef char bool; + +/* Convert a digit character to the corresponding number */ +#define tonumber(x) ((x)-'0') + +/* Convert a number between 0 and 9 to the corresponding digit */ +#define todigit(x) ((x)+'0') + +/* Max and Min macros */ +#define max(a,b) ((a) > (b)? (a): (b)) +#define min(a,b) ((a) < (b)? (a): (b))