config.c
1 /* Nofrendo Configuration Braindead Sample Implementation 2 ** 3 ** $Id: config.c,v 1.2 2001/04/27 14:37:11 neil Exp $ 4 */ 5 6 #include <ctype.h> 7 #include <string.h> 8 #include <stdlib.h> 9 #include <stdio.h> 10 11 #include "noftypes.h" 12 #include "log.h" 13 #include "osd.h" 14 #include "nofconfig.h" 15 #include "version.h" 16 17 18 /* interface */ 19 config_t config = 20 { 21 CONFIG_FILE 22 }; 23 24 /* 25 ** $Log: config.c,v $ 26 ** Revision 1.2 2001/04/27 14:37:11 neil 27 ** wheeee 28 ** 29 ** Revision 1.1.1.1 2001/04/27 07:03:54 neil 30 ** initial 31 ** 32 ** Revision 1.14 2000/11/05 06:23:10 matt 33 ** realloc was incompatible with memguard 34 ** 35 ** Revision 1.13 2000/10/10 13:58:13 matt 36 ** stroustrup squeezing his way in the door 37 ** 38 ** Revision 1.12 2000/09/20 01:13:28 matt 39 ** damn tabs 40 ** 41 ** Revision 1.11 2000/08/04 12:41:04 neil 42 ** current not a bug 43 ** 44 ** Revision 1.10 2000/07/31 04:28:46 matt 45 ** one million cleanups 46 ** 47 ** Revision 1.9 2000/07/24 04:30:42 matt 48 ** slight cleanup 49 ** 50 ** Revision 1.8 2000/07/23 15:16:08 matt 51 ** changed strcasecmp to stricmp 52 ** 53 ** Revision 1.7 2000/07/19 15:58:55 neil 54 ** config file now configurable (ha) 55 ** 56 ** Revision 1.6 2000/07/18 03:28:32 matt 57 ** help me! I'm a complete mess! 58 ** 59 ** Revision 1.5 2000/07/12 11:03:08 neil 60 ** Always write a config, even if no defaults are changed 61 ** 62 ** Revision 1.4 2000/07/11 15:09:30 matt 63 ** suppressed all warnings 64 ** 65 ** Revision 1.3 2000/07/11 14:59:27 matt 66 ** minor cosmetics.. =) 67 ** 68 ** Revision 1.2 2000/07/11 13:35:38 bsittler 69 ** Changed the config API, implemented config file "nofrendo.cfg". The 70 ** GGI drivers use the group [GGI]. Visual= and Mode= keys are understood. 71 ** 72 ** Revision 1.1 2000/07/11 09:21:10 bsittler 73 ** This is a skeletal configuration system. 74 ** 75 */