ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/standard.h
(Generate patch)

Comparing ray/src/common/standard.h (file contents):
Revision 2.21 by greg, Thu Mar 27 16:33:39 2003 UTC vs.
Revision 2.25 by schorsch, Sat Jun 7 12:50:20 2003 UTC

# Line 2 | Line 2
2   /*
3   *      Miscellaneous definitions required by many routines.
4   */
5 + #ifndef _RAD_STANDARD_H_
6 + #define _RAD_STANDARD_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11   #include "copyright.h"
12  
13   #include  <stdio.h>
9
14   #include  <sys/types.h>
11
15   #include  <fcntl.h>
13
16   #include  <math.h>
15
17   #include  <errno.h>
17
18   #include  <stdlib.h>
19
19   #include  <string.h>
20  
21 + #include  "platform.h"
22   #include  "mat4.h"
23 +
24 +
25 + #ifndef NULL
26 + #define NULL 0
27 + #endif
28 +
29                                  /* regular transformation */
30   typedef struct {
31          MAT4  xfm;                              /* transform matrix */
# Line 95 | Line 101 | extern double  tcos();                 /* table-based cosine approxim
101   #endif
102                                          /* memory operations */
103   #ifdef  NOSTRUCTASS
104 < #define  copystruct(d,s)        bcopy((char *)(s),(char *)(d),sizeof(*(d)))
104 > #define  copystruct(d,s)        bcopy((void *)(s),(void *)(d),sizeof(*(d)))
105   #else
106   #define  copystruct(d,s)        (*(d) = *(s))
107   #endif
# Line 116 | Line 122 | extern off_t  lseek();
122   #define NIX 1
123   #endif
124  
119 #ifdef NOPROTO
125  
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
126                                          /* defined in badarg.c */
127   extern int      badarg(int ac, char **av, char *fl);
128                                          /* defined in bmalloc.c */
# Line 204 | Line 148 | extern char    *fixargv0(char *av0);
148                                          /* defined in fropen.c */
149   extern FILE     *frlibopen(char *fname);
150                                          /* defined in getlibpath.c */
151 < extern char     *getlibpath(void);
151 > extern char     *getrlibpath(void);
152                                          /* defined in getpath.c */
153   extern char     *getpath(char *fname, char *searchpath, int mode);
154                                          /* defined in portio.c */
# Line 265 | Line 209 | extern void    eputs(char *s);
209   extern void     wputs(char *s);
210   extern void     quit(int code);
211  
212 +
213 + #ifdef __cplusplus
214 + }
215   #endif
216 + #endif /* _RAD_STANDARD_H_ */
217 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines