1 #ifndef SCM_HASH_H
2 #define SCM_HASH_H
3 
4 /* Copyright 1995-1996,2000,2006,2008,2011,2015,2018
5      Free Software Foundation, Inc.
6 
7    This file is part of Guile.
8 
9    Guile is free software: you can redistribute it and/or modify it
10    under the terms of the GNU Lesser General Public License as published
11    by the Free Software Foundation, either version 3 of the License, or
12    (at your option) any later version.
13 
14    Guile is distributed in the hope that it will be useful, but WITHOUT
15    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
17    License for more details.
18 
19    You should have received a copy of the GNU Lesser General Public
20    License along with Guile.  If not, see
21    <https://www.gnu.org/licenses/>.  */
22 
23 
24 
25 #include "libguile/scm.h"
26 
27 
28 
29 SCM_INTERNAL unsigned long scm_i_locale_string_hash (const char *str,
30                                                      size_t len);
31 SCM_INTERNAL unsigned long scm_i_latin1_string_hash (const  char *str,
32                                                      size_t len);
33 SCM_INTERNAL unsigned long scm_i_utf8_string_hash (const char *str,
34                                                    size_t len);
35 
36 SCM_INTERNAL unsigned long scm_i_string_hash (SCM str);
37 SCM_API unsigned long scm_ihashq (SCM obj, unsigned long n);
38 SCM_API SCM scm_hashq (SCM obj, SCM n);
39 SCM_API unsigned long scm_ihashv (SCM obj, unsigned long n);
40 SCM_API SCM scm_hashv (SCM obj, SCM n);
41 SCM_API unsigned long scm_ihash (SCM obj, unsigned long n);
42 SCM_API SCM scm_hash (SCM obj, SCM n);
43 SCM_INTERNAL void scm_init_hash (void);
44 
45 #endif  /* SCM_HASH_H */
46