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,4 +1,4 @@
|
|||
/* Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 2009, 2010, 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
|
||||
|
|
@ -883,11 +883,11 @@ scm_bootstrap_vm (void)
|
|||
"scm_init_vm",
|
||||
(scm_t_extension_init_func)scm_init_vm, NULL);
|
||||
|
||||
sym_vm_run = scm_from_locale_symbol ("vm-run");
|
||||
sym_vm_error = scm_from_locale_symbol ("vm-error");
|
||||
sym_keyword_argument_error = scm_from_locale_symbol ("keyword-argument-error");
|
||||
sym_regular = scm_from_locale_symbol ("regular");
|
||||
sym_debug = scm_from_locale_symbol ("debug");
|
||||
sym_vm_run = scm_from_latin1_symbol ("vm-run");
|
||||
sym_vm_error = scm_from_latin1_symbol ("vm-error");
|
||||
sym_keyword_argument_error = scm_from_latin1_symbol ("keyword-argument-error");
|
||||
sym_regular = scm_from_latin1_symbol ("regular");
|
||||
sym_debug = scm_from_latin1_symbol ("debug");
|
||||
|
||||
#ifdef VM_ENABLE_PRECISE_STACK_GC_SCAN
|
||||
vm_stack_gc_kind =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue