Simplify the interpreter for trivial inits and no letrec
[bpt/guile.git] / libguile / keywords.h
CommitLineData
fca75708
MD
1/* classes: h_files */
2
0527e687
DH
3#ifndef SCM_KEYWORDS_H
4#define SCM_KEYWORDS_H
5
102dbb6f 6/* Copyright (C) 1995,1996,1999,2000,2001, 2006, 2008 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 30SCM_API scm_t_bits scm_tc16_keyword;
e841c3e0 31
fca75708
MD
32\f
33
33b001fd 34SCM_API SCM scm_keyword_p (SCM obj);
265a7997
MV
35SCM_API SCM scm_symbol_to_keyword (SCM symbol);
36SCM_API SCM scm_keyword_to_symbol (SCM keyword);
37
38SCM_API int scm_is_keyword (SCM val);
c428e586
MW
39SCM_API SCM scm_from_locale_keyword (const char *name);
40SCM_API SCM scm_from_locale_keywordn (const char *name, size_t len);
41SCM_API SCM scm_from_latin1_keyword (const char *name);
42SCM_API SCM scm_from_utf8_keyword (const char *name);
265a7997 43
a16d4e82
MW
44enum scm_keyword_arguments_flags
45{
46 SCM_ALLOW_OTHER_KEYS = (1U << 0),
47 SCM_ALLOW_NON_KEYWORD_ARGUMENTS = (1U << 1)
48};
49
50typedef enum scm_keyword_arguments_flags scm_t_keyword_arguments_flags;
51
52SCM_API void
53scm_c_bind_keyword_arguments (const char *subr, SCM rest,
54 scm_t_keyword_arguments_flags flags, ...);
55
102dbb6f 56SCM_INTERNAL void scm_init_keywords (void);
fca75708 57
0527e687 58#endif /* SCM_KEYWORDS_H */
89e00824
ML
59
60/*
61 Local Variables:
62 c-file-style: "gnu"
63 End:
64*/