1 /* Begin Include file print.h */ 2 3 /* @(#)print.h 1.5 */ 4 5 /* Maximum number of digits in any integer representation */ 6 #define MAXDIGS 11 7 8 /* Maximum total number of digits in E format */ 9 #if u3b || u3b5 10 #define MAXECVT 17 11 #else 12 #define MAXECVT 18 13 #endif 14 15 /* Maximum number of digits after decimal point in F format */ 16 #define MAXFCVT 60 17 18 /* Maximum significant figures in a floating-point number */ 19 #define MAXFSIG MAXECVT 20 21 /* Maximum number of characters in an exponent */ 22 #if u3b || u3b5 23 #define MAXESIZ 5 24 #else 25 #define MAXESIZ 4 26 #endif 27 28 /* Maximum (positive) exponent */ 29 #if u3b || u3b5 30 #define MAXEXP 310 31 #else 32 #define MAXEXP 40 33 #endif 34 35 /* Data type for flags */ 36 typedef char bool; 37 38 /* Convert a digit character to the corresponding number */ 39 #define tonumber(x) ((x)-'0') 40 41 /* Convert a number between 0 and 9 to the corresponding digit */ 42 #define todigit(x) ((x)+'0') 43 44 /* Max and Min macros */ 45 #define max(a,b) ((a) > (b)? (a): (b)) 46 #define min(a,b) ((a) < (b)? (a): (b)) 47 48 /* End Include file print.h */