mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Merge libguile-i18n' into
libguile'.
* GUILE-VERSION (LIBGUILE_I18N_MAJOR, LIBGUILE_I18N_INTERFACE_CURRENT, LIBGUILE_I18N_INTERFACE_REVISION, LIBGUILE_I18N_INTERFACE_AGE, LIBGUILE_I18N_INTERFACE): Remove. * doc/ref/api-i18n.texi (i18n Introduction): Don't mention `libguile-i18n'. * libguile.h: Include "libguile/i18n.h". * libguile/Makefile.am (lib_LTLIBRARIES): Remove `libguile-i18n-v*'. (libguile_la_SOURCES): Add `i18n.c'. (libguile_i18n_v_*_SOURCES, libguile_i18n_v_*_CFLAGS, libguile_i18n_v_*_LIBADD, libguile_i18n_v_*_LDFLAGS): Remove. * libguile/i18n.c (scm_bootstrap_i18n): New function. * libguile/i18n.h (scm_nl_langinfo, scm_init_i18n): Made internal. (scm_bootstrap_i18n): New declaration. * libguile/init.c (scm_i_init_guile): Invoke `scm_bootstrap_i18n ()'. * module/ice-9/i18n.scm: Load from `libguile' instead of `libguile-i18n-v-0'.
This commit is contained in:
parent
a5229ee822
commit
756e8a3acf
8 changed files with 27 additions and 32 deletions
|
@ -54,9 +54,3 @@ LIBGUILE_SRFI_SRFI_60_INTERFACE_CURRENT=3
|
||||||
LIBGUILE_SRFI_SRFI_60_INTERFACE_REVISION=0
|
LIBGUILE_SRFI_SRFI_60_INTERFACE_REVISION=0
|
||||||
LIBGUILE_SRFI_SRFI_60_INTERFACE_AGE=0
|
LIBGUILE_SRFI_SRFI_60_INTERFACE_AGE=0
|
||||||
LIBGUILE_SRFI_SRFI_60_INTERFACE="${LIBGUILE_SRFI_SRFI_60_INTERFACE_CURRENT}:${LIBGUILE_SRFI_SRFI_60_INTERFACE_REVISION}:${LIBGUILE_SRFI_SRFI_60_INTERFACE_AGE}"
|
LIBGUILE_SRFI_SRFI_60_INTERFACE="${LIBGUILE_SRFI_SRFI_60_INTERFACE_CURRENT}:${LIBGUILE_SRFI_SRFI_60_INTERFACE_REVISION}:${LIBGUILE_SRFI_SRFI_60_INTERFACE_AGE}"
|
||||||
|
|
||||||
LIBGUILE_I18N_MAJOR=0
|
|
||||||
LIBGUILE_I18N_INTERFACE_CURRENT=0
|
|
||||||
LIBGUILE_I18N_INTERFACE_REVISION=0
|
|
||||||
LIBGUILE_I18N_INTERFACE_AGE=0
|
|
||||||
LIBGUILE_I18N_INTERFACE="${LIBGUILE_I18N_INTERFACE_CURRENT}:${LIBGUILE_INTERFACE_REVISION}:${LIBGUILE_I18N_INTERFACE_AGE}"
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@c -*-texinfo-*-
|
@c -*-texinfo-*-
|
||||||
@c This is part of the GNU Guile Reference Manual.
|
@c This is part of the GNU Guile Reference Manual.
|
||||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2007
|
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2009
|
||||||
@c Free Software Foundation, Inc.
|
@c Free Software Foundation, Inc.
|
||||||
@c See the file guile.texi for copying conditions.
|
@c See the file guile.texi for copying conditions.
|
||||||
|
|
||||||
|
@ -39,12 +39,6 @@ In order to make use of the functions described thereafter, the
|
||||||
(use-modules (ice-9 i18n))
|
(use-modules (ice-9 i18n))
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@cindex libguile-i18n-v-@value{LIBGUILE_I18N_MAJOR}
|
|
||||||
|
|
||||||
C programs can use the C functions corresponding to the procedures of
|
|
||||||
this module by including @code{<libguile/i18n.h>} and by linking
|
|
||||||
against @code{libguile-i18n-v-@value{LIBGUILE_I18N_MAJOR}}.
|
|
||||||
|
|
||||||
@cindex cultural conventions
|
@cindex cultural conventions
|
||||||
|
|
||||||
The @code{(ice-9 i18n)} module provides procedures to manipulate text
|
The @code{(ice-9 i18n)} module provides procedures to manipulate text
|
||||||
|
|
|
@ -61,6 +61,7 @@ extern "C" {
|
||||||
#include "libguile/guardians.h"
|
#include "libguile/guardians.h"
|
||||||
#include "libguile/hash.h"
|
#include "libguile/hash.h"
|
||||||
#include "libguile/hashtab.h"
|
#include "libguile/hashtab.h"
|
||||||
|
#include "libguile/i18n.h"
|
||||||
#include "libguile/init.h"
|
#include "libguile/init.h"
|
||||||
#include "libguile/ioext.h"
|
#include "libguile/ioext.h"
|
||||||
#include "libguile/rdelim.h"
|
#include "libguile/rdelim.h"
|
||||||
|
|
|
@ -43,8 +43,7 @@ gnulib_library = $(top_builddir)/lib/libgnu.la
|
||||||
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
|
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
|
||||||
--regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
|
--regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
|
||||||
|
|
||||||
lib_LTLIBRARIES = libguile.la \
|
lib_LTLIBRARIES = libguile.la
|
||||||
libguile-i18n-v-@LIBGUILE_I18N_MAJOR@.la
|
|
||||||
bin_PROGRAMS = guile
|
bin_PROGRAMS = guile
|
||||||
|
|
||||||
noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig
|
noinst_PROGRAMS = guile_filter_doc_snarfage gen-scmconfig
|
||||||
|
@ -145,6 +144,7 @@ libguile_la_SOURCES = \
|
||||||
hash.c \
|
hash.c \
|
||||||
hashtab.c \
|
hashtab.c \
|
||||||
hooks.c \
|
hooks.c \
|
||||||
|
i18n.c \
|
||||||
init.c \
|
init.c \
|
||||||
inline.c \
|
inline.c \
|
||||||
instructions.c \
|
instructions.c \
|
||||||
|
@ -203,15 +203,6 @@ libguile_la_SOURCES = \
|
||||||
vports.c \
|
vports.c \
|
||||||
weaks.c
|
weaks.c
|
||||||
|
|
||||||
libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_SOURCES = i18n.c
|
|
||||||
libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_CFLAGS = \
|
|
||||||
$(libguile_la_CFLAGS)
|
|
||||||
libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_LIBADD = \
|
|
||||||
libguile.la $(gnulib_library)
|
|
||||||
libguile_i18n_v_@LIBGUILE_I18N_MAJOR@_la_LDFLAGS = \
|
|
||||||
-module -L$(builddir) -lguile \
|
|
||||||
-version-info @LIBGUILE_I18N_INTERFACE@
|
|
||||||
|
|
||||||
DOT_X_FILES = \
|
DOT_X_FILES = \
|
||||||
alist.x \
|
alist.x \
|
||||||
arbiters.x \
|
arbiters.x \
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
|
|
||||||
#include "libguile/_scm.h"
|
#include "libguile/_scm.h"
|
||||||
|
#include "libguile/extensions.h"
|
||||||
#include "libguile/feature.h"
|
#include "libguile/feature.h"
|
||||||
#include "libguile/i18n.h"
|
#include "libguile/i18n.h"
|
||||||
#include "libguile/strings.h"
|
#include "libguile/strings.h"
|
||||||
|
@ -1707,6 +1708,15 @@ scm_init_i18n ()
|
||||||
SCM_VARIABLE_SET (scm_global_locale, global_locale_smob);
|
SCM_VARIABLE_SET (scm_global_locale, global_locale_smob);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
scm_bootstrap_i18n ()
|
||||||
|
{
|
||||||
|
scm_c_register_extension ("libguile", "scm_init_i18n",
|
||||||
|
(scm_t_extension_init_func) scm_init_i18n,
|
||||||
|
NULL);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Local Variables:
|
Local Variables:
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#ifndef SCM_I18N_H
|
#ifndef SCM_I18N_H
|
||||||
#define SCM_I18N_H
|
#define SCM_I18N_H
|
||||||
|
|
||||||
/* Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
/* Copyright (C) 2006, 2008, 2009 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public License
|
* modify it under the terms of the GNU Lesser General Public License
|
||||||
|
@ -42,9 +42,12 @@ SCM_API SCM scm_string_locale_upcase (SCM chr, SCM locale);
|
||||||
SCM_API SCM scm_string_locale_downcase (SCM chr, SCM locale);
|
SCM_API SCM scm_string_locale_downcase (SCM chr, SCM locale);
|
||||||
SCM_API SCM scm_locale_string_to_integer (SCM str, SCM base, SCM locale);
|
SCM_API SCM scm_locale_string_to_integer (SCM str, SCM base, SCM locale);
|
||||||
SCM_API SCM scm_locale_string_to_inexact (SCM str, SCM locale);
|
SCM_API SCM scm_locale_string_to_inexact (SCM str, SCM locale);
|
||||||
SCM_API SCM scm_nl_langinfo (SCM item, SCM locale);
|
|
||||||
|
|
||||||
SCM_API void scm_init_i18n (void);
|
SCM_INTERNAL SCM scm_nl_langinfo (SCM item, SCM locale);
|
||||||
|
|
||||||
|
SCM_INTERNAL void scm_init_i18n (void);
|
||||||
|
SCM_INTERNAL void scm_bootstrap_i18n (void);
|
||||||
|
|
||||||
|
|
||||||
#endif /* SCM_I18N_H */
|
#endif /* SCM_I18N_H */
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
#include "libguile/hashtab.h"
|
#include "libguile/hashtab.h"
|
||||||
#include "libguile/hooks.h"
|
#include "libguile/hooks.h"
|
||||||
#include "libguile/gettext.h"
|
#include "libguile/gettext.h"
|
||||||
|
#include "libguile/i18n.h"
|
||||||
#include "libguile/iselect.h"
|
#include "libguile/iselect.h"
|
||||||
#include "libguile/ioext.h"
|
#include "libguile/ioext.h"
|
||||||
#include "libguile/keywords.h"
|
#include "libguile/keywords.h"
|
||||||
|
@ -561,6 +562,7 @@ scm_i_init_guile (SCM_STACKITEM *base)
|
||||||
scm_init_load_path ();
|
scm_init_load_path ();
|
||||||
scm_init_standard_ports (); /* Requires fports */
|
scm_init_standard_ports (); /* Requires fports */
|
||||||
scm_init_dynamic_linking ();
|
scm_init_dynamic_linking ();
|
||||||
|
scm_bootstrap_i18n ();
|
||||||
#if SCM_ENABLE_ELISP
|
#if SCM_ENABLE_ELISP
|
||||||
scm_init_lang ();
|
scm_init_lang ();
|
||||||
#endif /* SCM_ENABLE_ELISP */
|
#endif /* SCM_ENABLE_ELISP */
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
;;;; i18n.scm --- internationalization support
|
;;;; i18n.scm --- internationalization support
|
||||||
|
|
||||||
;;;; Copyright (C) 2006, 2007 Free Software Foundation, Inc.
|
;;;; Copyright (C) 2006, 2007, 2009 Free Software Foundation, Inc.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; This library is free software; you can redistribute it and/or
|
;;;; This library is free software; you can redistribute it and/or
|
||||||
;;;; modify it under the terms of the GNU Lesser General Public
|
;;;; modify it under the terms of the GNU Lesser General Public
|
||||||
;;;; License as published by the Free Software Foundation; either
|
;;;; License as published by the Free Software Foundation; either
|
||||||
;;;; version 3 of the License, or (at your option) any later version.
|
;;;; version 3 of the License, or (at your option) any later version.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; This library is distributed in the hope that it will be useful,
|
;;;; This library is distributed in the hope that it will be useful,
|
||||||
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
;;;; Lesser General Public License for more details.
|
;;;; Lesser General Public License for more details.
|
||||||
;;;;
|
;;;;
|
||||||
;;;; You should have received a copy of the GNU Lesser General Public
|
;;;; You should have received a copy of the GNU Lesser General Public
|
||||||
;;;; License along with this library; if not, write to the Free Software
|
;;;; License along with this library; if not, write to the Free Software
|
||||||
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
;;; Author: Ludovic Courtès <ludovic.courtes@laas.fr>
|
;;; Author: Ludovic Courtès <ludo@gnu.org>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;;
|
;;;
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
|
|
||||||
(eval-when (eval load compile)
|
(eval-when (eval load compile)
|
||||||
(load-extension "libguile-i18n-v-0" "scm_init_i18n"))
|
(load-extension "libguile" "scm_init_i18n"))
|
||||||
|
|
||||||
|
|
||||||
;;;
|
;;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue