[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] recursive structures in libconfuse
From: |
Saïd LANKRI |
Subject: |
[Confuse-devel] recursive structures in libconfuse |
Date: |
Sun, 24 Jun 2007 18:16:51 +0200 |
User-agent: |
KMail/1.9.6 |
Hi,
It seems that libconfuse cannot support recursive structures. The idea is the
following : i have a graph which contains nodes. each node can contain in its
turn a graph
here are my structures :
// a cluster (=a graph)
cfg_opt_t TopologicalGraphGMLParser::opts[] = {
CFG_SEC("cluster", TopologicalGraphGMLParser::cluster_opts, CFGF_MULTI |
CFGF_TITLE),
CFG_END()
};
// clusters can contain nodes and edges
cfg_opt_t TopologicalGraphGMLParser::cluster_opts[] = {
CFG_SEC("node", TopologicalGraphGMLParser::node_opts, CFGF_MULTI |
CFGF_TITLE),
CFG_SEC("edge", TopologicalGraphGMLParser::edge_opts, CFGF_MULTI |
CFGF_TITLE),
CFG_END()
};
// nodes
cfg_opt_t TopologicalGraphGMLParser::node_opts[] = {
CFG_SEC("metrics", TopologicalGraphGMLParser::node_metrics_opts, CFGF_NONE),
CFG_END()
};
adding the line
CFG_SEC("cluster", TopologicalGraphGMLParser::cluster_opts, CFGF_MULTI |
CFGF_TITLE)
to the node options will make libconfuse crash.
Is it a bug or an unsupported feature ?
Thanks.
--
$Id: KMail, Sun Jun 24 18:12:21 CEST 2007, lankri utf8 Exp$
--
Saïd LANKRI - PhD student - address@hidden
LESTER - Laboratoire d'Électronique des Systèmes TEmps Réel
University of South Brittany
BP 92116 - 56321 LORIENT CEDEX
tel : +33 (0)2 97 87 45 04
fax : +33 (0)2 97 87 45 27
www : http://saidlankri.free.fr
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Confuse-devel] recursive structures in libconfuse,
Saïd LANKRI <=