hash.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* classes: h_files */
  2. #ifndef SCM_HASH_H
  3. #define SCM_HASH_H
  4. /* Copyright (C) 1995, 1996, 2000, 2006, 2008, 2011,
  5. * 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_INTERNAL unsigned long scm_i_locale_string_hash (const char *str,
  24. size_t len);
  25. SCM_INTERNAL unsigned long scm_i_latin1_string_hash (const char *str,
  26. size_t len);
  27. SCM_INTERNAL unsigned long scm_i_utf8_string_hash (const char *str,
  28. size_t len);
  29. SCM_INTERNAL unsigned long scm_i_string_hash (SCM str);
  30. SCM_API unsigned long scm_ihashq (SCM obj, unsigned long n);
  31. SCM_API SCM scm_hashq (SCM obj, SCM n);
  32. SCM_API unsigned long scm_ihashv (SCM obj, unsigned long n);
  33. SCM_API SCM scm_hashv (SCM obj, SCM n);
  34. SCM_API unsigned long scm_ihash (SCM obj, unsigned long n);
  35. SCM_API SCM scm_hash (SCM obj, SCM n);
  36. SCM_INTERNAL void scm_init_hash (void);
  37. #endif /* SCM_HASH_H */
  38. /*
  39. Local Variables:
  40. c-file-style: "gnu"
  41. End:
  42. */