ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/rtio.h
Revision: 3.14
Committed: Tue Dec 13 18:38:35 2016 UTC (7 years, 4 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R1
Changes since 3.13: +2 -1 lines
Log Message:
Added missing extern variable declarations

File Contents

# Content
1 /* RCSid $Id: rtio.h,v 3.13 2016/08/18 00:52:48 greg Exp $ */
2 /*
3 * Radiance i/o and string routines
4 */
5
6 #ifndef _RAD_RTIO_H_
7 #define _RAD_RTIO_H_
8
9 #include <stdio.h>
10 #include <sys/types.h>
11 #include <fcntl.h>
12 #include <string.h>
13
14 #ifdef getc_unlocked /* avoid horrendous overhead of flockfile */
15 #undef getc
16 #undef putc
17 #define getc getc_unlocked
18 #define putc putc_unlocked
19 #endif
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 /* defined in badarg.c */
25 extern int badarg(int ac, char **av, char *fl);
26 /* defined in expandarg.c */
27 extern int envexpchr, filexpchr;
28 extern int expandarg(int *acp, char ***avp, int n);
29 /* defined in fdate.c */
30 extern time_t fdate(char *fname);
31 extern int setfdate(char *fname, long ftim);
32 /* defined in fgetline.c */
33 extern char *fgetline(char *s, int n, FILE *fp);
34 /* defined in fgetval.c */
35 extern int fgetval(FILE *fp, int ty, void *vp);
36 /* defined in fgetword.c */
37 extern char *fgetword(char *s, int n, FILE *fp);
38 /* defined in fputword.c */
39 extern void fputword(char *s, FILE *fp);
40 /* defined in fropen.c */
41 extern FILE *frlibopen(char *fname);
42 /* defined in getlibpath.c */
43 extern char *getrlibpath(void);
44 /* defined in gethomedir.c */
45 extern char *gethomedir(char *uname, char *path, int plen);
46 /* defined in getpath.c */
47 extern char *getpath(char *fname, char *searchpath, int mode);
48 /* defined in byteswap.c */
49 extern void swap16(char *wp, int n);
50 extern void swap32(char *wp, int n);
51 extern void swap64(char *wp, int n);
52 /* defined in portio.c */
53 extern void putstr(char *s, FILE *fp);
54 extern void putint(long i, int siz, FILE *fp);
55 extern void putflt(double f, FILE *fp);
56 extern int putbinary(const void *s, int elsiz, int nel, FILE *fp);
57 extern char *getstr(char *s, FILE *fp);
58 extern long getint(int siz, FILE *fp);
59 extern double getflt(FILE *fp);
60 extern int getbinary(void *s, int elsiz, int nel, FILE *fp);
61 /* defined in rexpr.c */
62 extern int ecompile(char *sp, int iflg, int wflag);
63 extern char *expsave(void);
64 extern void expset(char *ep);
65 extern char *eindex(char *sp);
66 /* defined in savestr.c */
67 extern char *savestr(char *str);
68 extern void freestr(char *s);
69 extern int shash(char *s);
70 /* defined in savqstr.c */
71 extern char *savqstr(char *s);
72 extern void freeqstr(char *s);
73 /* defined in wordfile.c */
74 extern int wordfile(char **words, int nargs, char *fname);
75 extern int wordstring(char **avl, int nargs, char *str);
76 /* defined in words.c */
77 extern char *atos(char *rs, int nb, char *s);
78 extern char *nextword(char *cp, int nb, char *s);
79 extern char *sskip(char *s);
80 extern char *sskip2(char *s, int n);
81 extern char *iskip(char *s);
82 extern char *fskip(char *s);
83 extern int isint(char *s);
84 extern int isintd(char *s, char *ds);
85 extern int isflt(char *s);
86 extern int isfltd(char *s, char *ds);
87 /* defined in lamp.c */
88 extern float * matchlamp(char *s);
89 extern int loadlamps(char *file);
90 extern void freelamps(void);
91
92 #ifdef __cplusplus
93 }
94 #endif
95 #endif /* _RAD_RTIO_H_ */
96