home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved.
- *
- * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE
- * SANTA CRUZ OPERATION INC.
- *
- * The copyright notice above does not evidence any actual or intended
- * publication of such source code.
- */
-
- #ident "@(#)libetitam:print.h 1.2"
- /* Maximum number of digits in any integer representation */
- #define MAXDIGS 11
-
- /* Picking most of the values for the variables from libc-port:print/print.h */
-
- /* Maximum total number of digits in E format */
- #define MAXECVT 23
-
- /* Maximum number of digits after decimal point in F format */
- #define MAXFCVT 60
-
- /* Maximum significant figures in a floating-point number */
- #define MAXFSIG MAXECVT
-
- /* Maximum number of characters in an exponent */
- #define MAXESIZ 7
-
- /* Maximum (positive) exponent */
- #define MAXEXP 4934
-
- /* 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))
-