--- ray/src/rt/colortab.c 1990/01/19 00:00:37 1.11 +++ ray/src/rt/colortab.c 1991/11/12 17:09:57 2.1 @@ -16,9 +16,9 @@ static char SCCSid[] = "$SunId$ LBL"; * distribution is correlated to the last. */ -#include "color.h" +#include "standard.h" -#define NULL 0 +#include "color.h" /* histogram resolution */ #define NRED 24 #define NGRN 32 @@ -43,8 +43,8 @@ static char SCCSid[] = "$SunId$ LBL"; /* our color table */ static struct tabent { long sum[3]; /* sum of colors using this entry */ - long n; /* number of colors */ - short ent[3]; /* current table value */ + int n; /* number of colors */ + BYTE ent[3]; /* current table value */ } *clrtab = NULL; /* color cube partition */ static CNODE *ctree = NULL; @@ -91,6 +91,7 @@ get_pixel(col, set_pixel) /* get pixel for color */ COLOR col; int (*set_pixel)(); { + extern char errmsg[]; int r, g, b; int cv[3]; register CNODE *tp; @@ -110,7 +111,7 @@ int (*set_pixel)(); if (cv[prim(*tp)] < part(*tp)) tp += 1<