diff options
author | Dmitri Pal <dpal@redhat.com> | 2010-11-27 22:03:24 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-12-21 11:16:09 -0500 |
commit | ec246f748f8dcbeefd46125546364ed2aa3100ea (patch) | |
tree | 299ef0b30b5e286d129e991eaac6491010dd702d /ini/ini.d | |
parent | 5dadfb4371b8ba694b8d9431cb6789bf6de485c4 (diff) | |
download | ding-libs-ec246f748f8dcbeefd46125546364ed2aa3100ea.tar.gz ding-libs-ec246f748f8dcbeefd46125546364ed2aa3100ea.tar.xz ding-libs-ec246f748f8dcbeefd46125546364ed2aa3100ea.zip |
Allow merging values
This patch is the first pass at merging functionality.
It implements merging of values that belong to the same
section. Patch includes:
* Definition of merge flags in doxy format
* Definition of the masks in internal header
* Changes to parser to handle the merging of values.
* Also swithed parser to not use ini_config.h as
I want to switch implementation of the current
interface to new interface at some point.
* New unit test was created.
* New config file for this unit test was added to ini.d
Main code changes are in ini_parse.c
Diffstat (limited to 'ini/ini.d')
-rw-r--r-- | ini/ini.d/foo.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ini/ini.d/foo.conf b/ini/ini.d/foo.conf new file mode 100644 index 0000000..44d56a1 --- /dev/null +++ b/ini/ini.d/foo.conf @@ -0,0 +1,12 @@ +#Hoho section +[hoho] +#Hoho value +val= hoho +#End of hoho +#Start of section +[foo] +#First value +bar = first value +#Second value +bar = second value +#End of section |