#ifndef X_NOT_STDC_ENV #include #else char *malloc(), *realloc(), *calloc(); #endif #if defined(macII) && !defined(__STDC__) /* stdlib.h fails to define these */ char *malloc(), *realloc(), *calloc(); #endif /* macII */ /* 3812 PagePrinter macros */ #define PPI 240 #define inch2pel(inches) ((int) ((inches) * PPI)) #define DEFAULT_WIDTH 8.5 #define X_MAX_PELS inch2pel(DEFAULT_WIDTH) #define DEFAULT_LENGTH 11 #define Y_MAX_PELS inch2pel(DEFAULT_LENGTH) #define INTENSITY(color) (30L*(int)(color)->red + \ 59L*(int)(color)->green + \ 11L*(int)(color)->blue) #define INTENSITYPER(per) (((1<<16)-1)*((long)per)) #define HALFINTENSITY INTENSITYPER(50) enum orientation { UNSPECIFIED = -1, PORTRAIT = 0, LANDSCAPE = 1, UPSIDE_DOWN = 2, LANDSCAPE_LEFT = 3 }; enum device {LN01, LN03, LA100, PS, PP, LJET, PJET, PJETXL};