~peter-pearse/ubuntu/natty/guile-1.8/prop001

« back to all changes in this revision

Viewing changes to srfi/srfi-13.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2006-11-09 03:11:16 UTC
  • Revision ID: james.westby@ubuntu.com-20061109031116-hu0q1jxqg12y6yeg
Tags: upstream-1.8.1+1
ImportĀ upstreamĀ versionĀ 1.8.1+1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2.1 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This library is distributed in the hope that it will be useful,
 
14
 * but 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 02110-1301 USA
 
21
 */
 
22
 
 
23
 
 
24
/* All SRFI-13 procedures are in in the core now. */
 
25
 
 
26
#include <libguile.h>
 
27
 
 
28
/* SCM_SRFI1314_API is a macro prepended to all function and data definitions
 
29
   which should be exported or imported in the resulting dynamic link
 
30
   library in the Win32 port. */
 
31
 
 
32
#if defined (SCM_SRFI1314_IMPORT)
 
33
# define SCM_SRFI1314_API __declspec (dllimport) extern
 
34
#elif defined (SCM_SRFI1314_EXPORT) || defined (DLL_EXPORT)
 
35
# define SCM_SRFI1314_API __declspec (dllexport) extern
 
36
#else
 
37
# define SCM_SRFI1314_API extern
 
38
#endif
 
39
 
 
40
SCM_SRFI1314_API void scm_init_srfi_13 (void);
 
41
SCM_SRFI1314_API void scm_init_srfi_13_14 (void);
 
42
 
 
43
/* The following functions have new names in the core.
 
44
 */
 
45
 
 
46
#define scm_string_to_listS    scm_substring_to_list
 
47
#define scm_string_copyS       scm_substring_copy
 
48
#define scm_substring_sharedS  scm_substring_shared
 
49
#define scm_string_fill_xS     scm_substring_fill_x
 
50
#define scm_string_indexS      scm_string_index
 
51
#define scm_string_upcase_xS   scm_substring_upcase_x
 
52
#define scm_string_upcaseS     scm_substring_upcase
 
53
#define scm_string_downcase_xS scm_substring_downcase_x
 
54
#define scm_string_downcaseS   scm_substring_downcase
 
55
 
 
56
#endif /* SCM_SRFI_13_H */