diff options
Diffstat (limited to 'libguile/dynl.c')
-rw-r--r-- | libguile/dynl.c | 95 |
1 files changed, 37 insertions, 58 deletions
diff --git a/libguile/dynl.c b/libguile/dynl.c index 2a25e5d2e..bf7163c38 100644 --- a/libguile/dynl.c +++ b/libguile/dynl.c @@ -1,71 +1,56 @@ /* dynl.c - dynamic linking - * - * Copyright (C) 1990, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000, 2001, 2002, - * 2003, 2008, 2009, 2010, 2011, 2017 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 - */ + Copyright 1990-2003,2008-2011,2017-2018 + Free Software Foundation, Inc. + This file is part of Guile. -#ifdef HAVE_CONFIG_H -# include <config.h> -#endif + Guile 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. + + Guile 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 Guile. If not, see + <https://www.gnu.org/licenses/>. */ -#include <alloca.h> -#include <string.h> /* "dynl.c" dynamically link&load object files. Author: Aubrey Jaffer Modified for libguile by Marius Vollmer */ -#if 0 /* Disabled until we know for sure that it isn't needed */ -/* XXX - This is only here to drag in a definition of __eprintf. This - is needed for proper operation of dynamic linking. The real - solution would probably be a shared libgcc. */ - -#undef NDEBUG -#include <assert.h> - -static void -maybe_drag_in_eprintf () -{ - assert (!maybe_drag_in_eprintf); -} +#ifdef HAVE_CONFIG_H +# include <config.h> #endif -#include <stdlib.h> +#include <alloca.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> -#include "libguile/_scm.h" -#include "libguile/libpath.h" -#include "libguile/dynl.h" -#include "libguile/smob.h" -#include "libguile/keywords.h" -#include "libguile/ports.h" -#include "libguile/strings.h" -#include "libguile/deprecation.h" -#include "libguile/validate.h" -#include "libguile/dynwind.h" -#include "libguile/foreign.h" -#include "libguile/gc.h" - #include <ltdl.h> +#include "deprecation.h" +#include "dynwind.h" +#include "foreign.h" +#include "gc.h" +#include "gsubr.h" +#include "keywords.h" +#include "libpath.h" +#include "list.h" +#include "ports.h" +#include "smob.h" +#include "strings.h" +#include "threads.h" + +#include "dynl.h" + + /* From the libtool manual: "Note that libltdl is not threadsafe, i.e. a multithreaded application has to use a mutex for libltdl.". Note: We initialize it as a recursive mutex below. */ @@ -408,11 +393,5 @@ scm_init_dynamic_linking () scm_i_pthread_mutexattr_recursive); sysdep_dynl_init (); -#include "libguile/dynl.x" +#include "dynl.x" } - -/* - Local Variables: - c-file-style: "gnu" - End: -*/ |