home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
util
/
cdity
/
colorsaver
/
src
/
defs.h
< prev
next >
Wrap
Text File
|
1994-12-04
|
819b
|
32 lines
#define FILESAVE 0
#define FILELOAD 1
#define FILESCAN 2
#define MAIN_POINTER 0
#define TO_POINTER 1
#define STORE_IT 0
#define RETRIEVE_IT 1
#define RGBValid(v,d) ((atoi(v) >= 0 && atoi(v) <= 15) ? atoi(v) : d )
#define HSVValid(v,d) ((atoi(v) >= 0 && atoi(v) <= 360) ? atoi(v) : d )
#define COLORValid(c,n,d) ((c >= 0 && c < n) ? c : d )
#define GAD(x) ColorSaverGadgets[x]
#define RGB_COLORMODE 0
#define HSV_COLORMODE 1
#define LOAD_MALLOC_FAIL -1
#define BUFFER_MALLOC_FAIL -2
#define OFFSET_MALLOC_FAIL -3
#define FILE_OPEN_FAIL -4
#define FILE_READ_IOERR -5
#define FILE_WRITE_IOERR -6
#define PALETTE_SIZE_MISMATCH -7
#define NO_COLORTABLE_FOUND -8
#define ONE_COLORTABLE_FOUND -9
#define MULT_COLORTABLE_FOUND -10
#define ABOUT_TO_WRITE -11
#define WRITE_SUCCESS -12