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

Comparing ray/src/common/vars.h (file contents):
Revision 2.2 by greg, Fri Jan 5 14:42:13 1996 UTC vs.
Revision 2.7 by schorsch, Wed Jul 30 10:11:06 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1995 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   *  Header for programs that load variable files.
4   */
5 + #ifndef _RAD_VARS_H_
6 + #define _RAD_VARS_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11 < typedef struct {
11 > typedef struct variable_s {
12          char    *name;          /* variable name */
13          short   nick;           /* # characters required for nickname */
14          short   nass;           /* # assignments made */
15          char    *value;         /* assigned value(s) */
16 <        int     (*fixval)();    /* assignment checking function */
16 >        void    (*fixval)(struct variable_s *); /* assignment checking function */
17   } VARIABLE;             /* a variable-value pair */
18  
19   /**** The following variables should be declared by calling program ****/
# Line 26 | Line 28 | extern int     nowarn;         /* global boolean to turn warnings
28  
29   /**** The rest is declared in loadvars.c ****/
30  
29 extern int      onevalue(), catvalues(), boolvalue(),
30                qualvalue(), fltvalue(), intvalue();
31
31   extern VARIABLE *matchvar();
32   extern char     *nvalue();
33  
# Line 46 | Line 45 | extern char    *nvalue();
45   #define HIGH            'H'
46   #define MEDIUM          'M'
47   #define LOW             'L'
48 +
49 +
50 + extern void     loadvars(char *rfname);
51 + extern int      setvariable(char *ass, VARIABLE *(*mv)(char*));
52 + extern VARIABLE *matchvar(char *nam);
53 + extern char     *nvalue(int vn, int n);
54 + extern void     checkvalues(void);
55 + extern void     onevalue(VARIABLE *vp);
56 + extern void     catvalues(VARIABLE *vp);
57 + extern int      badmatch(char *tv, char *cv);
58 + extern void     boolvalue(VARIABLE *vp);
59 + extern void     qualvalue(VARIABLE *vp);
60 + extern void     intvalue(VARIABLE *vp);
61 + extern void     fltvalue(VARIABLE *vp);
62 + extern void     printvars(FILE *fp);
63 +
64 +
65 + #ifdef __cplusplus
66 + }
67 + #endif
68 + #endif /* _RAD_VARS_H_ */
69 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines