summaryrefslogtreecommitdiff
path: root/libguile/hash.h
diff options
context:
space:
mode:
authorMichael Gran <spk121@yahoo.com>2009-08-21 08:57:35 -0700
committerMichael Gran <spk121@yahoo.com>2009-08-21 08:57:35 -0700
commite23106d53eb03d7cb4962282396269176ea7482e (patch)
treed7736a8f7f16af0c73365f688f75561aac81c5eb /libguile/hash.h
parent90305ce9e429f0381ff79427e71287fdafd4d201 (diff)
downloadguile-e23106d53eb03d7cb4962282396269176ea7482e.tar.gz
Add initial support for wide symbols
* libguile/hash.c (scm_i_string_hash): new function (scm_hasher): don't unpack string: use scm_i_string_hash * libguile/hash.h: new declaration for scm_i_string_hash * libguile/print.c (quote_keywordish_symbol): use symbol accessors (scm_i_print_symbol_name): new function (scm_print_symbol_name): call scm_i_print_symbol_name (iprin1): use scm_i_print_symbol_name to print symbols * libguile/print.h: new declaration for scm_i_print_symbol_name * libguile/symbols.c (lookup_interned_symbol): now takes scheme string instead of c string; callers changed (lookup_interned_symbol): add wide symbol support (scm_i_c_mem2symbol): removed (scm_i_mem2symbol): removed and replaced with scm_i_str2symbol (scm_i_str2symbol): new function (scm_i_mem2uninterned_symbol): removed and replaced with scm_i_str2uninterned_symbol (scm_i_str2uninterned_symbol): new function (scm_make_symbol, scm_string_to_symbol, scm_from_locale_symbol) (scm_from_locale_symboln): use scm_i_str2symbol * test-suite/tests/symbols.test: new tests
Diffstat (limited to 'libguile/hash.h')
-rw-r--r--libguile/hash.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libguile/hash.h b/libguile/hash.h
index 789595b42..2ebc05352 100644
--- a/libguile/hash.h
+++ b/libguile/hash.h
@@ -28,6 +28,7 @@
SCM_API unsigned long scm_string_hash (const unsigned char *str, size_t len);
+SCM_INTERNAL unsigned long scm_i_string_hash (SCM str);
SCM_API unsigned long scm_hasher (SCM obj, unsigned long n, size_t d);
SCM_API unsigned long scm_ihashq (SCM obj, unsigned long n);
SCM_API SCM scm_hashq (SCM obj, SCM n);