srfi-60.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* srfi-60.h --- SRFI-60 procedures for Guile
  2. *
  3. * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #ifndef SCM_SRFI_60_H
  20. #define SCM_SRFI_60_H
  21. /* SCM_SRFI60_API is a macro prepended to all function and data definitions
  22. which should be exported or imported in the resulting dynamic link
  23. library in the Win32 port. */
  24. #if defined (SCM_SRFI60_IMPORT)
  25. # define SCM_SRFI60_API __declspec (dllimport) extern
  26. #elif defined (SCM_SRFI60_EXPORT) || defined (DLL_EXPORT)
  27. # define SCM_SRFI60_API __declspec (dllexport) extern
  28. #else
  29. # define SCM_SRFI60_API extern
  30. #endif
  31. SCM_SRFI60_API SCM scm_srfi60_log2_binary_factors (SCM n);
  32. SCM_SRFI60_API SCM scm_srfi60_copy_bit (SCM index, SCM n, SCM bit);
  33. SCM_SRFI60_API SCM scm_srfi60_rotate_bit_field (SCM n, SCM count, SCM start, SCM end);
  34. SCM_SRFI60_API SCM scm_srfi60_reverse_bit_field (SCM n, SCM start, SCM end);
  35. SCM_SRFI60_API SCM scm_srfi60_integer_to_list (SCM n, SCM len);
  36. SCM_SRFI60_API SCM scm_srfi60_list_to_integer (SCM lst);
  37. SCM_SRFI60_API void scm_init_srfi_60 (void);
  38. #endif /* SCM_SRFI_60_H */