aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ini.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-12-24 09:00:42 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-12-24 09:00:42 +0000
commit72b6783ebf2af43a384364e62eab71b1c5e6f9c1 (patch)
treecfa01d284089fff35faa6d8c42a8e6ec04330597 /lib/ini.h
parent54699524eda49bb287d5998e443deefd81fce8fc (diff)
First version of new ini parser. Will just attempt to simplify code a bit.
Diffstat (limited to 'lib/ini.h')
-rw-r--r--lib/ini.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/ini.h b/lib/ini.h
index 5eab472b..6ae0bde5 100644
--- a/lib/ini.h
+++ b/lib/ini.h
@@ -28,12 +28,14 @@
typedef struct
{
- FILE *fp;
int line;
- char c_section[MAX_STRING];
- char section[MAX_STRING];
- char key[MAX_STRING];
- char value[MAX_STRING];
+ char *c_section;
+ char *section;
+ char *key;
+ char *value;
+ int size;
+ char *cur, *tok;
+ char file[];
} ini_t;
ini_t *ini_open( char *file );