1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 05:20:16 +02:00
Commit graph

7169 commits

Author SHA1 Message Date
Rob Browning
bbd43f0356 * continuations.c: move libguile/_scm.h include to the top so we
pick up any critical defines like _GNU_SOURCE early.
2003-03-25 23:52:46 +00:00
Rob Browning
615873d24e * backtrace.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:40 +00:00
Rob Browning
ef92a2a2d7 * async.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:33 +00:00
Rob Browning
9b90309501 * alloca.c: #include <config.h> if HAVE_CONFIG_H. 2003-03-25 23:52:25 +00:00
Rob Browning
b49ed9c97f * _scm.h: #include <config.h> if HAVE_CONFIG_H.
Rename usage of USE_PTHREAD_THREADS to SCM_USE_PTHREAD_THREADS.
2003-03-25 23:52:18 +00:00
Rob Browning
92e6989fda * __scm.h: move libguile/scmconfig.h include up to the top, so
we're sure to pick up any critical defines like _GNU_SOURCE early.
#include <limits.h> removed in favor of scmconfig.h inclusion when
appropriate.  STDC_HEADERS based inclusion of stdlib.h,
sys/types.h, stddef.h, and sys/stdtypes.h removed in favor of
scmconfig.h inclusion when appropriate.  Various Win32 related
definitions removed in favor of scmconfig.h inclusion when
appropriate.
(HAVE_UINTPTR_T): definition removed (see NEWS).
(SIZEOF_PTRDIFF_T): definition removed (see NEWS).
(HAVE_LONG_LONGS): definition removed (see NEWS).
(HAVE_LONG_LONG): definition removed (see NEWS).
(HAVE_PTRDIFF_T): definition removed (see NEWS).
2003-03-25 23:51:57 +00:00
Rob Browning
64c2db807d * Makefile.am: scmconfig.h is now generated by building and
running gen-scmconfig.h and capturing its output.  gen-scmconfig
uses config.h and the configure.in generated gen-scmconfig.h to
decide what to output.  See gen-scmconfig.c for details.
(noinst_PROGRAMS): add gen-scmconfig.
(gen_scmconfig_SOURCES): new variable.
(gen-scmconfig.$(OBJEXT)): new target - be careful to handle
cross-compiling right.
(scmconfig.h): build scmconfig.h from gen-scmconfig's output.
(BUILT_SOURCES): add scmconfig.h.
2003-03-25 23:51:37 +00:00
Rob Browning
9a52bc2af1 * configure.in: big overhaul to shift us to have separate private,
config.h, and public, scmconfig.h, configuration headers.  Added a
fair amount of code to track down new required types: scm_t_uint8,
scm_t_uint16, scm_t_uint32, scm_t_int8, scm_t_int16, scm_t_int32,
and to detect optional types scm_t_uint64, scm_t_in64, long long,
unsigned long long, scm_t_ptrdiff, intptr_t, and uintptr_t.
(SCM_I_GSC_T_PTRDIFF): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_NEEDS_INTTYPES_H): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_NEEDS_STDINT_H): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT8): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT16): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT32): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_UINT64): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT8): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT16): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT32): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_T_INT64): gen-scmconfig.h.in AC_SUBST var.
(USE_PTHREAD_THREADS): removed - handled by gen-scmconfig.c.
(USE_NULL_THREADS): removed - handled by gen-scmconfig.c.
(USE_COOP_THREADS): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_USE_PTHREAD_THREADS): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_USE_NULL_THREADS): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_USE_COOP_THREADS): gen-scmconfig.h.in AC_SUBST var.
(STACK_GROWS_UP): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_STACK_GROWS_UP): gen-scmconfig.h.in AC_SUBST var.
(GUILE_DEBUG_FREELIST): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_GUILE_DEBUG_FREELIST): gen-scmconfig.h.in AC_SUBST var.
(GUILE_DEBUG): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_GUILE_DEBUG): gen-scmconfig.h.in AC_SUBST var.
(SCM_ENABLE_DEPRECATED): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_ENABLE_DEPRECATED): gen-scmconfig.h.in AC_SUBST var.
(HAVE_ARRAYS): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_HAVE_ARRAYS): gen-scmconfig.h.in AC_SUBST var.
(SCM_ENABLE_ELISP): removed - handled by gen-scmconfig.c.
(SCM_I_GSC_ENABLE_ELISP): gen-scmconfig.h.in AC_SUBST var.
(SCM_I_GSC_C_INLINE): gen-scmconfig.h.in AC_SUBST var.
(DEBUG_EXTENSIONS): removed - handled by gen-scmconfig.c.
(READER_EXTENSIONS): removed - handled by gen-scmconfig.c.
(USE_THREADS): removed - handled by gen-scmconfig.c.
(GUILE_ISELECT): removed - handled by gen-scmconfig.c.
(DYNAMIC_LINKING): removed - handled by gen-scmconfig.c.
2003-03-25 23:51:15 +00:00
Rob Browning
ed2b47e773 * scmconfig.h.top: new file -- preamble for scmconfig.h. 2003-03-25 23:49:14 +00:00
Rob Browning
38bf25a71f * gen-scmconfig.h.in: new file -- see gen-scmconfig.c for details. 2003-03-25 23:49:03 +00:00
Rob Browning
caeef9cb7c * gen-scmconfig.c: new file -- see comments in file for details. 2003-03-25 23:48:53 +00:00
Rob Browning
e673760a8b * autogen.sh: call autoreconf with --force. This may fix the
"order" problem below without having to have two calls.
2003-03-25 23:46:20 +00:00
Rob Browning
d165aa1542 * README: merge information from INSTALL and remove at least some
of the stale bits.
2003-03-25 23:46:04 +00:00
Rob Browning
bac0f89f0c * LICENSE: new file -- we should change this to the LGPL soon and
add COPYING.LIB to the distribution.
2003-03-25 23:45:54 +00:00
Rob Browning
9cfdfc9a56 * INSTALL: use the automake installed INSTALL file. The Guile
specific instructions are now in README.
2003-03-25 23:45:49 +00:00
Rob Browning
122cf9a5fb *** empty log message *** 2003-03-25 02:21:10 +00:00
Rob Browning
b4690a661e * lib.scm (pass-if): allow really simple tests where the test code
is also the name like (pass-if (even? 2)).
(expect-fail): allow really simple tests where the test code is
also the test name like (expect-fail (even? 2)).
2003-03-25 02:21:03 +00:00
Rob Browning
7c24e52857 * tests/numbers.test: added tests (some simple) for various funcs.
("odd?"): added tests.
("even?"): added tests.
("nan?"): added tests.
("abs"): added tests.
("lcm"): added tests.
("number->string"): added tests.
("number?"): added tests.
("complex?"): added tests.
("real?"): added tests.
("rational?"): added tests.
("integer?"): added tests.
("inexact?"): added tests.
("="): added tests.
("zero?"): added tests.
("positive?"): added tests.
("negative?"): added tests.
2003-03-25 02:20:55 +00:00
Rob Browning
c62fdb8ee0 *** empty log message *** 2003-03-25 02:14:06 +00:00
Rob Browning
349d3206f1 *** empty log message *** 2003-03-25 01:46:22 +00:00
Marius Vollmer
0034611927 *** empty log message *** 2003-03-24 16:48:55 +00:00
Marius Vollmer
5b9d7b98b9 Include <config.h> instead of <libguile/scmconfig.h>. 2003-03-24 16:48:39 +00:00
Mikael Djurfeldt
b8b0abf067 * srfi-1.scm: Re-export all srfi-1 bindings implemented by the
core.  (Thanks to Kevin Ryde.)
2003-03-24 09:13:35 +00:00
Marius Vollmer
570b5b1481 *** empty log message *** 2003-03-22 00:36:03 +00:00
Marius Vollmer
e8ed460ec7 (call/cc): Added. 2003-03-22 00:34:34 +00:00
Marius Vollmer
e6682f8b26 *** empty log message *** 2003-03-21 15:59:09 +00:00
Marius Vollmer
f8aa362d34 Invoke autoreconf twice since the required files do not seem to be
generated in the right order.  XXX - investigate further.
2003-03-21 15:59:01 +00:00
Mikael Djurfeldt
122d66ea29 Fix 2003-03-20 14:12:54 +00:00
Mikael Djurfeldt
44876271a0 * list.scm: New file. 2003-03-20 13:22:45 +00:00
Rob Browning
433146dd57 *** empty log message *** 2003-03-19 23:55:05 +00:00
Rob Browning
b3ea745beb *** empty log message *** 2003-03-19 23:46:35 +00:00
Rob Browning
26aff4f90e * readline.c: add HAVE_CONFIG_H test guarding #include config.h. 2003-03-19 23:46:29 +00:00
Rob Browning
684edc62ea * autogen.sh: add a --force when autoreconfing. We may need to
change this if it doesn't work out...
2003-03-19 23:46:24 +00:00
Rob Browning
d56a98c76b * Makefile.am (ice-9/readline.scm): new target -- so readline will
work from the source tree when guile-readline is added to
GUILE_LOAD_PATH.
(all-local): add ice-9/readline.scm.
(clean-local): remove ice-9/readline at clean time.
2003-03-19 23:46:19 +00:00
Marius Vollmer
25e0bf97cf *** empty log message *** 2003-03-19 22:00:31 +00:00
Marius Vollmer
598b6787bc Added defines for sparc-unknown-netbsdelf1.5 from Adrian Bunk.
Thanks!
2003-03-19 21:59:14 +00:00
Marius Vollmer
b80e1b5c9b *** empty log message *** 2003-03-19 18:29:26 +00:00
Marius Vollmer
552ae44cde (format:out-substr): Update the column counter correctly. This fixes
the behavior of ~T (tabbing) after ~F, for instance.  Thanks to
Matthias Koeppe!
2003-03-19 18:29:04 +00:00
Marius Vollmer
6c61859f03 ("format basic output"): Added test for "~F" from Matthias Koeppe. 2003-03-19 18:28:52 +00:00
Marius Vollmer
b713b0b685 *** empty log message *** 2003-03-19 18:17:06 +00:00
Marius Vollmer
223a9f7c2c (guileversion): Use $GUILE_EFFECTIVE_VERSION instead of
$GUILE_VERSION.  Thanks to Kevin Ryde!
2003-03-19 18:16:56 +00:00
Mikael Djurfeldt
e6726828ca * goops.scm (process-class-pre-define-accessor): Temporary kludge
to fix a problem introduced by my previous change.
2003-03-19 14:50:20 +00:00
Mikael Djurfeldt
74b6d6e456 * goops.c (make_class_from_template): New fourth arg:
applicablep.
(scm_class_extended_generic_with_setter, scm_class_self): Fixed
cpls.

* smob.c (scm_set_smob_apply): Call scm_i_inherit_applicable.

* goops.c, objects.c, objects.h (scm_make_extended_class): New
second arg: applicablep.
(scm_i_inherit_applicable): New function.

* goops.c, goops.h (scm_class_applicable,
scm_class_extended_accessor): New classes.
2003-03-19 08:57:47 +00:00
Dirk Herrmann
5c9e7dad75 * procs.c (scm_procedure_documentation): Removed redundant
SCM_NIMP test and replaced other calls to SCM_IMP by more explicit
	predicates.
2003-03-18 19:06:03 +00:00
Mikael Djurfeldt
c31142eefd * goops.scm (process-class-pre-define-generic,
process-class-pre-define-accessor, process-define-generic,
process-define-accessor): New functions.
(define-class-pre-definition): Use
process-class-pre-define-generic and
process-class-pre-define-accessor; Make sure not to create a new
local variable if the variable has been imported.
(define-generic): Use process-define-generic.
(define-accessor): Use process-define-accessor.
2003-03-17 13:53:58 +00:00
Mikael Djurfeldt
3742da68b2 * session.scm (apropos): Don't look in duplicates interface. 2003-03-13 10:16:30 +00:00
Mikael Djurfeldt
65bed4aa84 * boot-9.scm (duplicate-handlers): Make sure the merge-generics
and merge-accessors handlers are available also before (oop goops)
has been loaded.  This is so that people can put them as default
handlers without worrying about availability.
2003-03-12 19:27:15 +00:00
Mikael Djurfeldt
c9fa174805 * goops.scm (merge-generics): Make sure not to merge a gf with
itself.  That would be the cause of a real binding collision.
2003-03-12 18:41:44 +00:00
Mikael Djurfeldt
3802f9ccd3 * slib.scm (logical:ipow-by-squaring): Removed. 2003-03-12 17:35:09 +00:00
Mikael Djurfeldt
6496a6638b * boot-9.scm (default-duplicate-binding-handler): Set default to
'(replace warn last)
2003-03-12 17:16:36 +00:00