degenerate let forms
[bpt/guile.git] / libguile / keywords.h
1 /* classes: h_files */
2
3 #ifndef SCM_KEYWORDS_H
4 #define SCM_KEYWORDS_H
5
6 /* Copyright (C) 1995,1996,1999,2000,2001, 2006, 2008, 2015 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
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.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
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
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24 \f
25
26 #include "libguile/__scm.h"
27
28 \f
29
30 SCM_API SCM scm_keyword_p (SCM obj);
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);
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);
39
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
52 SCM_INTERNAL void scm_init_keywords (void);
53
54 #endif /* SCM_KEYWORDS_H */
55
56 /*
57 Local Variables:
58 c-file-style: "gnu"
59 End:
60 */