[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] Wondering a solution of multi configuration file with sa
From: |
pythonstudy |
Subject: |
[Confuse-devel] Wondering a solution of multi configuration file with same schema. Please help. |
Date: |
Thu, 20 May 2004 19:41:41 +0800 |
Here's the situation.
It got several configuration files in an application with same schema.
Each configuration file instruct a serious of actions the program has to
finish.
But I find it's impossible to make a list of parse results to the files.
The program simply add all results in one cfg_t.
For example,
File 1:
sec "1" {
a = 1
b = 2
}
File 2:
sec "4" {
a = 5
b = 6
}
acfg = cfg_init( schema, 0 );
cfg_parse( file1 );
bcfg = cfg_init( schema, 0 );
cfg_parse( file2 );
then acfg and bcfg both have two secions, "1" and "4"
However, acfg and bcfg are different pointers.
What should I do to resolve the problem?
- [Confuse-devel] Wondering a solution of multi configuration file with same schema. Please help.,
pythonstudy <=