* uns value;
* };
*
- * struct clist nodes;
+ * static struct clist nodes;
*
* static struct cf_section node = {
* CF_TYPE(struct list_node),
* CF_END
* };
*
- * You could use <<def_CF_STATIC,`def_CF_STATIC`>> or <<def_CF_DYNAMIC,`def_CF_DYNAMIC`>>
+ * You could use <<def_CF_STATIC,`CF_STATIC`>> or <<def_CF_DYNAMIC,`CF_DYNAMIC`>>
* macros to create arrays.
*/
#define CF_TYPE(s) .size = sizeof(s)
+
The first example is list of strings and uses <<clist:simple,simple
lists>>:
- struct clist list;
++
+ static struct clist list;
+
static struct cf_section section = {
CF_ITEMS {
- CF_LIST("list", &list, &cf_string_list_cofnig),
+ CF_LIST("list", &list, &cf_string_list_config),
CF_END
}
};