18 |
|
#include <stdlib.h> |
19 |
|
#include <string.h> |
20 |
|
|
21 |
+ |
#include "tifftypes.h" |
22 |
+ |
|
23 |
|
#include "mat4.h" |
24 |
|
|
23 |
– |
|
24 |
– |
#ifndef NULL |
25 |
– |
#define NULL 0 |
26 |
– |
#endif |
27 |
– |
|
25 |
|
/* regular transformation */ |
26 |
|
typedef struct { |
27 |
|
MAT4 xfm; /* transform matrix */ |
49 |
|
#define F_OK 0 /* exists */ |
50 |
|
#endif |
51 |
|
|
55 |
– |
#ifndef int2 |
56 |
– |
#define int2 short /* two-byte integer */ |
57 |
– |
#endif |
58 |
– |
#ifndef int4 |
59 |
– |
#define int4 int /* four-byte integer */ |
60 |
– |
#endif |
61 |
– |
|
52 |
|
/* error codes */ |
53 |
|
#define WARNING 0 /* non-fatal error */ |
54 |
|
#define USER 1 /* fatal user-caused error */ |
190 |
|
/* defined in zeroes.c */ |
191 |
|
extern int quadtratic(double *r, double a, double b, double c); |
192 |
|
/* defined in dircode.c */ |
193 |
< |
extern int4 encodedir(FVECT dv); |
194 |
< |
extern void decodedir(FVECT dv, int4 dc); |
195 |
< |
extern double dir2diff(int4 dc1, int4 dc2); |
196 |
< |
extern double fdir2diff(int4 dc1, FVECT v2); |
193 |
> |
extern int32 encodedir(FVECT dv); |
194 |
> |
extern void decodedir(FVECT dv, int32 dc); |
195 |
> |
extern double dir2diff(int32 dc1, int32 dc2); |
196 |
> |
extern double fdir2diff(int32 dc1, FVECT v2); |
197 |
|
/* defined in lamp.c */ |
198 |
|
extern float * matchlamp(char *s); |
199 |
|
extern int loadlamps(char *file); |