|
|
1.1 ! root 1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984. */ ! 2: /* $Header: b0con.h,v 1.1 84/07/03 20:11:59 timo Exp $ */ ! 3: ! 4: /* Configuration file: some easy changes to the system */ ! 5: ! 6: /* VOID is used to keep lint quiet(er) */ ! 7: /* if your compiler doesn't accept (void) delete "(void)" from the next line*/ ! 8: #define VOID ! 9: ! 10: /* some un*xes demand that you reset stdin in some way if you get eof, and */ ! 11: /* want to read from it still. If yours doesn't, delete "clearerr(stdin)" */ ! 12: #define CLEAR_EOF clearerr(stdin) ! 13: ! 14: /* Default editor: end the string with <space>+ if it accepts a line number */ ! 15: /* of the form +<number> before the file name when it is called */ ! 16: /* eg vi +10 myunit */ ! 17: ! 18: /* temporary file to save an edited file in */ ! 19: #define SAVEFILE ".b_temp" ! 20: ! 21: /* 'Small' number package. (Also used by output conversion of 'Big' pkg.) */ ! 22: #define BIG 72057594037927935.0 /*Largest integral real number */ ! 23: #define LONG 9999999999999999.5 /*Largest power of 10 less than BIG */ ! 24: #define MAXNUMDIG 16 /*The number of 9's in LONG */ ! 25: #define MINNUMDIG 6 /*Don't change; this is here for consistency*/ ! 26: ! 27: /* Unbounded number package */ ! 28: /* BASE must be set for your machine so that BASE*BASE can be computed */ ! 29: /* exactly as a double, and (BASE+BASE) and (-BASE-BASE) are computable */ ! 30: /* with long integers. It must equal 10**tenlogBASE. */ ! 31: /* Maxreal, Maxexpo, Minexpo and Dblbits define properties of floating */ ! 32: /* point arithmetic on your machine */ ! 33: #define tenlogBASE 8 /*Change this and the next line together!*/ ! 34: #define BASE 100000000l ! 35: #define Maxreal 1.7E38 ! 36: #define Maxexpo 127 ! 37: #define Minexpo (-128) ! 38: #define Dblbits 56 /*Number of bits used for double precision */ ! 39: ! 40: /*Other definitions*/ ! 41: typedef int expint; /*The 2nd argument of frexp points to this */ ! 42: /*(see manual page frexp(3)). */ ! 43: /*On some 68K systems must be short (foo!) */ ! 44: ! 45: #define Maxgonio 1e16 /*Max x for sin(x), cos(x), tan(x) */ ! 46: ! 47: #define Maxintlet ((1<<15)-1) /*Largest short*/ ! 48: #define Maxint ((1<<15)-1) /*Largest int*/ ! 49: ! 50: #define RDBUFSIZE 500 /*Buffer used for read commands*/ ! 51: #define TXDBUFSIZE 100 /*Text displays*/ ! 52: ! 53: #define SEED getpid() /*Any suitable random int (eg date or time) */ ! 54: /*to start the random number generator with */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.