Christian Thaeter
2041efe5b6
more on config_wordlist
...
* universal replace function
* tests
* missing declarations
2008-10-15 16:01:07 +02:00
Christian Thaeter
f754e1521f
Start of a 'wordlist' type for the config subsystem
...
wordlists are simple not quoted words delimited by semicolon, tab, space or
commas. Some special functions will allow to access each of this words by
index etc.
2008-10-15 16:01:06 +02:00
Christian Thaeter
4b2973de27
some cosmetics, removed the CONFIG_DEFAULT error which is not used anymore
2008-09-10 15:19:50 +02:00
Christian Thaeter
e8cc26efa4
First highlevel setter, small api change
...
* setters return LumieraConfigitem (or NULL) instead int
* the config_string_set works now
2008-09-10 15:19:50 +02:00
Christian Thaeter
056bb87f30
config api change, return pointers as truth value
...
NULL indicates some failure,
anything else success (with some usable value)
2008-09-10 15:19:50 +02:00
Christian Thaeter
477ecd3974
Remove the 'path' member from the config and bootstrap the config system
...
* the path parameter given to config_init becomes a registered default
value for 'config.path' itself thus the config system finds its data
path on itself.
* the printf formatting string for representing values are also
bootstrapped as default entries in the config system. This is just a
prelimary example and will be refined later
2008-09-06 12:41:23 +02:00
Christian Thaeter
a95ae05ddb
some cosmetics
2008-09-06 12:41:22 +02:00
Christian Thaeter
fa54fb9bc2
add a diagnostic config dump function
2008-09-06 12:41:22 +02:00
Christian Thaeter
c3e2941eb8
some machinery for registering and retrieving defaults
...
* let config_setdefault() take a complete configline instead key:value pair
2008-09-06 12:40:32 +02:00
Christian Thaeter
d9f2b6d6fa
WIP: add config_lookup skeleton
2008-09-06 12:40:19 +02:00
Christian Thaeter
a51f61683f
add configitem and configentry to the build system
2008-09-06 12:38:48 +02:00
Christian Thaeter
1f8906a2d8
More mockup of the configitem bootstrap
...
* started low-level parser
* give the charsets for config keys some constants
2008-09-06 12:38:03 +02:00
Christian Thaeter
ff35734991
Fixup config to new rwlock SECTION macros
2008-08-10 12:28:02 +02:00
Christian Thaeter
8b901567ed
getting strings from the config
...
a string can be either quoted (single or doublequoted), then the text
between this quotes is returned, quotes are escaped by doubling themself,
no chopping at either end is done,
or not quoted then the the tabs and spaces are chopped from the value
at either end.
2008-08-10 12:26:19 +02:00
Christian Thaeter
3be0d38d73
report syntax error in value instead type error
2008-08-10 12:26:19 +02:00
Christian Thaeter
962bceec72
high level getter for 'number' type
...
WIP: doesn't register the default yet, no configfiles yet
just returning env overrides or defaults
2008-08-10 12:26:19 +02:00
Christian Thaeter
9a329e0340
basic config value retrieval, just env override, no configfiles yet
2008-08-10 12:26:18 +02:00
Christian Thaeter
116c0e8125
more nobug flags for config, add a rwlock for the config, init/destroy
2008-08-10 12:26:18 +02:00
Christian Thaeter
b691a9d7bb
Simple config init/destroy, beginning of a config-testsuite
2008-08-10 12:26:18 +02:00
Christian Thaeter
c8210708fa
skeleton for the config struct
2008-08-10 12:26:18 +02:00
Christian Thaeter
9444fb0267
use 'int' as return values rather than lumiera_err
2008-08-10 12:26:18 +02:00
Christian Thaeter
85e789742f
first skeleton for the config loader
2008-08-10 12:26:15 +02:00