array-map.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* classes: h_files */
  2. #ifndef SCM_ARRAY_MAP_H
  3. #define SCM_ARRAY_MAP_H
  4. /* Copyright (C) 1995, 1996, 1997, 2000, 2006, 2008, 2009, 2010,
  5. * 2011, 2013, 2015 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. #include "libguile/__scm.h"
  23. SCM_API int scm_ra_matchp (SCM ra0, SCM ras);
  24. SCM_API int scm_ramapc (void *cproc, SCM data, SCM ra0, SCM lra,
  25. const char *what);
  26. SCM_API SCM scm_array_fill_x (SCM ra, SCM fill);
  27. SCM_API SCM scm_array_copy_x (SCM src, SCM dst);
  28. SCM_API SCM scm_array_map_x (SCM ra0, SCM proc, SCM lra);
  29. SCM_API SCM scm_array_for_each (SCM proc, SCM ra0, SCM lra);
  30. SCM_API SCM scm_array_index_map_x (SCM ra, SCM proc);
  31. SCM_API SCM scm_array_equal_p (SCM ra0, SCM ra1);
  32. SCM_API SCM scm_array_slice_for_each (SCM frank, SCM op, SCM args);
  33. SCM_API SCM scm_array_slice_for_each_in_order (SCM frank, SCM op, SCM args);
  34. SCM_INTERNAL SCM scm_i_array_rebase (SCM a, size_t base);
  35. SCM_INTERNAL void scm_init_array_map (void);
  36. #endif /* SCM_ARRAY_MAP_H */
  37. /*
  38. Local Variables:
  39. c-file-style: "gnu"
  40. End:
  41. */