confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] libconfuse 2.5 and CFGF_MULTI


From: Simon Morris
Subject: [Confuse-devel] libconfuse 2.5 and CFGF_MULTI
Date: Mon, 10 Jan 2005 12:26:21 +0000

Hi, 
Is it possible to determine if an option has been set multiple times
within a section?


for example:

section "test" {
       stringproperty = "this"
       stringproperty = "that"
       stringproperty = "other"
}

I would like to know that there are 3 values for the "stringproperty"
option in this section, and act accordingly.

I tried attaching CFGF_MULTI to the option, and checking the option
size, but it is always one, and defined as the last value parsed
("other")

I'll just use a string list if this isn't possible but it would suit
my system better to do the above just now.

Many thanks,
Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]