Browse Source

support double type values in config file

Change-Id: If6a722e0070246dbdae7cda7b488524f1e216d7d
changes/18/21018/3
Richard Fuchs 8 years ago
parent
commit
0072380d99
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      lib/auxlib.c

+ 3
- 0
lib/auxlib.c View File

@ -139,6 +139,9 @@ void config_load(int *argc, char ***argv, GOptionEntry *app_entries, const char
case G_OPTION_ARG_INT: case G_OPTION_ARG_INT:
CONF_OPTION_GLUE(integer, int); CONF_OPTION_GLUE(integer, int);
case G_OPTION_ARG_DOUBLE:
CONF_OPTION_GLUE(double, double);
case G_OPTION_ARG_STRING: case G_OPTION_ARG_STRING:
case G_OPTION_ARG_FILENAME: case G_OPTION_ARG_FILENAME:
CONF_OPTION_GLUE(string, char *); CONF_OPTION_GLUE(string, char *);


Loading…
Cancel
Save