diff options
author | Andy Wingo <wingo@pobox.com> | 2011-01-07 09:08:58 -0800 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-01-07 09:18:41 -0800 |
commit | 4a655e50a3890da9cd453a0b2c83dacc2cfcc34e (patch) | |
tree | 050c60a5546fa5908ddcd6380f63e4c6eef6770a /libguile/print.c | |
parent | 30c282bf93d7162fd8898a035ab60a3a556c5199 (diff) | |
download | guile-4a655e50a3890da9cd453a0b2c83dacc2cfcc34e.tar.gz |
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.
Diffstat (limited to 'libguile/print.c')
-rw-r--r-- | libguile/print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libguile/print.c b/libguile/print.c index f62378f46..352ca94f8 100644 --- a/libguile/print.c +++ b/libguile/print.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995-1999,2000,2001, 2002, 2003, 2004, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. +/* Copyright (C) 1995-1999,2000,2001, 2002, 2003, 2004, 2006, 2008, 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 @@ -1363,9 +1363,9 @@ scm_init_print () scm_init_opts (scm_print_options, scm_print_opts); - scm_print_options (scm_list_4 (scm_from_locale_symbol ("highlight-prefix"), + scm_print_options (scm_list_4 (scm_from_latin1_symbol ("highlight-prefix"), scm_from_locale_string ("{"), - scm_from_locale_symbol ("highlight-suffix"), + scm_from_latin1_symbol ("highlight-suffix"), scm_from_locale_string ("}"))); scm_gc_register_root (&print_state_pool); @@ -1374,7 +1374,7 @@ scm_init_print () layout = scm_make_struct_layout (scm_from_locale_string (SCM_PRINT_STATE_LAYOUT)); type = scm_make_struct (vtable, SCM_INUM0, scm_list_1 (layout)); - scm_set_struct_vtable_name_x (type, scm_from_locale_symbol ("print-state")); + scm_set_struct_vtable_name_x (type, scm_from_latin1_symbol ("print-state")); scm_print_state_vtable = type; /* Don't want to bind a wrapper class in GOOPS, so pass 0 as arg1. */ |