build: Don't include <config.h> in native programs when cross-compiling.
[bpt/guile.git] / libguile / hash.h
1 /* classes: h_files */
2
3 #ifndef SCM_HASH_H
4 #define SCM_HASH_H
5
6 /* Copyright (C) 1995,1996,2000, 2006, 2008, 2011 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24 \f
25
26 #include "libguile/__scm.h"
27
28 \f
29
30 SCM_API unsigned long scm_string_hash (const unsigned char *str, size_t len);
31 SCM_INTERNAL unsigned long scm_i_locale_string_hash (const char *str,
32 size_t len);
33 SCM_INTERNAL unsigned long scm_i_latin1_string_hash (const char *str,
34 size_t len);
35 SCM_INTERNAL unsigned long scm_i_utf8_string_hash (const char *str,
36 size_t len);
37
38 SCM_INTERNAL unsigned long scm_i_string_hash (SCM str);
39 SCM_API unsigned long scm_hasher (SCM obj, unsigned long n, size_t d);
40 SCM_API unsigned long scm_ihashq (SCM obj, unsigned long n);
41 SCM_API SCM scm_hashq (SCM obj, SCM n);
42 SCM_API unsigned long scm_ihashv (SCM obj, unsigned long n);
43 SCM_API SCM scm_hashv (SCM obj, SCM n);
44 SCM_API unsigned long scm_ihash (SCM obj, unsigned long n);
45 SCM_API SCM scm_hash (SCM obj, SCM n);
46 SCM_INTERNAL void scm_init_hash (void);
47
48 #endif /* SCM_HASH_H */
49
50 /*
51 Local Variables:
52 c-file-style: "gnu"
53 End:
54 */