Annotation of researchv10no/cmd/postscript/common/gen.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  *
                      3:  * A few definitions that shouldn't have to change. Used by most programs in
                      4:  * this package.
                      5:  *
                      6:  */
                      7: 
                      8: #define PROGRAMVERSION "3.3.1"
                      9: 
                     10: #define NON_FATAL      0
                     11: #define FATAL          1
                     12: #define USER_FATAL     2
                     13: 
                     14: #define OFF            0
                     15: #define ON             1
                     16: 
                     17: #define FALSE          0
                     18: #define TRUE           1
                     19: 
                     20: #define BYTE           8
                     21: #define BMASK          0377
                     22: 
                     23: #define POINTS         72.3
                     24: 
                     25: #ifndef PI
                     26: #define PI             3.141592654
                     27: #endif
                     28: 
                     29: /*
                     30:  *
                     31:  * DOROUND controls whether some translators include file ROUNDPAGE (path.h)
                     32:  * after the prologue. Used to round page dimensions obtained from the clippath
                     33:  * to know paper sizes. Enabled by setting DOROUND to TRUE (or 1).
                     34:  *
                     35:  */
                     36: 
                     37: #define DOROUND        TRUE
                     38: 
                     39: /*
                     40:  *
                     41:  * Default resolution and the height and width of a page (in case we need to get
                     42:  * to upper left corner) - only used in BoundingBox calculations!!
                     43:  *
                     44:  */
                     45: 
                     46: #define DEFAULT_RES    72
                     47: #define PAGEHEIGHT     11.0 * DEFAULT_RES
                     48: #define PAGEWIDTH      8.5 * DEFAULT_RES
                     49: 
                     50: /*
                     51:  *
                     52:  * Simple macros.
                     53:  *
                     54:  */
                     55: 
                     56: #define ABS(A)         ((A) >= 0 ? (A) : -(A))
                     57: #define MIN(A, B)      ((A) < (B) ? (A) : (B))
                     58: #define MAX(A, B)      ((A) > (B) ? (A) : (B))
                     59: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.