From: Wes H. <wjh...@uc...> - 2000-11-08 17:00:51
|
>>>>> On Tue, 07 Nov 2000 16:06:18 -0800, Harrie Hazewinkel <ha...@co...> said: Harrie> I also looked into the file-configuration code myself as well. Harrie> SOme parts look a bit complex. It is somewhat complex, admittedly. Most people, though, shouldn't have to deal with the complex parts. Harrie> Also the help-field is never really used. Yes it is. It's used to print out the -H help list (which is a list of tokens that a given command supports). Harrie> An idea would be to have all token/line handling functions Harrie> return a 'char *'. In case it is successfull it return 'NULL' Harrie> in case of preblems "string with message". This would reduce Harrie> the token mechanism I think. Thats another way to do it. config_perror() does roughly the same thing, but allows you to specify whether something is an error or a warning which a char * return wouldn't let you do. -- Wes Hardaker Please mail all replies to net...@li... |