srfi-13.h 2.0 KB

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