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

Comparing ray/src/meta/meta.h (file contents):
Revision 1.1 by greg, Sat Feb 22 02:07:26 2003 UTC vs.
Revision 1.4 by greg, Tue Jul 1 21:21:40 2003 UTC

# Line 2 | Line 2
2   /*
3   *   Standard meta-file definitions and limits
4   */
5 + #ifndef _RAD_META_H_
6 + #define _RAD_META_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11 + #include "copyright.h"
12  
13   #include  <stdio.h>
14 + #include  <stdlib.h>
15  
16   #include  <ctype.h>
17  
# Line 14 | Line 21
21  
22   #define  PEOF  'F'              /* end of file global */
23   #define  PEOP  'E'              /* end of page global */
24 < #define  PPAUSE  'P'            /* pause global */
24 > #define  PPAUS  'P'             /* pause global */
25   #define  PDRAW  'D'             /* draw global */
26   #define  POPEN  'O'             /* open segment */
27   #define  PCLOSE  'C'            /* close segment */
# Line 70 | Line 77
77   #define  TTY  "CON:"            /* console name */
78   #endif
79  
80 + #ifdef  _WIN32  /* XXX */
81 + #define MDIR "c\\tmp\\" /* XXX we just need something to compile for now */
82 + #define TTY "CON:"   /* XXX this probably doesn't work */
83 + #endif  /* XXX */
84 +
85   #define  MAXFNAME  64           /* maximum file name length */
86  
87   #define  XYSIZE  (1<<14)        /* metafile coordinate size */
88  
89 + #ifndef max
90   #define  max(x, y)  ((x) > (y) ? (x) : (y))
91 + #endif
92 + #ifndef min
93   #define  min(x, y)  ((x) < (y) ? (x) : (y))
94 + #endif
95  
96   #define  abs(x)  ((x) < 0 ? -(x) : (x))
97  
# Line 118 | Line 134 | typedef struct plist  PLIST;
134   *   External declarations
135   */
136  
137 < char  *malloc(), *savestr();
137 > char  *savestr();
138  
139 < PRIMITIVE  *palloc(), *pop();
139 > PRIMITIVE *pop();
140  
141   FILE  *efopen(), *mfopen();
142  
143   extern char  coms[];
128
144   extern char  errmsg[];
130
145   extern char  *progname;
146 +
147 +        /* expand.c */
148 + extern void expand(FILE *infp, short *exlist);
149 +        /* palloc.c */
150 + extern PRIMITIVE *palloc(void);
151 + extern void pfree(register PRIMITIVE *p);
152 + extern void plfree(register PLIST *pl);
153 +        /* sort.c */
154 + extern void sort(FILE *infp, int (*pcmp)());
155 + extern void pmergesort(FILE *fi[], int nf, PLIST *pl, int (*pcmp)(), FILE *ofp);
156 +        /* metacalls.c */
157 + extern void mdraw(int x, int y);
158 + extern void msegment(int xmin, int ymin, int xmax, int ymax, char *sname,
159 +                int d, int thick, int color);
160 + extern void mvstr(int xmin, int ymin, int xmax, int ymax, char *s,
161 +                int d, int thick, int color);
162 + extern void mtext(int x, int y, char *s, int cpi, int color);
163 + extern void mpoly(int x, int y, int border, int pat, int color);
164 + extern void mtriangle(int xmin, int ymin, int xmax, int ymax,
165 +                int d, int pat, int color);
166 + extern void mrectangle(int xmin, int ymin, int xmax, int ymax,
167 +                int pat, int color);
168 + extern void mline(int x, int y, int type, int thick, int color);
169 + extern void mcloseseg(void);
170 + extern void mopenseg(char *sname);
171 + extern void msetpat(int pn, char *pat);
172 + extern void minclude(char *fname);
173 + extern void mdone(void);
174 + extern void mendpage(void);
175 +
176 +
177 + #ifdef __cplusplus
178 + }
179 + #endif
180 + #endif /* _RAD_META_H_ */
181 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines