chiark
/
gitweb
/
~ian
/
innduct.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
check initialisations
[innduct.git]
/
include
/
conffile.h
1
/* $Revision: 5086 $
2
**
3
** Data structures, functions and cetera used for config file parsing.
4
*/
5
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
10
typedef struct {
11
FILE *f;
12
char *buf;
13
unsigned int sbuf;
14
int lineno;
15
int array_len;
16
char **array;
17
char *filename;
18
} CONFFILE;
19
20
typedef struct {
21
int type;
22
#define CONFstring -1
23
char *name;
24
} CONFTOKEN;
25
26
extern char CONFerror[];
27
28
extern CONFFILE *CONFfopen(char*);
29
extern void CONFfclose(CONFFILE*);
30
31
extern CONFTOKEN *CONFgettoken(CONFTOKEN*, CONFFILE*);
32
33
#ifdef __cplusplus
34
}
35
#endif