comparison mcabber/src/parsecfg.c @ 28:0cd8025eebee

[/trunk] Changeset 44 by mikael * Some more fixes. * We can now build with GNU99 gcc extensions.
author mikael
date Mon, 28 Mar 2005 10:36:47 +0000
parents e88b15cbf2de
children 8a54d46e889a
comparison
equal deleted inserted replaced
27:77e6bd2ccde6 28:0cd8025eebee
2 #include <stdlib.h> 2 #include <stdlib.h>
3 #include <unistd.h> 3 #include <unistd.h>
4 #include <ctype.h> 4 #include <ctype.h>
5 #include <string.h> 5 #include <string.h>
6 6
7
8 #include "list.h" 7 #include "list.h"
9 8
10 /* Definicion de tipos */
11 #define MAX_LENGHT_INPUT 1024 9 #define MAX_LENGHT_INPUT 1024
12 #define cfg_entry(n) list_entry(n, cfg_entry_t, list) 10 #define cfg_entry(n) list_entry(n, cfg_entry_t, list)
13 11
14 typedef struct _cfg_entry_t { 12 typedef struct _cfg_entry_t {
15 char *key; 13 char *key;