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.2 by schorsch, Sun Jun 8 12:03:10 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 + #include  <malloc.h>
16  
17   #include  <ctype.h>
18  
# Line 70 | Line 78
78   #define  TTY  "CON:"            /* console name */
79   #endif
80  
81 + #ifdef  _WIN32  /* XXX */
82 + #define MDIR "c\\tmp\\" /* XXX we just need something to compile for now */
83 + #define TTY "CON:"   /* XXX this probably doesn't work */
84 + #endif  /* XXX */
85 +
86   #define  MAXFNAME  64           /* maximum file name length */
87  
88   #define  XYSIZE  (1<<14)        /* metafile coordinate size */
89  
90 + #ifndef max
91   #define  max(x, y)  ((x) > (y) ? (x) : (y))
92 + #endif
93 + #ifndef min
94   #define  min(x, y)  ((x) < (y) ? (x) : (y))
95 + #endif
96  
97   #define  abs(x)  ((x) < 0 ? -(x) : (x))
98  
# Line 118 | Line 135 | typedef struct plist  PLIST;
135   *   External declarations
136   */
137  
138 < char  *malloc(), *savestr();
138 > char  *savestr();
139  
140 < PRIMITIVE  *palloc(), *pop();
140 > PRIMITIVE *pop();
141  
142   FILE  *efopen(), *mfopen();
143  
144   extern char  coms[];
128
145   extern char  errmsg[];
130
146   extern char  *progname;
147 +
148 +        /* expand.c */
149 + extern void expand(FILE *infp, short *exlist);
150 +        /* palloc.c */
151 + extern PRIMITIVE *palloc(void);
152 + extern void pfree(register PRIMITIVE *p);
153 + extern void plfree(register PLIST *pl);
154 +        /* sort.c */
155 + extern void sort(FILE *infp, int (*pcmp)());
156 + extern void mergesort(FILE *fi[], int nf, PLIST *pl, int (*pcmp)(), FILE *ofp);
157 +        /* metacalls.c */
158 + extern void mdraw(int x, int y);
159 + extern void msegment(int xmin, int ymin, int xmax, int ymax, char *sname,
160 +                int d, int thick, int color);
161 + extern void mvstr(int xmin, int ymin, int xmax, int ymax, char *s,
162 +                int d, int thick, int color);
163 + extern void mtext(int x, int y, char *s, int cpi, int color);
164 + extern void mpoly(int x, int y, int border, int pat, int color);
165 + extern void mtriangle(int xmin, int ymin, int xmax, int ymax,
166 +                int d, int pat, int color);
167 + extern void mrectangle(int xmin, int ymin, int xmax, int ymax,
168 +                int pat, int color);
169 + extern void mline(int x, int y, int type, int thick, int color);
170 + extern void mcloseseg(void);
171 + extern void mopenseg(char *sname);
172 + extern void msetpat(int pn, char *pat);
173 + extern void minclude(char *fname);
174 + extern void mdone(void);
175 + extern void mendpage(void);
176 +
177 +
178 + #ifdef __cplusplus
179 + }
180 + #endif
181 + #endif /* _RAD_META_H_ */
182 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines