mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
use scm_from_latin1_symboln for string literals and load-symbol
* libguile/bytevectors.c: * libguile/eval.c: * libguile/goops.c: * libguile/i18n.c: * libguile/load.c: * libguile/memoize.c: * libguile/modules.c: * libguile/ports.c: * libguile/print.c: * libguile/procs.c: * libguile/programs.c: * libguile/read.c: * libguile/script.c: * libguile/srfi-14.c: * libguile/stacks.c: * libguile/strings.c: * libguile/throw.c: * libguile/vm.c: Use scm_from_latin1_symboln to make symbols from string literals, because they aren't in the user's locale -- they are in ASCII, and we can optimize this case. * libguile/vm-i-loader.c: Also use scm_from_latin1_symboln when loading narrow symbols.
This commit is contained in:
parent
30c282bf93
commit
4a655e50a3
19 changed files with 104 additions and 104 deletions
|
@ -1,6 +1,6 @@
|
|||
/* srfi-14.c --- SRFI-14 procedures for Guile
|
||||
*
|
||||
* Copyright (C) 2001, 2004, 2006, 2007, 2009 Free Software Foundation, Inc.
|
||||
* Copyright (C) 2001, 2004, 2006, 2007, 2009, 2011 Free Software Foundation, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public License
|
||||
|
@ -2036,9 +2036,9 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset),
|
|||
SCM_VALIDATE_SMOB (1, charset, charset);
|
||||
cs = SCM_CHARSET_DATA (charset);
|
||||
|
||||
e1 = scm_cons (scm_from_locale_symbol ("char-set"),
|
||||
e1 = scm_cons (scm_from_latin1_symbol ("char-set"),
|
||||
charset);
|
||||
e2 = scm_cons (scm_from_locale_symbol ("n"),
|
||||
e2 = scm_cons (scm_from_latin1_symbol ("n"),
|
||||
scm_from_size_t (cs->len));
|
||||
|
||||
for (i = 0; i < cs->len; i++)
|
||||
|
@ -2059,7 +2059,7 @@ SCM_DEFINE (scm_sys_char_set_dump, "%char-set-dump", 1, 0, 0, (SCM charset),
|
|||
ranges = scm_append (scm_list_2 (ranges,
|
||||
scm_list_1 (elt)));
|
||||
}
|
||||
e3 = scm_cons (scm_from_locale_symbol ("ranges"),
|
||||
e3 = scm_cons (scm_from_latin1_symbol ("ranges"),
|
||||
ranges);
|
||||
|
||||
return scm_list_3 (e1, e2, e3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue