Commit | Line | Data |
---|---|---|
fca75708 MD |
1 | /* classes: h_files */ |
2 | ||
0527e687 DH |
3 | #ifndef SCM_KEYWORDS_H |
4 | #define SCM_KEYWORDS_H | |
5 | ||
e2fafeb9 | 6 | /* Copyright (C) 1995,1996,1999,2000,2001, 2006, 2008, 2015 Free Software Foundation, Inc. |
0527e687 | 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. | |
0527e687 | 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. | |
0527e687 | 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 | */ |
d3a6bc94 | 23 | |
fca75708 MD |
24 | \f |
25 | ||
26 | #include "libguile/__scm.h" | |
27 | ||
28 | \f | |
29 | ||
33b001fd | 30 | SCM_API SCM scm_keyword_p (SCM obj); |
265a7997 MV |
31 | SCM_API SCM scm_symbol_to_keyword (SCM symbol); |
32 | SCM_API SCM scm_keyword_to_symbol (SCM keyword); | |
33 | ||
34 | SCM_API int scm_is_keyword (SCM val); | |
c428e586 MW |
35 | SCM_API SCM scm_from_locale_keyword (const char *name); |
36 | SCM_API SCM scm_from_locale_keywordn (const char *name, size_t len); | |
37 | SCM_API SCM scm_from_latin1_keyword (const char *name); | |
38 | SCM_API SCM scm_from_utf8_keyword (const char *name); | |
265a7997 | 39 | |
a16d4e82 MW |
40 | enum scm_keyword_arguments_flags |
41 | { | |
42 | SCM_ALLOW_OTHER_KEYS = (1U << 0), | |
43 | SCM_ALLOW_NON_KEYWORD_ARGUMENTS = (1U << 1) | |
44 | }; | |
45 | ||
46 | typedef enum scm_keyword_arguments_flags scm_t_keyword_arguments_flags; | |
47 | ||
48 | SCM_API void | |
49 | scm_c_bind_keyword_arguments (const char *subr, SCM rest, | |
50 | scm_t_keyword_arguments_flags flags, ...); | |
51 | ||
102dbb6f | 52 | SCM_INTERNAL void scm_init_keywords (void); |
fca75708 | 53 | |
0527e687 | 54 | #endif /* SCM_KEYWORDS_H */ |
89e00824 ML |
55 | |
56 | /* | |
57 | Local Variables: | |
58 | c-file-style: "gnu" | |
59 | End: | |
60 | */ |