mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 03:30:27 +02:00
* Lots of files: New address for FSF.
This commit is contained in:
parent
1532804164
commit
82892beda5
175 changed files with 524 additions and 1939 deletions
|
@ -1,8 +1,8 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
|
||||
675 Mass Ave, Cambridge, MA 02139, USA
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
|
@ -279,7 +279,7 @@ POSSIBILITY OF SUCH DAMAGES.
|
|||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Appendix: How to Apply These Terms to Your New Programs
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
|
@ -305,7 +305,8 @@ the "copyright" line and a pointer to where the full notice is found.
|
|||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
|
|
|
@ -1,3 +1,36 @@
|
|||
Mon May 26 17:24:38 1997 Jim Blandy <jimb@totoro.cyclic.com>
|
||||
|
||||
* COPYING, __scm.h, _scm.h, alist.c, alist.h, append.c, append.h,
|
||||
appinit.c, arbiters.c, arbiters.h, async.c, async.h, backtrace.c,
|
||||
backtrace.h, boolean.c, boolean.h, chars.c, chars.h,
|
||||
continuations.c, continuations.h, coop-defs.h, coop-threads.c,
|
||||
coop-threads.c.cygnus, coop-threads.h, coop-threads.h.cygnus,
|
||||
coop.c, debug.c, debug.h, dynl-dl.c, dynl-dld.c, dynl-shl.c,
|
||||
dynl-vms.c, dynl.c, dynl.h, dynwind.c, dynwind.h, eq.c, eq.h,
|
||||
error.c, error.h, eval.c, eval.h, extchrs.h, feature.c, feature.h,
|
||||
filesys.c, filesys.h, fports.c, fports.h, fsu-pthreads.h, gc.c,
|
||||
gc.h, gdbint.c, gdbint.h, genio.c, genio.h, gh.h, gh_data.c,
|
||||
gh_eval.c, gh_funcs.c, gh_init.c, gh_io.c, gh_list.c,
|
||||
gh_predicates.c, gh_test_c.c, gh_test_repl.c, gscm.c, gscm.h,
|
||||
gsubr.c, gsubr.h, guile.c, hash.c, hash.h, hashtab.c, hashtab.h,
|
||||
init.c, init.h, ioext.c, ioext.h, kw.c, kw.h, libguile.h, list.c,
|
||||
list.h, load.c, load.h, mallocs.c, mallocs.h, markers.c,
|
||||
markers.h, mbstrings.c, mbstrings.h, mit-pthreads.c,
|
||||
mit-pthreads.h, net_db.c, net_db.h, numbers.c, numbers.h,
|
||||
objprop.c, objprop.h, options.c, options.h, pairs.c, pairs.h,
|
||||
ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
|
||||
procprop.h, procs.c, procs.h, putenv.c, ramap.c, ramap.h, read.c,
|
||||
read.h, root.c, root.h, scmhob.h, scmsigs.c, scmsigs.h, script.c,
|
||||
script.h, sequences.c, sequences.h, simpos.c, simpos.h, smob.c,
|
||||
smob.h, snarf.h, socket.c, socket.h, srcprop.c, srcprop.h,
|
||||
stackchk.c, stackchk.h, stacks.c, stacks.h, stime.c, stime.h,
|
||||
strings.c, strings.h, strop.c, strop.h, strorder.c, strorder.h,
|
||||
strports.c, strports.h, struct.c, struct.h, symbols.c, symbols.h,
|
||||
tag.c, tag.h, tags.h, threads.c, threads.h, throw.c, throw.h,
|
||||
unif.c, unif.h, variable.c, variable.h, vectors.c, vectors.h,
|
||||
version.c, version.h, vports.c, vports.h, weaks.c, weaks.h: New
|
||||
address for FSF.
|
||||
|
||||
Mon May 26 12:37:30 1997 Jim Blandy <jimb@floss.cyclic.com>
|
||||
|
||||
* script.c (scm_find_executable): Use prototype-style definition
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* {Supported Options}
|
||||
*
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -1,78 +0,0 @@
|
|||
/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
#include "list.h"
|
||||
|
||||
#include "append.h"
|
||||
|
||||
|
||||
|
||||
SCM_PROC (s_append, "append", 0, 0, 1, scm_append);
|
||||
|
||||
SCM
|
||||
scm_append (objs)
|
||||
SCM objs;
|
||||
{
|
||||
return scm_list_append (objs);
|
||||
}
|
||||
|
||||
|
||||
SCM_PROC (s_append_x, "append!", 0, 0, 1, scm_append_x);
|
||||
|
||||
SCM
|
||||
scm_append_x (objs)
|
||||
SCM objs;
|
||||
{
|
||||
return scm_list_append_x (objs);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
scm_init_append ()
|
||||
{
|
||||
#include "append.x"
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
/* classes: h_files */
|
||||
|
||||
#ifndef APPENDH
|
||||
#define APPENDH
|
||||
/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
||||
|
||||
extern SCM scm_append SCM_P ((SCM objs));
|
||||
extern SCM scm_append_x SCM_P ((SCM objs));
|
||||
extern void scm_init_append SCM_P ((void));
|
||||
|
||||
#endif /* APPENDH */
|
|
@ -1,52 +0,0 @@
|
|||
/* Copyright (C) 1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
||||
|
||||
|
||||
|
||||
void
|
||||
scm_appinit ()
|
||||
{
|
||||
}
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -43,8 +44,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -41,8 +42,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
# ifdef TIME_WITH_SYS_TIME
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "coop-threads.h"
|
||||
|
|
|
@ -1,469 +0,0 @@
|
|||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
/* A counter of the current number of threads */
|
||||
size_t scm_thread_count = 0;
|
||||
|
||||
/* This is included rather than compiled seperately in order
|
||||
to simplify the configuration mechanism. */
|
||||
#include "coop.c"
|
||||
|
||||
/* A count-down counter used to determine when to switch
|
||||
contexts */
|
||||
size_t scm_switch_counter = SCM_THREAD_SWITCH_COUNT;
|
||||
|
||||
coop_m scm_critical_section_mutex;
|
||||
|
||||
static struct gscm_type scm_thread_type;
|
||||
static struct gscm_type scm_mutex_type;
|
||||
static struct gscm_type scm_condition_variable_type;
|
||||
|
||||
/* This mutex is used to synchronize thread creation */
|
||||
static coop_m scm_coop_create_mutex;
|
||||
|
||||
/* Support structure for thread creation */
|
||||
struct scm_coop_create_info_type scm_coop_create_info;
|
||||
|
||||
#ifdef __STDC__
|
||||
int
|
||||
gscm_threads_thread_equal (SCM t1, SCM t2)
|
||||
#else
|
||||
int
|
||||
gscm_threads_thread_equal (t1, t2)
|
||||
SCM t1, t2;
|
||||
#endif
|
||||
{
|
||||
return (*(coop_t **) gscm_unwrap_obj (&scm_thread_type, &t1) ==
|
||||
*(coop_t **) gscm_unwrap_obj (&scm_thread_type, &t2));
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_thread_die (SCM t)
|
||||
#else
|
||||
void
|
||||
gscm_threads_thread_die (t)
|
||||
SCM t;
|
||||
#endif
|
||||
{
|
||||
coop_t **thread = (coop_t **) gscm_unwrap_obj (&scm_thread_type, &t);
|
||||
free(*thread);
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_mutex_die (SCM m)
|
||||
#else
|
||||
void
|
||||
gscm_threads_scm_mutex_die (m)
|
||||
SCM m;
|
||||
#endif
|
||||
{
|
||||
/* He's dead, Jim */
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_condition_variable_die (SCM c)
|
||||
#else
|
||||
void
|
||||
gscm_threads_condition_variable_die (c)
|
||||
SCM c;
|
||||
#endif
|
||||
{
|
||||
/* He's dead, Jim */
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_init ()
|
||||
#else
|
||||
void
|
||||
gscm_threads_init ()
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
/* cleanup for info structure
|
||||
*/
|
||||
#ifdef __STDC__
|
||||
static void
|
||||
scm_pthread_delete_info (void *ptr)
|
||||
#else
|
||||
static void
|
||||
scm_pthread_delete_info (ptr)
|
||||
void *ptr;
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_init_coop_threads ()
|
||||
#else
|
||||
void
|
||||
gscm_threads_init_coop_threads ()
|
||||
#endif
|
||||
{
|
||||
SCM *prots;
|
||||
|
||||
coop_init();
|
||||
|
||||
scm_thread_count = 1;
|
||||
|
||||
prots = (SCM *)malloc (sizeof (SCM) * scm_num_thread_local_protects);
|
||||
|
||||
coop_global_main.sto = &prots;
|
||||
coop_global_main.base = &prots;
|
||||
coop_global_curr = &coop_global_main;
|
||||
coop_all_qput (&coop_global_allq, coop_global_curr);
|
||||
|
||||
coop_mutex_init(&scm_coop_create_mutex);
|
||||
coop_mutex_init(&scm_critical_section_mutex);
|
||||
|
||||
coop_global_main.data = prots;
|
||||
|
||||
/* Initialize the root thread specific data pointer. All new threads
|
||||
get a copy of this buffer.
|
||||
scm_root_prots = prots; */
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
gscm_threads_mark_stacks ()
|
||||
#else
|
||||
void
|
||||
gscm_threads_mark_stacks ()
|
||||
#endif
|
||||
{
|
||||
coop_t *thread;
|
||||
int j;
|
||||
jmp_buf scm_save_regs_gc_mark;
|
||||
|
||||
for (thread = coop_global_allq.t.all_next;
|
||||
thread != NULL; thread = thread->all_next)
|
||||
{
|
||||
if (thread == coop_global_curr)
|
||||
{
|
||||
/* Active thread */
|
||||
/* stack_len is long rather than sizet in order to guarantee
|
||||
that &stack_len is long aligned */
|
||||
#ifdef STACK_GROWS_UP
|
||||
long stack_len = (STACKITEM *) (&thread) -
|
||||
(STACKITEM *) thread->base;
|
||||
|
||||
/* Protect from the C stack. This must be the first marking
|
||||
* done because it provides information about what objects
|
||||
* are "in-use" by the C code. "in-use" objects are those
|
||||
* for which the values from LENGTH and CHARS must remain
|
||||
* usable. This requirement is stricter than a liveness
|
||||
* requirement -- in particular, it constrains the implementation
|
||||
* of scm_resizuve.
|
||||
*/
|
||||
FLUSH_REGISTER_WINDOWS;
|
||||
/* This assumes that all registers are saved into the jmp_buf */
|
||||
setjmp (scm_save_regs_gc_mark);
|
||||
scm_mark_locations ((STACKITEM *) scm_save_regs_gc_mark,
|
||||
((sizet) sizeof scm_save_regs_gc_mark
|
||||
/ sizeof (STACKITEM)), BOOL_T);
|
||||
|
||||
scm_mark_locations (((size_t) thread->base,
|
||||
(sizet) stack_len, BOOL_T));
|
||||
#else
|
||||
long stack_len = (STACKITEM *) thread->base -
|
||||
(STACKITEM *) (&thread);
|
||||
|
||||
/* Protect from the C stack. This must be the first marking
|
||||
* done because it provides information about what objects
|
||||
* are "in-use" by the C code. "in-use" objects are those
|
||||
* for which the values from LENGTH and CHARS must remain
|
||||
* usable. This requirement is stricter than a liveness
|
||||
* requirement -- in particular, it constrains the implementation
|
||||
* of scm_resizuve.
|
||||
*/
|
||||
FLUSH_REGISTER_WINDOWS;
|
||||
/* This assumes that all registers are saved into the jmp_buf */
|
||||
setjmp (scm_save_regs_gc_mark);
|
||||
scm_mark_locations ((STACKITEM *) scm_save_regs_gc_mark,
|
||||
((sizet) sizeof scm_save_regs_gc_mark
|
||||
/ sizeof (STACKITEM)), BOOL_T);
|
||||
|
||||
scm_mark_locations ((STACKITEM *) &thread,
|
||||
stack_len, BOOL_T);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Suspended thread */
|
||||
#ifdef STACK_GROWS_UP
|
||||
long stack_len = (STACKITEM *) (thread->sp) -
|
||||
(STACKITEM *) thread->base;
|
||||
|
||||
scm_mark_locations (((size_t)thread->base,
|
||||
(sizet) stack_len, BOOL_T));
|
||||
#else
|
||||
long stack_len = (STACKITEM *) thread->base -
|
||||
(STACKITEM *) (thread->sp);
|
||||
|
||||
/* Registers are already on the stack. No need to mark. */
|
||||
|
||||
scm_mark_locations ((STACKITEM *) (size_t)thread->sp,
|
||||
stack_len, BOOL_T);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Mark all the of this thread's thread-local protects */
|
||||
for (j = scm_num_thread_local_protects-1; j >= 0; j--)
|
||||
{
|
||||
scm_gc_mark (((SCM*)(thread->data))[j], BOOL_F);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
void
|
||||
launch_thread (void *p)
|
||||
#else
|
||||
void
|
||||
launch_thread (p)
|
||||
void *p;
|
||||
#endif
|
||||
{
|
||||
SCM thunk = scm_coop_create_info.thunk;
|
||||
SCM error = scm_coop_create_info.error;
|
||||
|
||||
/* dynwinds must be set to BOOL_F for each new thread
|
||||
(it is a thread-local variable) */
|
||||
dynwinds = BOOL_F;
|
||||
|
||||
coop_mutex_unlock(&scm_coop_create_mutex);
|
||||
|
||||
scm_with_dynamic_root (thunk, error);
|
||||
|
||||
scm_thread_count--;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_with_new_thread (SCM thunk, SCM error_thunk)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_with_new_thread (thunk, error_thunk)
|
||||
SCM thunk;
|
||||
SCM error_thunk;
|
||||
#endif
|
||||
{
|
||||
int rc;
|
||||
SCM t = gscm_alloc (&scm_thread_type, sizeof(coop_t *));
|
||||
|
||||
coop_t **pt = (coop_t **) gscm_unwrap_obj (&scm_thread_type, &t);
|
||||
|
||||
int status;
|
||||
|
||||
/* Rather than allocate space to hold fn and arg, a mutex is used
|
||||
to serialize thread creation. */
|
||||
coop_mutex_lock(&scm_coop_create_mutex);
|
||||
|
||||
/* this data is passed to the newly created thread */
|
||||
scm_coop_create_info.thunk = thunk;
|
||||
scm_coop_create_info.error = error_thunk;
|
||||
|
||||
*pt = coop_create(launch_thread, &scm_coop_create_info);
|
||||
scm_thread_count++;
|
||||
|
||||
{
|
||||
SCM * prots;
|
||||
|
||||
prots = (SCM *)malloc (sizeof (SCM) * scm_num_thread_local_protects);
|
||||
|
||||
(*pt)->data = prots;
|
||||
|
||||
/* Copy root thread specific data over */
|
||||
memcpy(prots, (SCM*)coop_global_curr->data,
|
||||
sizeof (SCM) * scm_num_thread_local_protects);
|
||||
|
||||
prots[SCM_THREAD_T] = t;
|
||||
prots[SCM_THREAD_THUNK] = thunk;
|
||||
prots[SCM_THREAD_ERROR] = error_thunk;
|
||||
}
|
||||
|
||||
/* we're now ready for the thread to begin */
|
||||
coop_yield();
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_join_thread (SCM t)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_join_thread (t)
|
||||
SCM t;
|
||||
#endif
|
||||
{
|
||||
coop_t **thread = (coop_t **) gscm_unwrap_obj (&scm_thread_type, &t);
|
||||
|
||||
coop_join(*thread);
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_make_mutex ()
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_make_mutex ()
|
||||
#endif
|
||||
{
|
||||
SCM t = gscm_alloc (&scm_mutex_type, sizeof(coop_m));
|
||||
|
||||
coop_m *m = (coop_m *) gscm_unwrap_obj (&scm_mutex_type, &t);
|
||||
|
||||
coop_mutex_init(m);
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_lock_mutex (SCM m)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_lock_mutex (m)
|
||||
SCM m;
|
||||
#endif
|
||||
{
|
||||
coop_m *mutex = (coop_m *) gscm_unwrap_obj (&scm_mutex_type, &m);
|
||||
|
||||
coop_mutex_lock(mutex);
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_unlock_mutex (SCM m)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_unlock_mutex (m)
|
||||
SCM m;
|
||||
#endif
|
||||
{
|
||||
coop_m *mutex = (coop_m *) gscm_unwrap_obj (&scm_mutex_type, &m);
|
||||
|
||||
coop_mutex_unlock(mutex);
|
||||
|
||||
/* Yield early */
|
||||
scm_switch_counter = SCM_THREAD_SWITCH_COUNT;
|
||||
coop_yield();
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_make_condition_variable ()
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_make_condition_variable ()
|
||||
#endif
|
||||
{
|
||||
SCM t = gscm_alloc (&scm_mutex_type, sizeof(coop_c));
|
||||
|
||||
coop_c *c = (coop_c *) gscm_unwrap_obj (&scm_condition_variable_type, &t);
|
||||
|
||||
coop_condition_variable_init(c);
|
||||
|
||||
return t;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_condition_variable_wait (SCM c, SCM m)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_condition_variable_wait (c, m)
|
||||
SCM c;
|
||||
SCM m;
|
||||
#endif
|
||||
{
|
||||
coop_c *cv = (coop_c *) gscm_unwrap_obj (&scm_condition_variable_type, &c);
|
||||
coop_m *mutex = (coop_m *) gscm_unwrap_obj (&scm_mutex_type, &m);
|
||||
|
||||
coop_mutex_unlock(mutex);
|
||||
coop_condition_variable_wait(cv);
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_condition_variable_signal (SCM c)
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_condition_variable_signal (c)
|
||||
SCM c;
|
||||
#endif
|
||||
{
|
||||
coop_c *cv = (coop_c *) gscm_unwrap_obj (&scm_condition_variable_type, &c);
|
||||
|
||||
coop_condition_variable_signal(cv);
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
SCM
|
||||
gscm_threads_yield ()
|
||||
#else
|
||||
SCM
|
||||
gscm_threads_yield ()
|
||||
#endif
|
||||
{
|
||||
/* Yield early */
|
||||
scm_switch_counter = SCM_THREAD_SWITCH_COUNT;
|
||||
coop_yield();
|
||||
|
||||
return SCM_BOOL_T;
|
||||
}
|
|
@ -17,7 +17,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -41,8 +42,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* This file is only included by coop-threads.c while coop-defs.h is
|
||||
|
|
|
@ -1,223 +0,0 @@
|
|||
/* Copyright (C) 1995, 1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef GSCM_COOP_THREADS_H
|
||||
#define GSCM_COOP_THREADS_H
|
||||
|
||||
#include <qt.h>
|
||||
#include <time.h>
|
||||
|
||||
/* This code is based on a sample thread libraru by David Keppel.
|
||||
Portions of this file fall under the following copyright: */
|
||||
|
||||
/*
|
||||
* QuickThreads -- Threads-building toolkit.
|
||||
* Copyright (c) 1993 by David Keppel
|
||||
*
|
||||
* Permission to use, copy, modify and distribute this software and
|
||||
* its documentation for any purpose and without fee is hereby
|
||||
* granted, provided that the above copyright notice and this notice
|
||||
* appear in all copies. This software is provided as a
|
||||
* proof-of-concept and for demonstration purposes; there is no
|
||||
* representation about the suitability of this software for any
|
||||
* purpose.
|
||||
*/
|
||||
|
||||
/* The notion of a thread is merged with the notion of a queue.
|
||||
Thread stuff: thread status (sp) and stuff to use during
|
||||
(re)initialization. Queue stuff: next thread in the queue
|
||||
(next). */
|
||||
|
||||
typedef struct coop_t {
|
||||
qt_t *sp; /* QuickThreads handle. */
|
||||
void *sto; /* `malloc'-allocated stack. */
|
||||
|
||||
struct coop_t *next; /* Next thread in the queue. */
|
||||
|
||||
struct coop_t *all_next;
|
||||
struct coop_t *all_prev;
|
||||
|
||||
void *data; /* Thread local data */
|
||||
|
||||
void *base; /* Base of stack */
|
||||
void *top; /* Top of stack */
|
||||
|
||||
void *joining; /* A queue of threads waiting to join this
|
||||
thread */
|
||||
|
||||
time_t wakeup_time; /* Time to stop sleeping */
|
||||
|
||||
} coop_t;
|
||||
|
||||
/* A queue is a circular list of threads. The queue head is a
|
||||
designated list element. If this is a uniprocessor-only
|
||||
implementation we can store the `main' thread in this, but in a
|
||||
multiprocessor there are several `heavy' threads but only one run
|
||||
queue. A fancier implementation might have private run queues,
|
||||
which would lead to a simpler (trivial) implementation */
|
||||
|
||||
typedef struct coop_q_t {
|
||||
coop_t t;
|
||||
coop_t *tail;
|
||||
} coop_q_t;
|
||||
|
||||
/* A Mutex variable is made up of a owner thread, and a queue of threads
|
||||
waiting on the mutex */
|
||||
|
||||
typedef struct coop_m {
|
||||
coop_t *owner; /* Mutex owner */
|
||||
coop_q_t waiting; /* Queue of waiting threads */
|
||||
} coop_m;
|
||||
|
||||
/* A Condition variable is made up of a list of threads waiting on the
|
||||
condition. */
|
||||
|
||||
typedef struct coop_c {
|
||||
coop_q_t waiting; /* Queue of waiting threads */
|
||||
} coop_c;
|
||||
|
||||
/* Each thread starts by calling a user-supplied function of this
|
||||
type. */
|
||||
|
||||
typedef void (coop_userf_t)(void *p0);
|
||||
|
||||
/* Call this before any other primitives. */
|
||||
extern void coop_init();
|
||||
|
||||
/* When one or more threads are created by the main thread,
|
||||
the system goes multithread when this is called. It is done
|
||||
(no more runable threads) when this returns. */
|
||||
|
||||
extern void coop_start (void);
|
||||
|
||||
/* Create a thread and make it runable. When the thread starts
|
||||
running it will call `f' with arguments `p0' and `p1'. */
|
||||
|
||||
extern coop_t *coop_create (coop_userf_t *f, void *p0);
|
||||
|
||||
/* The current thread stops running but stays runable.
|
||||
It is an error to call `coop_yield' before `coop_start'
|
||||
is called or after `coop_start' returns. */
|
||||
|
||||
extern void coop_yield (void);
|
||||
|
||||
/* Like `coop_yield' but the thread is discarded. Any intermediate
|
||||
state is lost. The thread can also terminate by simply
|
||||
returning. */
|
||||
|
||||
extern void coop_abort (void);
|
||||
|
||||
extern coop_q_t coop_global_allq; /* A queue of all threads. */
|
||||
extern coop_t *coop_global_curr; /* Currently-executing thread. */
|
||||
|
||||
|
||||
|
||||
extern size_t scm_switch_counter;
|
||||
extern size_t scm_thread_count;
|
||||
|
||||
|
||||
|
||||
/* Cooperative threads don't need to have these defined */
|
||||
|
||||
#define SCM_THREAD_CRITICAL_SECTION_START
|
||||
#define SCM_THREAD_CRITICAL_SECTION_END
|
||||
#define SCM_THREAD_INITIALIZE_STORAGE gscm_threads_init_coop_threads()
|
||||
|
||||
|
||||
|
||||
#define SCM_NO_CRITICAL_SECTION_OWNER 0
|
||||
#define SCM_THREAD_SWITCH_COUNT 10
|
||||
|
||||
|
||||
|
||||
#define SCM_DEFER_INTS \
|
||||
{ \
|
||||
scm_ints_disabled = 1; \
|
||||
}
|
||||
|
||||
#define SCM_ALLOW_INTS \
|
||||
{ \
|
||||
scm_ints_disabled = 0; \
|
||||
SCM_CHECK_INTS; \
|
||||
scm_switch_counter--; \
|
||||
if (scm_switch_counter == 0) \
|
||||
{ \
|
||||
scm_switch_counter = SCM_THREAD_SWITCH_COUNT; \
|
||||
if (scm_thread_count > 1) \
|
||||
coop_yield(); \
|
||||
} \
|
||||
}
|
||||
|
||||
#define SCM_REDEFER_INTS \
|
||||
{ \
|
||||
++scm_ints_disabled; \
|
||||
}
|
||||
|
||||
#define SCM_REALLOW_INTS \
|
||||
{ \
|
||||
--scm_ints_disabled; \
|
||||
if (!scm_ints_disabled) \
|
||||
{ \
|
||||
SCM_CHECK_INTS; \
|
||||
} \
|
||||
scm_switch_counter--; \
|
||||
if (scm_switch_counter == 0) \
|
||||
{ \
|
||||
scm_switch_counter = SCM_THREAD_SWITCH_COUNT; \
|
||||
if (scm_thread_count > 1) \
|
||||
coop_yield(); \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* This structure is used when creating new threads. */
|
||||
|
||||
struct scm_coop_create_info_type
|
||||
{
|
||||
SCM thunk;
|
||||
SCM error;
|
||||
};
|
||||
|
||||
extern struct scm_coop_create_info_type scm_coop_create_info;
|
||||
|
||||
#endif
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,11 +37,10 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* $Id: coop.c,v 1.1 1997-04-15 01:34:30 jimb Exp $ */
|
||||
/* $Id: coop.c,v 1.2 1997-05-26 22:31:48 jimb Exp $ */
|
||||
|
||||
/* Cooperative thread library, based on QuickThreads */
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -43,8 +44,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* "dynl.c" dynamically link&load object files.
|
||||
Author: Aubrey Jaffer
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* "dynl.c" dynamically link&load object files.
|
||||
Author: Aubrey Jaffer
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* "dynl.c" dynamically link&load object files.
|
||||
Author: Aubrey Jaffer
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* "dynl.c" dynamically link&load object files.
|
||||
Author: Aubrey Jaffer
|
||||
|
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* "dynl.c" dynamically link&load object files.
|
||||
Author: Aubrey Jaffer
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#ifndef LIBGUILE_DYNL_H
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* This file is read twice in order to produce debugging versions of
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#ifndef SCM_FSU_PTHREADS_H
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -43,8 +44,7 @@
|
|||
* If you do not wish that, delete this exception notice.
|
||||
*
|
||||
* The author can be reached at djurfeldt@nada.kth.se
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN
|
||||
*/
|
||||
* Mikael Djurfeldt, SANS/NADA KTH, 10044 STOCKHOLM, SWEDEN */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "extchrs.h"
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#ifndef __GH_H
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* data initialization and C<->Scheme data conversion */
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* routines to evaluate Scheme code */
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* Guile high level (gh_) interface, initialization-related stuff */
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* list manipulation */
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* type predicates and equality predicates */
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
/* gh_test_repl -- a program that demonstrates starting Guile, adding
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
|
||||
|
|
281
libguile/gscm.h
281
libguile/gscm.h
|
@ -1,281 +0,0 @@
|
|||
/* classes: h_files */
|
||||
|
||||
#ifndef GSCMH
|
||||
#define GSCMH
|
||||
|
||||
/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include "libguile.h"
|
||||
|
||||
|
||||
/* {Locking Out Async Execution (including async GC) and Non-Local Exits}
|
||||
*/
|
||||
|
||||
#define GSCM_DEFER_INTS SCM_DEFER_INTS
|
||||
#define GSCM_ALLOW_INTS SCM_ALLOW_INTS
|
||||
|
||||
|
||||
/* {Common Constants}
|
||||
*/
|
||||
|
||||
#define GSCM_EOL SCM_EOL
|
||||
#define GSCM_FALSE SCM_BOOL_F
|
||||
#define GSCM_TRUE SCM_BOOL_T
|
||||
|
||||
#define GSCM_EOL_MARKER SCM_UNDEFINED
|
||||
#define GSCM_NOT_PASSED SCM_UNDEFINED
|
||||
#define GSCM_UNSPECIFIED SCM_UNSPECIFIED
|
||||
|
||||
|
||||
/* {Booleans}
|
||||
*/
|
||||
|
||||
#define gscm_bool(CBOOL) ((CBOOL) ? SCM_BOOL_T : SCM_BOOL_F)
|
||||
#define gscm_2_bool(BOOL) (((BOOL) == SCM_BOOL_F) ? 0 : 1)
|
||||
|
||||
|
||||
/* {Numbers}
|
||||
*/
|
||||
|
||||
#define gscm_ulong scm_ulong2num
|
||||
#define gscm_long scm_long2num
|
||||
#define gscm_double(X) scm_makdbl ((X), 0.0)
|
||||
|
||||
#define gscm_2_ulong(OBJ) scm_num2ulong((OBJ), (char *)SCM_ARG1, "gscm_2_ulong")
|
||||
#define gscm_2_long(OBJ) scm_num2long((OBJ), (char *)SCM_ARG1, "gscm_2_long")
|
||||
#define gscm_2_double(OBJ) scm_num2dbl((OBJ), "gscm_2_double")
|
||||
|
||||
|
||||
/* {Characters}
|
||||
*/
|
||||
|
||||
#define gscm_char(C) SCM_MAKICHR(C)
|
||||
/* extern int gscm_2_char P((SCM)); */
|
||||
|
||||
|
||||
/* {Strings}
|
||||
*/
|
||||
|
||||
#define gscm_str(SRC, LEN) scm_makfromstr (SRC, LEN, 0)
|
||||
#define gscm_str0 scm_makfrom0str
|
||||
|
||||
|
||||
|
||||
/* {Pairs and Lists}
|
||||
*/
|
||||
|
||||
#define gscm_cons scm_cons
|
||||
#define gscm_list scm_listify
|
||||
#define gscm_ilength scm_ilength
|
||||
|
||||
|
||||
#define gscm_set_car(OBJ, VAL) \
|
||||
((SCM_NIMP(OBJ) && SCM_CONSP(OBJ)) \
|
||||
? (SCM_CAR(OBJ) = VAL) \
|
||||
: scm_wta ((OBJ), (char *)SCM_ARG1, "set-car!"))
|
||||
|
||||
#define gscm_set_cdr(OBJ, VAL) \
|
||||
((SCM_NIMP(OBJ) && SCM_CONSP(OBJ)) \
|
||||
? (SCM_CDR(OBJ) = VAL) \
|
||||
: scm_wta ((OBJ), (char *)SCM_ARG1, "set-cdr!"))
|
||||
|
||||
|
||||
#define GSCM_SAFE_CAR(X) ((SCM_NIMP(X) && SCM_CONSP(X)) \
|
||||
? SCM_CAR(X) \
|
||||
: scm_wta ((X), (char *)SCM_ARG1, "car"))
|
||||
|
||||
#define GSCM_SAFE_CDR(X) ((SCM_NIMP(X) && SCM_CONSP(X)) \
|
||||
? SCM_CDR(X) \
|
||||
: scm_wta ((X), (char *)SCM_ARG1, "cdr"))
|
||||
|
||||
#define gscm_car(OBJ) GSCM_SAFE_CAR (OBJ)
|
||||
#define gscm_cdr(OBJ) GSCM_SAFE_CDR (OBJ)
|
||||
|
||||
#define gscm_caar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ))
|
||||
#define gscm_cdar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ))
|
||||
#define gscm_cadr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ))
|
||||
#define gscm_cddr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ))
|
||||
|
||||
#define gscm_caaar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ)))
|
||||
#define gscm_cdaar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ)))
|
||||
#define gscm_cadar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ)))
|
||||
#define gscm_cddar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ)))
|
||||
#define gscm_caadr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ)))
|
||||
#define gscm_cdadr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ)))
|
||||
#define gscm_caddr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ)))
|
||||
#define gscm_cdddr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ)))
|
||||
|
||||
#define gscm_caaaar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_cdaaar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_cadaar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_cddaar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_caadar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_cdadar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_caddar(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_cdddar(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (OBJ))))
|
||||
#define gscm_caaadr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cdaadr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cadadr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cddadr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_caaddr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cdaddr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cadddr(OBJ) GSCM_SAFE_CAR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ))))
|
||||
#define gscm_cddddr(OBJ) GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (GSCM_SAFE_CDR (OBJ))))
|
||||
|
||||
|
||||
/* {Symbols}
|
||||
*/
|
||||
|
||||
#define gscm_symbol(STR, LEN) SCM_CAR(scm_intern (STR, LEN))
|
||||
#define gscm_tmp_symbol(STR, LEN) SCM_CAR(scm_intern_obarray (STR, LEN, SCM_BOOL_F))
|
||||
|
||||
|
||||
/* {Vectors}
|
||||
*/
|
||||
|
||||
#define gscm_vector(N, FILL) scm_make_vector (SCM_MAKINUM(N), (FILL), SCM_UNDEFINED)
|
||||
#define gscm_vref(V, I) scm_vector_ref ((V), SCM_MAKINUM(I))
|
||||
#define gscm_vset(V, I, VAL) scm_vector_set_x ((V), SCM_MAKINUM(I), (VAL))
|
||||
|
||||
|
||||
/* {Procedures}
|
||||
*/
|
||||
|
||||
/* extern SCM gscm_make_subr P((SCM (*fn)(), int req, int opt, int varp, char * doc)); */
|
||||
/* extern SCM gscm_curry P((SCM procedure, SCM first_arg)); */
|
||||
|
||||
#define gscm_apply(PROC, ARGS) scm_apply ((PROC), (ARGS), SCM_EOL)
|
||||
|
||||
|
||||
|
||||
/* {Non-local Exits}
|
||||
*/
|
||||
|
||||
|
||||
#define gscm_catch(T, TH, H) scm_catch ((T), (TH), (H))
|
||||
#define gscm_throw(T, V) scm_throw ((T), (V))
|
||||
#define gscm_dynamic_wind(E, T, L) scm_dynwind ((E), (T), (L))
|
||||
/* extern void gscm_error P((char * message, SCM args)); */
|
||||
|
||||
|
||||
/* {I/O}
|
||||
*/
|
||||
|
||||
#define gscm_print_obj scm_prin1
|
||||
#define gscm_putc scm_putc
|
||||
#define gscm_puts scm_puts
|
||||
#define gscm_fwrite scm_fwrite
|
||||
#define gscm_flush scm_flush
|
||||
|
||||
extern char * gscm_last_attempted_init_file;
|
||||
|
||||
/* {Equivalence}
|
||||
*/
|
||||
|
||||
|
||||
#define gscm_is_eq(OBJ) (SCM_BOOL_F != scm_eq (OBJ))
|
||||
#define gscm_is_eqv(OBJ) (SCM_BOOL_F != scm_eqv (OBJ))
|
||||
#define gscm_is_equal(OBJ) (SCM_BOOL_F != scm_equal_p (OBJ))
|
||||
|
||||
|
||||
/* {Procedure Properties}
|
||||
*/
|
||||
|
||||
#define gscm_procedure_properties scm_procedure_properties
|
||||
#define gscm_set_procedure_properties_x scm_set_procedure_properties_x
|
||||
#define gscm_procedure_property scm_procedure_property
|
||||
#define gscm_set_procedure_property_x scm_set_procedure_property_x
|
||||
|
||||
|
||||
/* {Generic Length Procedure}
|
||||
*/
|
||||
|
||||
#define gscm_obj_length scm_obj_length
|
||||
|
||||
|
||||
/* {Proc Declaration Macro}
|
||||
*/
|
||||
#ifndef GSCM_MAGIC_SNARFER
|
||||
#define GSCM_PROC(RANAME, CFN, STR, REQ, OPT, VAR) \
|
||||
static char RANAME[]=STR;
|
||||
#else
|
||||
#define GSCM_PROC(RANAME, CFN, STR, REQ, OPT, VAR) \
|
||||
%%% gscm_define_procedure (RANAME, CFN, REQ, OPT, VAR, "")
|
||||
#endif
|
||||
|
||||
#define gscm_define_procedure(NAME, FN, REQ, OPT, VARP, DOC) scm_make_gsubr(name, req, opt, varp, fn)
|
||||
#define gscm_curry scm_curry
|
||||
#define gscm_define scm_sysintern
|
||||
|
||||
|
||||
typedef int GSCM_top_level;
|
||||
|
||||
|
||||
/* {Error Returns}
|
||||
*/
|
||||
|
||||
typedef int GSCM_status;
|
||||
|
||||
#define GSCM_OK 0
|
||||
#define GSCM_ERROR 1
|
||||
#define GSCM_ILLEGALLY_REENTERED 2
|
||||
#define GSCM_OUT_OF_MEM 3
|
||||
#define GSCM_ERROR_OPENING_FILE 4
|
||||
#define GSCM_ERROR_OPENING_INIT_FILE 5
|
||||
|
||||
|
||||
|
||||
extern GSCM_status gscm_seval_str SCM_P ((SCM *answer, GSCM_top_level toplvl, char * str));
|
||||
extern GSCM_status gscm_seval_file SCM_P ((SCM *answer, GSCM_top_level toplvl, char * file_name));
|
||||
extern GSCM_status gscm_eval_str SCM_P ((char ** answer, GSCM_top_level toplvl, char * str));
|
||||
extern GSCM_status gscm_eval_file SCM_P ((char ** answer, GSCM_top_level toplvl, char * file_name));
|
||||
extern GSCM_status gscm_run_scm SCM_P ((int argc, char ** argv, FILE * in, FILE * out, FILE * err, GSCM_status (*initfn)(void), char * initfile, char * initcmd));
|
||||
extern char * gscm_error_msg SCM_P ((int n));
|
||||
extern SCM gscm_make_subr SCM_P ((SCM (*fn)(), int req, int opt, int varp, char * doc));
|
||||
extern int gscm_2_char SCM_P ((SCM c));
|
||||
extern void gscm_2_str SCM_P ((char ** out, int * len_out, SCM * objp));
|
||||
extern void gscm_error SCM_P ((char * message, SCM args));
|
||||
extern void scm_init_guile SCM_P ((void));
|
||||
|
||||
#endif /* GSCMH */
|
||||
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* This is the 'main' function for the `guile' executable. It is not
|
||||
included in libguile.a.
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
/* classes: h_files */
|
||||
|
||||
#ifndef KWH
|
||||
#define KWH
|
||||
/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
||||
|
||||
extern int scm_tc16_kw;
|
||||
#define SCM_KEYWORDP(X) (SCM_CAR(X) == scm_tc16_kw)
|
||||
#define SCM_KEYWORDSYM(X) (SCM_CDR(X))
|
||||
|
||||
|
||||
|
||||
|
||||
extern SCM scm_make_keyword_from_dash_symbol SCM_P ((SCM symbol));
|
||||
extern SCM scm_keyword_p SCM_P ((SCM obj));
|
||||
extern SCM scm_keyword_dash_symbol SCM_P ((SCM kw));
|
||||
extern void scm_init_kw SCM_P ((void));
|
||||
|
||||
#endif /* KWH */
|
|
@ -15,7 +15,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -39,8 +40,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include <stdio.h>
|
||||
#include "_scm.h"
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA */
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
/* classes: h_files */
|
||||
|
||||
#ifndef MARKERSH
|
||||
#define MARKERSH
|
||||
/* Copyright (C) 1995,1996 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* This program 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 General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
*
|
||||
* The exception is that, if you link the GUILE library with other files
|
||||
* to produce an executable, this does not by itself cause the
|
||||
* resulting executable to be covered by the GNU General Public License.
|
||||
* Your use of that executable is in no way restricted on account of
|
||||
* linking the GUILE library code into it.
|
||||
*
|
||||
* This exception does not however invalidate any other reasons why
|
||||
* the executable file might be covered by the GNU General Public License.
|
||||
*
|
||||
* This exception applies only to the code released by the
|
||||
* Free Software Foundation under the name GUILE. If you copy
|
||||
* code from other Free Software Foundation releases into a copy of
|
||||
* GUILE, as the General Public License permits, the exception does
|
||||
* not apply to the code that you add in this way. To avoid misleading
|
||||
* anyone as to the status of such modified files, you must delete
|
||||
* this exception notice from them.
|
||||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
extern SCM scm_mark0 SCM_P ((SCM ptr));
|
||||
extern SCM scm_markcdr SCM_P ((SCM ptr));
|
||||
extern scm_sizet scm_free0 SCM_P ((SCM ptr));
|
||||
|
||||
#endif /* MARKERSH */
|
|
@ -14,7 +14,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -38,8 +39,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
typedef struct scm_pthread_info {
|
||||
|
|
|
@ -17,7 +17,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -41,8 +42,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -37,8 +38,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
/* Written in 1994 by Aubrey Jaffer.
|
||||
* Thanks to Hallvard.Tretteberg@si.sintef.no for inspiration and discussion.
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -40,8 +41,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include "libguile/__scm.h"
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; see the file COPYING. If not, write to
|
||||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307 USA
|
||||
*
|
||||
* As a special exception, the Free Software Foundation gives permission
|
||||
* for additional uses of the text contained in its release of GUILE.
|
||||
|
@ -36,8 +37,7 @@
|
|||
*
|
||||
* If you write modifications of your own for GUILE, it is your choice
|
||||
* whether to permit this exception to apply to your modifications.
|
||||
* If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
* If you do not wish that, delete this exception notice. */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue