srfi-13.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef SCM_SRFI_13_H
  2. #define SCM_SRFI_13_H
  3. /* SRFI-13 procedures for Guile
  4. *
  5. * Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. /* All SRFI-13 procedures are in in the core now. */
  22. #include <libguile.h>
  23. /* SCM_SRFI1314_API is a macro prepended to all function and data definitions
  24. which should be exported or imported in the resulting dynamic link
  25. library in the Win32 port. */
  26. #if defined (SCM_SRFI1314_IMPORT)
  27. # define SCM_SRFI1314_API __declspec (dllimport) extern
  28. #elif defined (SCM_SRFI1314_EXPORT) || defined (DLL_EXPORT)
  29. # define SCM_SRFI1314_API __declspec (dllexport) extern
  30. #else
  31. # define SCM_SRFI1314_API extern
  32. #endif
  33. SCM_SRFI1314_API void scm_init_srfi_13 (void);
  34. SCM_SRFI1314_API void scm_init_srfi_13_14 (void);
  35. /* The following functions have new names in the core.
  36. */
  37. #define scm_string_to_listS scm_substring_to_list
  38. #define scm_string_copyS scm_substring_copy
  39. #define scm_substring_sharedS scm_substring_shared
  40. #define scm_string_fill_xS scm_substring_fill_x
  41. #define scm_string_indexS scm_string_index
  42. #define scm_string_upcase_xS scm_substring_upcase_x
  43. #define scm_string_upcaseS scm_substring_upcase
  44. #define scm_string_downcase_xS scm_substring_downcase_x
  45. #define scm_string_downcaseS scm_substring_downcase
  46. #endif /* SCM_SRFI_13_H */