| 3 |
|
* Miscellaneous definitions required by many routines. |
| 4 |
|
*/ |
| 5 |
|
|
| 6 |
+ |
#ifndef _RAD_STANDARD_H_ |
| 7 |
+ |
#define _RAD_STANDARD_H_ |
| 8 |
+ |
|
| 9 |
|
#include "copyright.h" |
| 10 |
|
|
| 11 |
|
#include <stdio.h> |
| 9 |
– |
|
| 12 |
|
#include <sys/types.h> |
| 11 |
– |
|
| 13 |
|
#include <fcntl.h> |
| 13 |
– |
|
| 14 |
|
#include <math.h> |
| 15 |
– |
|
| 15 |
|
#include <errno.h> |
| 17 |
– |
|
| 16 |
|
#include <stdlib.h> |
| 19 |
– |
|
| 17 |
|
#include <string.h> |
| 18 |
|
|
| 19 |
+ |
#include "platform.h" |
| 20 |
|
#include "mat4.h" |
| 21 |
+ |
|
| 22 |
|
/* regular transformation */ |
| 23 |
|
typedef struct { |
| 24 |
|
MAT4 xfm; /* transform matrix */ |
| 94 |
|
#endif |
| 95 |
|
/* memory operations */ |
| 96 |
|
#ifdef NOSTRUCTASS |
| 97 |
< |
#define copystruct(d,s) bcopy((char *)(s),(char *)(d),sizeof(*(d))) |
| 97 |
> |
#define copystruct(d,s) bcopy((void *)(s),(void *)(d),sizeof(*(d))) |
| 98 |
|
#else |
| 99 |
|
#define copystruct(d,s) (*(d) = *(s)) |
| 100 |
|
#endif |
| 115 |
|
#define NIX 1 |
| 116 |
|
#endif |
| 117 |
|
|
| 119 |
– |
#ifdef NOPROTO |
| 118 |
|
|
| 121 |
– |
extern int badarg(); |
| 122 |
– |
extern char *bmalloc(); |
| 123 |
– |
extern void bfree(); |
| 124 |
– |
extern void error(); |
| 125 |
– |
extern int expandarg(); |
| 126 |
– |
extern time_t fdate(); |
| 127 |
– |
extern int setfdate(); |
| 128 |
– |
extern char *fgetline(); |
| 129 |
– |
extern int fgetval(); |
| 130 |
– |
extern char *fgetword(); |
| 131 |
– |
extern void fputword(); |
| 132 |
– |
extern char *fixargv0(); |
| 133 |
– |
extern FILE *frlibopen(); |
| 134 |
– |
extern char *getlibpath(); |
| 135 |
– |
extern char *getpath(); |
| 136 |
– |
extern void putstr(); |
| 137 |
– |
extern void putint(); |
| 138 |
– |
extern void putflt(); |
| 139 |
– |
extern char *getstr(); |
| 140 |
– |
extern long getint(); |
| 141 |
– |
extern double getflt(); |
| 142 |
– |
extern int open_process(); |
| 143 |
– |
extern int process(); |
| 144 |
– |
extern int close_process(); |
| 145 |
– |
extern int readbuf(); |
| 146 |
– |
extern int writebuf(); |
| 147 |
– |
extern int ecompile(); |
| 148 |
– |
extern char *expsave(); |
| 149 |
– |
extern void expset(); |
| 150 |
– |
extern char *eindex(); |
| 151 |
– |
extern char *savestr(); |
| 152 |
– |
extern void freestr(); |
| 153 |
– |
extern int shash(); |
| 154 |
– |
extern char *savqstr(); |
| 155 |
– |
extern void freeqstr(); |
| 156 |
– |
extern double tcos(); |
| 157 |
– |
extern int wordfile(); |
| 158 |
– |
extern int wordstring(); |
| 159 |
– |
extern char *atos(); |
| 160 |
– |
extern char *nextword(); |
| 161 |
– |
extern char *sskip(); |
| 162 |
– |
extern char *sskip2(); |
| 163 |
– |
extern char *iskip(); |
| 164 |
– |
extern char *fskip(); |
| 165 |
– |
extern int isint(); |
| 166 |
– |
extern int isintd(); |
| 167 |
– |
extern int isflt(); |
| 168 |
– |
extern int isfltd(); |
| 169 |
– |
extern int xf(); |
| 170 |
– |
extern int invxf(); |
| 171 |
– |
extern int fullxf(); |
| 172 |
– |
extern int quadtratic(); |
| 173 |
– |
extern int4 encodedir(); |
| 174 |
– |
extern void decodedir(); |
| 175 |
– |
extern double dir2diff(); |
| 176 |
– |
extern double fdir2diff(); |
| 177 |
– |
extern void eputs(); |
| 178 |
– |
extern void wputs(); |
| 179 |
– |
extern void quit(); |
| 180 |
– |
|
| 181 |
– |
#else |
| 119 |
|
/* defined in badarg.c */ |
| 120 |
|
extern int badarg(int ac, char **av, char *fl); |
| 121 |
|
/* defined in bmalloc.c */ |
| 141 |
|
/* defined in fropen.c */ |
| 142 |
|
extern FILE *frlibopen(char *fname); |
| 143 |
|
/* defined in getlibpath.c */ |
| 144 |
< |
extern char *getlibpath(void); |
| 144 |
> |
extern char *getrlibpath(void); |
| 145 |
|
/* defined in getpath.c */ |
| 146 |
|
extern char *getpath(char *fname, char *searchpath, int mode); |
| 147 |
|
/* defined in portio.c */ |
| 202 |
|
extern void wputs(char *s); |
| 203 |
|
extern void quit(int code); |
| 204 |
|
|
| 205 |
< |
#endif |
| 205 |
> |
|
| 206 |
> |
#endif /* _RAD_STANDARD_H_ */ |