From 72b6783ebf2af43a384364e62eab71b1c5e6f9c1 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 24 Dec 2008 09:00:42 +0000 Subject: First version of new ini parser. Will just attempt to simplify code a bit. --- lib/ini.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lib/ini.h') 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 ); -- cgit v1.2.3