Commit | Line | Data |
---|---|---|
1a413ab9 MD |
1 | /* classes: h_files */ |
2 | ||
b29058ff DH |
3 | #ifndef SCM_OPTIONS_H |
4 | #define SCM_OPTIONS_H | |
5 | ||
102dbb6f | 6 | /* Copyright (C) 1995,1996,2000,2001, 2006, 2008 Free Software Foundation, Inc. |
b29058ff | 7 | * |
73be1d9e | 8 | * This library is free software; you can redistribute it and/or |
53befeb7 NJ |
9 | * modify it under the terms of the GNU Lesser General Public License |
10 | * as published by the Free Software Foundation; either version 3 of | |
11 | * the License, or (at your option) any later version. | |
b29058ff | 12 | * |
53befeb7 NJ |
13 | * This library is distributed in the hope that it will be useful, but |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
73be1d9e MV |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | * Lesser General Public License for more details. | |
b29058ff | 17 | * |
73be1d9e MV |
18 | * You should have received a copy of the GNU Lesser General Public |
19 | * License along with this library; if not, write to the Free Software | |
53befeb7 NJ |
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
21 | * 02110-1301 USA | |
73be1d9e | 22 | */ |
b29058ff | 23 | |
1a413ab9 MD |
24 | \f |
25 | ||
b4309c3c | 26 | #include "libguile/__scm.h" |
1a413ab9 MD |
27 | |
28 | \f | |
29 | ||
92c2555f | 30 | typedef struct scm_t_option |
1a413ab9 | 31 | { |
11d49f54 DH |
32 | unsigned int type; |
33 | const char *name; | |
34 | scm_t_bits val; | |
fe90df51 | 35 | char *doc; |
92c2555f | 36 | } scm_t_option; |
1be6b49c | 37 | |
1a413ab9 MD |
38 | |
39 | #define SCM_OPTION_BOOLEAN 0 | |
40 | #define SCM_OPTION_INTEGER 1 | |
fe90df51 MD |
41 | #define SCM_OPTION_SCM 2 |
42 | ||
1cc91f1b | 43 | |
03347a97 | 44 | SCM_API SCM scm_options_try (SCM args, scm_t_option options[], const char *s, int dry_run); |
62560650 HWN |
45 | SCM_API SCM scm_options (SCM, scm_t_option [], const char*); |
46 | SCM_API void scm_init_opts (SCM (*) (SCM), scm_t_option []); | |
102dbb6f | 47 | SCM_INTERNAL void scm_init_options (void); |
1a413ab9 | 48 | |
b29058ff | 49 | #endif /* SCM_OPTIONS_H */ |
89e00824 ML |
50 | |
51 | /* | |
52 | Local Variables: | |
53 | c-file-style: "gnu" | |
54 | End: | |
55 | */ |