2 libcore: library for basic data structures and algorithms.
3 Copyright (C) 2005 IPD Goos, Universit"at Karlsruhe, Germany
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 #include "lc_defines.h"
33 struct list_head opts;
34 struct list_head grps;
39 lc_opt_callback_t *cb;
41 lc_opt_dump_vals_t *dump_vals;
47 struct lc_opt_entry_t {
51 struct lc_opt_entry_t *parent;
55 struct list_head list;
63 #define lc_get_opt_special(ent) (&(ent)->v.opt)
64 #define lc_get_grp_special(ent) (&(ent)->v.grp)
66 int lc_opt_raise_error(const lc_opt_err_info_t *err,
67 lc_opt_error_handler_t *handler,
68 const char *fmt, ...);