- Fixed option processing of bool options in config file.

- Tried to make option order more consistent
This commit is contained in:
robijn
2003-02-27 20:31:51 +00:00
parent fe4ad1b40e
commit 4a7ef8d847
5 changed files with 47 additions and 58 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ int config_read_string( char *sectionname, char *str );
* Returns -16 if a malloc went wrong.
*/
unsigned char config_get_bool( char *sectionname, char *keyname,
int skip, unsigned char default_value );
short config_get_bool( char *sectionname, char *keyname,
int skip, short default_value );
/* Tries to interpret a value in the config file as a boolean.
* 0, false, no, n = false
* 1, true, yes, y = true