val = buxton_value_create_double(d);
break;
case BUXTON_TYPE_BOOLEAN:
- if (!strcasecmp(arg, "true")) {
+ if (!strcasecmp(arg, "true"))
b = 1;
- } else if (!strcasecmp(arg, "false")) {
+ else if (!strcasecmp(arg, "false"))
b = 0;
- } else {
+ else
b = strtol(arg, NULL, 0);
- }
+
printf("Boolean [%s]\n", b ? "True" : "False");
val = buxton_value_create_boolean(b);
break;
val = buxton_value_create_double(d);
break;
case BUXTON_TYPE_BOOLEAN:
- if (!strcasecmp(arg, "true")) {
+ if (!strcasecmp(arg, "true"))
b = 1;
- } else if (!strcasecmp(arg, "false")) {
+ else if (!strcasecmp(arg, "false"))
b = 0;
- } else {
+ else
b = strtol(arg, NULL, 0);
- }
+
printf("Boolean [%s]\n", b ? "True" : "False");
val = buxton_value_create_boolean(b);
break;
}
EXPORT int vconf_keylist_add_dbl(keylist_t *keylist,
- const char *keyname, double value)
+ const char *keyname, double value)
{
struct _keynode_t *keynode;
}
EXPORT int vconf_keylist_add_str(keylist_t *keylist,
- const char *keyname, const char *value)
+ const char *keyname, const char *value)
{
struct _keynode_t *keynode;
char *s;
return -1;
}
- keynode= find_keynode(keylist, keyname);
+ keynode = find_keynode(keylist, keyname);
if (!keynode) {
errno = ENOENT;
return -1;
}
EXPORT int vconf_get(keylist_t *keylist,
- const char *in_parentDIR, get_option_t option)
+ const char *in_parentDIR, get_option_t option)
{
int r;
char **names;
}
EXPORT int vconf_keylist_lookup(keylist_t *keylist, const char *keyname,
- keynode_t **return_node)
+ keynode_t **return_node)
{
struct _keynode_t *keynode;