Change Guile license to LGPLv3+
[bpt/guile.git] / srfi / srfi-13.h
1 #ifndef SCM_SRFI_13_H
2 #define SCM_SRFI_13_H
3
4 /* SRFI-13 procedures for Guile
5 *
6 * Copyright (C) 2001, 2004, 2006 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 \f
24
25 /* All SRFI-13 procedures are in in the core now. */
26
27 #include <libguile.h>
28
29 /* SCM_SRFI1314_API is a macro prepended to all function and data definitions
30 which should be exported or imported in the resulting dynamic link
31 library in the Win32 port. */
32
33 #if defined (SCM_SRFI1314_IMPORT)
34 # define SCM_SRFI1314_API __declspec (dllimport) extern
35 #elif defined (SCM_SRFI1314_EXPORT) || defined (DLL_EXPORT)
36 # define SCM_SRFI1314_API __declspec (dllexport) extern
37 #else
38 # define SCM_SRFI1314_API extern
39 #endif
40
41 SCM_SRFI1314_API void scm_init_srfi_13 (void);
42 SCM_SRFI1314_API void scm_init_srfi_13_14 (void);
43
44 /* The following functions have new names in the core.
45 */
46
47 #define scm_string_to_listS scm_substring_to_list
48 #define scm_string_copyS scm_substring_copy
49 #define scm_substring_sharedS scm_substring_shared
50 #define scm_string_fill_xS scm_substring_fill_x
51 #define scm_string_indexS scm_string_index
52 #define scm_string_upcase_xS scm_substring_upcase_x
53 #define scm_string_upcaseS scm_substring_upcase
54 #define scm_string_downcase_xS scm_substring_downcase_x
55 #define scm_string_downcaseS scm_substring_downcase
56
57 #endif /* SCM_SRFI_13_H */