X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fdoc%2Fconf.txt;h=777dbe10facca83e30255028803bca7296a2a71b;hb=f1155256f7a168f5e2c0097cb4e7197b79c4f041;hp=fbfa642970cc7febf61a70459216e5c79f73773d;hpb=b2e520371195bba5827fa19c824a5e2636a9e211;p=libucw.git diff --git a/ucw/doc/conf.txt b/ucw/doc/conf.txt index fbfa6429..777dbe10 100644 --- a/ucw/doc/conf.txt +++ b/ucw/doc/conf.txt @@ -141,11 +141,11 @@ are three ways to do that: + For example, you can have an static array of five unsigned integers: + - static uns array[] = { 1, 2, 3, 4, 5 }; + static uint array[] = { 1, 2, 3, 4, 5 }; + static struct cf_section section = { CF_ITEMS { - CF_UNS_ARY("array", array, 5), + CF_UINT_ARY("array", array, 5), CF_END } }; @@ -153,8 +153,8 @@ For example, you can have an static array of five unsigned integers: *Dynamic arrays*:: Similar to static array, but you provide pointer to pointer to the given item (eg. if you want dynamic array of - integers, you give `**int`). The parser allocates a growing array - (see `gary.h`) of the required size. + integers, you give `**int`). The parser allocates a <> + of the required size. + If you want dynamic array of strings, you would use: + @@ -212,7 +212,7 @@ journal entries are removed and a new one, for the new configuration, is added. If it fails, the first one is replayed and the rollback entry is removed. -See <>. +See @cf_reload(). [[custom_parser]] Creating custom parsers