1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-20 02:30:23 +02:00

remove libguile/lang.h, deprecate %nil (in favor of #nil)

* libguile/Makefile.am:
* libguile/init.c:
* libguile/lang.c:
* libguile/lang.h: Remove lang.c and lang.h.

* libguile/pairs.h (SCM_NIL_P, SCM_NULL_OR_NIL_P): Moved here.

* module/ice-9/deprecated.scm (%nil): %nil definition moved here.

* libguile/alist.c:
* libguile/async.c:
* libguile/backtrace.c:
* libguile/boolean.c:
* libguile/dynl.c:
* libguile/eval.c:
* libguile/filesys.c:
* libguile/fluids.c:
* libguile/list.c:
* libguile/load.c:
* libguile/options.c:
* libguile/posix.c:
* libguile/print.c:
* libguile/promises.c:
* libguile/sort.c:
* libguile/throw.c:
* libguile/trees.c:
* libguile/vectors.c:
* libguile/vm.c:
* libguile/weaks.c:
* srfi/srfi-1.c: <libguile/lang.h> references removed.
This commit is contained in:
Andy Wingo 2010-04-09 14:26:31 +02:00
parent 54e53aa430
commit cd038da546
27 changed files with 20 additions and 133 deletions

View file

@ -151,7 +151,6 @@ libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES = \
instructions.c \ instructions.c \
ioext.c \ ioext.c \
keywords.c \ keywords.c \
lang.c \
list.c \ list.c \
load.c \ load.c \
macros.c \ macros.c \
@ -250,7 +249,6 @@ DOT_X_FILES = \
init.x \ init.x \
ioext.x \ ioext.x \
keywords.x \ keywords.x \
lang.x \
list.x \ list.x \
load.x \ load.x \
macros.x \ macros.x \
@ -350,7 +348,6 @@ DOT_DOC_FILES = \
init.doc \ init.doc \
ioext.doc \ ioext.doc \
keywords.doc \ keywords.doc \
lang.doc \
list.doc \ list.doc \
load.doc \ load.doc \
macros.doc \ macros.doc \
@ -516,7 +513,6 @@ modinclude_HEADERS = \
ioext.h \ ioext.h \
iselect.h \ iselect.h \
keywords.h \ keywords.h \
lang.h \
list.h \ list.h \
load.h \ load.h \
macros.h \ macros.h \

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2004, 2006, 2008 Free Software Foundation, Inc. /* Copyright (C) 1995, 96, 97, 98, 99, 2000, 2001, 2004, 2006, 2008, 2010 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
@ -25,7 +25,6 @@
#include "libguile/_scm.h" #include "libguile/_scm.h"
#include "libguile/eq.h" #include "libguile/eq.h"
#include "libguile/list.h" #include "libguile/list.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/pairs.h" #include "libguile/pairs.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009 Free Software Foundation, Inc. /* Copyright (C) 1995,1996,1997,1998,2000,2001, 2002, 2004, 2006, 2008, 2009, 2010 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
@ -30,7 +30,6 @@
#include "libguile/throw.h" #include "libguile/throw.h"
#include "libguile/root.h" #include "libguile/root.h"
#include "libguile/smob.h" #include "libguile/smob.h"
#include "libguile/lang.h"
#include "libguile/dynwind.h" #include "libguile/dynwind.h"
#include "libguile/deprecation.h" #include "libguile/deprecation.h"

View file

@ -1,5 +1,5 @@
/* Printing of backtraces and error messages /* Printing of backtraces and error messages
* Copyright (C) 1996,1997,1998,1999,2000,2001, 2003, 2004, 2006, 2009 Free Software Foundation * Copyright (C) 1996,1997,1998,1999,2000,2001, 2003, 2004, 2006, 2009, 2010 Free Software Foundation
* *
* 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
@ -45,7 +45,6 @@
#include "libguile/frames.h" #include "libguile/frames.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/lang.h"
#include "libguile/backtrace.h" #include "libguile/backtrace.h"
#include "libguile/filesys.h" #include "libguile/filesys.h"
#include "libguile/private-options.h" #include "libguile/private-options.h"

View file

@ -26,7 +26,6 @@
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/boolean.h" #include "libguile/boolean.h"
#include "libguile/lang.h"
#include "libguile/tags.h" #include "libguile/tags.h"
#include "verify.h" #include "verify.h"

View file

@ -55,7 +55,6 @@ maybe_drag_in_eprintf ()
#include "libguile/ports.h" #include "libguile/ports.h"
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/deprecation.h" #include "libguile/deprecation.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/dynwind.h" #include "libguile/dynwind.h"
#include "libguile/foreign.h" #include "libguile/foreign.h"

View file

@ -42,7 +42,6 @@
#include "libguile/goops.h" #include "libguile/goops.h"
#include "libguile/hash.h" #include "libguile/hash.h"
#include "libguile/hashtab.h" #include "libguile/hashtab.h"
#include "libguile/lang.h"
#include "libguile/list.h" #include "libguile/list.h"
#include "libguile/macros.h" #include "libguile/macros.h"
#include "libguile/memoize.h" #include "libguile/memoize.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1996,1997,1998,1999,2000,2001, 2002, 2004, 2006, 2009 Free Software Foundation, Inc. /* Copyright (C) 1996,1997,1998,1999,2000,2001, 2002, 2004, 2006, 2009, 2010 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
@ -43,7 +43,6 @@
#include "libguile/iselect.h" #include "libguile/iselect.h"
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"
#include "libguile/lang.h"
#include "libguile/dynwind.h" #include "libguile/dynwind.h"
#include "libguile/validate.h" #include "libguile/validate.h"

View file

@ -31,7 +31,6 @@
#include "libguile/eval.h" #include "libguile/eval.h"
#include "libguile/ports.h" #include "libguile/ports.h"
#include "libguile/deprecation.h" #include "libguile/deprecation.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/bdw-gc.h" #include "libguile/bdw-gc.h"

View file

@ -74,7 +74,6 @@
#include "libguile/iselect.h" #include "libguile/iselect.h"
#include "libguile/ioext.h" #include "libguile/ioext.h"
#include "libguile/keywords.h" #include "libguile/keywords.h"
#include "libguile/lang.h"
#include "libguile/list.h" #include "libguile/list.h"
#include "libguile/load.h" #include "libguile/load.h"
#include "libguile/macros.h" #include "libguile/macros.h"
@ -557,7 +556,6 @@ scm_i_init_guile (SCM_STACKITEM *base)
scm_init_simpos (); scm_init_simpos ();
scm_init_dynamic_linking (); /* Requires smob_prehistory */ scm_init_dynamic_linking (); /* Requires smob_prehistory */
scm_bootstrap_i18n (); scm_bootstrap_i18n ();
scm_init_lang ();
scm_init_script (); scm_init_script ();
scm_init_goops (); scm_init_goops ();

View file

@ -1,51 +0,0 @@
/* Copyright (C) 1999, 2000, 2001, 2006, 2008, 2010 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
* as published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "libguile/_scm.h"
#include "libguile/eval.h"
#include "libguile/macros.h"
#include "libguile/root.h"
#include "libguile/validate.h"
#include "libguile/lang.h"
/* {Multi-language support}
*/
void
scm_init_lang ()
{
#include "libguile/lang.x"
scm_c_define ("%nil", SCM_ELISP_NIL);
}
/*
Local Variables:
c-file-style: "gnu"
End:
*/

View file

@ -1,43 +0,0 @@
/* classes: h_files */
#ifndef SCM_LANG_H
#define SCM_LANG_H
/* Copyright (C) 1998, 2004, 2006, 2008, 2009, 2010 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
* as published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#include "libguile/__scm.h"
#define SCM_NILP(x) (scm_is_eq ((x), SCM_ELISP_NIL))
SCM_INTERNAL void scm_init_lang (void);
#define SCM_NULL_OR_NIL_P(x) (scm_is_null_or_nil (x))
#endif /* SCM_LANG_H */
/*
Local Variables:
c-file-style: "gnu"
End:
*/

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,2000,2001,2003,2004,2008,2009 /* Copyright (C) 1995,1996,1997,2000,2001,2003,2004,2008,2009,2010
* Free Software Foundation, Inc. * 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
@ -25,7 +25,6 @@
#include "libguile/_scm.h" #include "libguile/_scm.h"
#include "libguile/eq.h" #include "libguile/eq.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/list.h" #include "libguile/list.h"

View file

@ -38,7 +38,6 @@
#include "libguile/root.h" #include "libguile/root.h"
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/modules.h" #include "libguile/modules.h"
#include "libguile/lang.h"
#include "libguile/chars.h" #include "libguile/chars.h"
#include "libguile/srfi-13.h" #include "libguile/srfi-13.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009 Free Software Foundation /* Copyright (C) 1995,1996,1998,2000,2001, 2006, 2008, 2009, 2010 Free Software Foundation
* *
* 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
@ -24,7 +24,6 @@
#include "libguile/_scm.h" #include "libguile/_scm.h"
#include "libguile/mallocs.h" #include "libguile/mallocs.h"
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/lang.h"
#include "libguile/options.h" #include "libguile/options.h"

View file

@ -54,6 +54,12 @@
#define scm_is_null_or_nil(x) \ #define scm_is_null_or_nil(x) \
(SCM_MATCHES_BITS_IN_COMMON ((x), SCM_ELISP_NIL, SCM_EOL)) (SCM_MATCHES_BITS_IN_COMMON ((x), SCM_ELISP_NIL, SCM_EOL))
/* Older spellings for these nil predicates. */
#define SCM_NILP(x) (scm_is_eq ((x), SCM_ELISP_NIL))
#define SCM_NULL_OR_NIL_P(x) (scm_is_null_or_nil (x))
/* %nil is null. */ /* %nil is null. */
#define scm_is_null(x) (scm_is_null_or_nil(x)) #define scm_is_null(x) (scm_is_null_or_nil(x))

View file

@ -37,7 +37,6 @@
#include "libguile/srfi-14.h" #include "libguile/srfi-14.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"
#include "libguile/values.h" #include "libguile/values.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/posix.h" #include "libguile/posix.h"

View file

@ -44,7 +44,6 @@
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/strports.h" #include "libguile/strports.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"
#include "libguile/lang.h"
#include "libguile/numbers.h" #include "libguile/numbers.h"
#include "libguile/vm.h" #include "libguile/vm.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 /* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010
* Free Software Foundation, Inc. * 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
@ -41,7 +41,6 @@
#include "libguile/goops.h" #include "libguile/goops.h"
#include "libguile/hash.h" #include "libguile/hash.h"
#include "libguile/hashtab.h" #include "libguile/hashtab.h"
#include "libguile/lang.h"
#include "libguile/list.h" #include "libguile/list.h"
#include "libguile/macros.h" #include "libguile/macros.h"
#include "libguile/memoize.h" #include "libguile/memoize.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1999,2000,2001,2002, 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. /* Copyright (C) 1999,2000,2001,2002, 2004, 2006, 2007, 2008, 2009, 2010 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
* as published by the Free Software Foundation; either version 3 of * as published by the Free Software Foundation; either version 3 of
@ -43,7 +43,6 @@
#include "libguile/array-map.h" #include "libguile/array-map.h"
#include "libguile/feature.h" #include "libguile/feature.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"
#include "libguile/lang.h"
#include "libguile/async.h" #include "libguile/async.h"
#include "libguile/dynwind.h" #include "libguile/dynwind.h"

View file

@ -36,7 +36,6 @@
#include "libguile/stacks.h" #include "libguile/stacks.h"
#include "libguile/fluids.h" #include "libguile/fluids.h"
#include "libguile/ports.h" #include "libguile/ports.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/vm.h" #include "libguile/vm.h"
#include "libguile/throw.h" #include "libguile/throw.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 /* Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010
* Free Software Foundation, Inc. * 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
@ -25,7 +25,6 @@
#include "libguile/_scm.h" #include "libguile/_scm.h"
#include "libguile/eq.h" #include "libguile/eq.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/list.h" #include "libguile/list.h"

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1998,1999,2000,2001, 2006, 2008, 2009 Free Software Foundation, Inc. /* Copyright (C) 1995,1996,1998,1999,2000,2001, 2006, 2008, 2009, 2010 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
@ -26,7 +26,6 @@
#include "libguile/eq.h" #include "libguile/eq.h"
#include "libguile/root.h" #include "libguile/root.h"
#include "libguile/strings.h" #include "libguile/strings.h"
#include "libguile/lang.h"
#include "libguile/validate.h" #include "libguile/validate.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"

View file

@ -33,7 +33,6 @@
#include "instructions.h" #include "instructions.h"
#include "objcodes.h" #include "objcodes.h"
#include "programs.h" #include "programs.h"
#include "lang.h" /* NULL_OR_NIL_P */
#include "vm.h" #include "vm.h"
/* I sometimes use this for debugging. */ /* I sometimes use this for debugging. */

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1995,1996,1998,2000,2001, 2003, 2006, 2008, 2009 Free Software Foundation, Inc. /* Copyright (C) 1995,1996,1998,2000,2001, 2003, 2006, 2008, 2009, 2010 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
@ -26,7 +26,6 @@
#include "libguile/_scm.h" #include "libguile/_scm.h"
#include "libguile/vectors.h" #include "libguile/vectors.h"
#include "libguile/lang.h"
#include "libguile/hashtab.h" #include "libguile/hashtab.h"
#include "libguile/validate.h" #include "libguile/validate.h"

View file

@ -258,3 +258,5 @@
(issue-deprecation-warning (issue-deprecation-warning
"`closure?' is deprecated. Use `procedure?' instead.") "`closure?' is deprecated. Use `procedure?' instead.")
(procedure? x)) (procedure? x))
(define %nil #nil)

View file

@ -1,6 +1,6 @@
/* srfi-1.c --- SRFI-1 procedures for Guile /* srfi-1.c --- SRFI-1 procedures for Guile
* *
* Copyright (C) 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2005, 2006, 2008, 2009 * Copyright (C) 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2005, 2006, 2008, 2009, 2010
* Free Software Foundation, Inc. * 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
@ -24,7 +24,6 @@
#endif #endif
#include <libguile.h> #include <libguile.h>
#include <libguile/lang.h>
#include "srfi-1.h" #include "srfi-1.h"