Lines Matching full:aconfig
22 AConfig*
25 AConfig *n;
27 n = (AConfig*) calloc(sizeof(AConfig), 1);
34 static AConfig*
35 _aconfig_find(AConfig *root, const char *name, int create)
37 AConfig *node;
44 node = (AConfig*) calloc(sizeof(AConfig), 1);
59 AConfig*
60 aconfig_find(AConfig *root, const char *name)
66 aconfig_bool(AConfig *root, const char *name, int _default)
68 AConfig *n = _aconfig_find(root, name, 0);
84 aconfig_unsigned(AConfig *root, const char *name, unsigned _default)
86 AConfig *n = _aconfig_find(root, name, 0);
95 aconfig_int(AConfig *root, const char *name, int _default)
97 AConfig *n = _aconfig_find(root, name, 0);
107 aconfig_str(AConfig *root, const char *name, const char *_default)
109 AConfig *n = _aconfig_find(root, name, 0);
118 aconfig_set(AConfig *root, const char *name, const char *value)
120 AConfig *node = _aconfig_find(root, name, 1);
271 static int parse_expr(cstate *cs, AConfig *node);
274 parse_block(cstate *cs, AConfig *node)
292 parse_expr(cstate *cs, AConfig *node)
318 aconfig_load(AConfig *root, char *data)
338 aconfig_load_file(AConfig *root, const char *fn)
437 writer_node(Writer* w, AConfig* node, int margin)
449 AConfig* child;
464 aconfig_save_file(AConfig *root, const char *fn)
466 AConfig* child;