6 /* Copyright (C) 1995,1996,1999,2000,2001, 2006, 2008, 2015 Free Software Foundation, Inc.
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.
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.
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
26 #include "libguile/__scm.h"
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
);
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
);
40 enum scm_keyword_arguments_flags
42 SCM_ALLOW_OTHER_KEYS
= (1U << 0),
43 SCM_ALLOW_NON_KEYWORD_ARGUMENTS
= (1U << 1)
46 typedef enum scm_keyword_arguments_flags scm_t_keyword_arguments_flags
;
49 scm_c_bind_keyword_arguments (const char *subr
, SCM rest
,
50 scm_t_keyword_arguments_flags flags
, ...);
52 SCM_INTERNAL
void scm_init_keywords (void);
54 #endif /* SCM_KEYWORDS_H */