5 #ifdef HAVE_SYS_SIGEVENT_H
6 #include <sys/sigevent.h>
12 #include <sys/param.h>
13 #include <sys/types.h>
15 #elif ! defined __OpenBSD__
30 #define MONO(rr,gg,bb) (((rr)*11+(gg)*16+(bb)*5)>>5) /*0.33r+0.5g+0.17b*/
32 #define RANGE(a,b,c) {if(a<b) a=b;if(a>c) a=c;}
35 #define GETWD(x) getcwd(x,sizeof(x))
85 typedef unsigned char byte
;
89 typedef unsigned short u_short
;
92 typedef unsigned char u_char
;
95 typedef unsigned int u_int
;
98 typedef unsigned long u_long
;
104 extern float normaspect
;
107 extern int picType
,pWIDE
,pHIGH
,ncols
;
108 extern byte bMap
[256],gMap
[256],rMap
[256];
110 extern byte colAllocOrder
[256];
112 typedef struct { byte
*pic
; /* image data */
114 int type
; /* PIC8 or PIC24 */
117 /* colormap, if PIC8 */
119 int frmType
; /* def. Format type to save in */
120 int colType
; /* def. Color type to save in */
121 char fullInfo
[128]; /* Format: field in info box */
122 char shrtInfo
[128]; /* short format info */
123 char *comment
; /* comment text */
125 int numpages
; /* # of page files, if >1 */
126 char pagebname
[64]; /* basename of page files */
129 /* ------------ End of file -------------- */