| 1 |
schorsch |
3.6 |
/* RCSid $Id: rtio.h,v 3.5 2003/10/27 10:19:31 schorsch Exp $ */
|
| 2 |
greg |
3.1 |
/*
|
| 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 |
schorsch |
3.3 |
|
| 14 |
schorsch |
3.6 |
#include "paths.h"
|
| 15 |
|
|
|
| 16 |
schorsch |
3.3 |
#ifdef __cplusplus
|
| 17 |
|
|
extern "C" {
|
| 18 |
|
|
#endif
|
| 19 |
greg |
3.1 |
|
| 20 |
|
|
/* defined in badarg.c */
|
| 21 |
|
|
extern int badarg(int ac, char **av, char *fl);
|
| 22 |
|
|
/* defined in expandarg.c */
|
| 23 |
|
|
extern int expandarg(int *acp, char ***avp, int n);
|
| 24 |
|
|
/* defined in fdate.c */
|
| 25 |
|
|
extern time_t fdate(char *fname);
|
| 26 |
|
|
extern int setfdate(char *fname, long ftim);
|
| 27 |
|
|
/* defined in fgetline.c */
|
| 28 |
|
|
extern char *fgetline(char *s, int n, FILE *fp);
|
| 29 |
|
|
/* defined in fgetval.c */
|
| 30 |
|
|
extern int fgetval(FILE *fp, int ty, char *vp);
|
| 31 |
|
|
/* defined in fgetword.c */
|
| 32 |
|
|
extern char *fgetword(char *s, int n, FILE *fp);
|
| 33 |
|
|
/* defined in fputword.c */
|
| 34 |
|
|
extern void fputword(char *s, FILE *fp);
|
| 35 |
|
|
/* defined in fropen.c */
|
| 36 |
|
|
extern FILE *frlibopen(char *fname);
|
| 37 |
|
|
/* defined in getlibpath.c */
|
| 38 |
|
|
extern char *getrlibpath(void);
|
| 39 |
schorsch |
3.5 |
/* defined in gethomedir.c */
|
| 40 |
|
|
extern char *gethomedir(char *uname, char *path, int plen);
|
| 41 |
greg |
3.1 |
/* defined in getpath.c */
|
| 42 |
|
|
extern char *getpath(char *fname, char *searchpath, int mode);
|
| 43 |
|
|
/* defined in portio.c */
|
| 44 |
|
|
extern void putstr(char *s, FILE *fp);
|
| 45 |
|
|
extern void putint(long i, int siz, FILE *fp);
|
| 46 |
|
|
extern void putflt(double f, FILE *fp);
|
| 47 |
|
|
extern char *getstr(char *s, FILE *fp);
|
| 48 |
|
|
extern long getint(int siz, FILE *fp);
|
| 49 |
|
|
extern double getflt(FILE *fp);
|
| 50 |
|
|
/* defined in rexpr.c */
|
| 51 |
|
|
extern int ecompile(char *sp, int iflg, int wflag);
|
| 52 |
|
|
extern char *expsave(void);
|
| 53 |
|
|
extern void expset(char *ep);
|
| 54 |
|
|
extern char *eindex(char *sp);
|
| 55 |
|
|
/* defined in savestr.c */
|
| 56 |
|
|
extern char *savestr(char *str);
|
| 57 |
|
|
extern void freestr(char *s);
|
| 58 |
|
|
extern int shash(char *s);
|
| 59 |
|
|
/* defined in savqstr.c */
|
| 60 |
|
|
extern char *savqstr(char *s);
|
| 61 |
|
|
extern void freeqstr(char *s);
|
| 62 |
|
|
/* defined in wordfile.c */
|
| 63 |
|
|
extern int wordfile(char **words, char *fname);
|
| 64 |
|
|
extern int wordstring(char **avl, char *str);
|
| 65 |
|
|
/* defined in words.c */
|
| 66 |
|
|
extern char *atos(char *rs, int nb, char *s);
|
| 67 |
|
|
extern char *nextword(char *cp, int nb, char *s);
|
| 68 |
|
|
extern char *sskip(char *s);
|
| 69 |
|
|
extern char *sskip2(char *s, int n);
|
| 70 |
|
|
extern char *iskip(char *s);
|
| 71 |
|
|
extern char *fskip(char *s);
|
| 72 |
|
|
extern int isint(char *s);
|
| 73 |
|
|
extern int isintd(char *s, char *ds);
|
| 74 |
|
|
extern int isflt(char *s);
|
| 75 |
|
|
extern int isfltd(char *s, char *ds);
|
| 76 |
|
|
/* defined in lamp.c */
|
| 77 |
|
|
extern float * matchlamp(char *s);
|
| 78 |
|
|
extern int loadlamps(char *file);
|
| 79 |
|
|
extern void freelamps(void);
|
| 80 |
|
|
|
| 81 |
|
|
#ifdef __cplusplus
|
| 82 |
|
|
}
|
| 83 |
|
|
#endif
|
| 84 |
|
|
#endif /* _RAD_RTIO_H_ */
|
| 85 |
|
|
|