1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 05:30:21 +02:00
Commit graph

11174 commits

Author SHA1 Message Date
Mikael Djurfeldt
e672dd0208 * goops.scm (equal?): Provide default method for `equal?'.
(compute-getters-n-setters): Check for bad init-thunks.

* eq.c (scm_eqv_p, scm_equal_p): Turned into a primitive generics.

* goops.texi (Object Comparisons): Removed object-eqv? and
object-equal? and added eqv?, equal? and =.
2003-04-17 18:47:18 +00:00
Mikael Djurfeldt
071d6b0ecc * tests/goops.test: New tests.
* goops.scm (equal?): Provide default method for `equal?'.
(compute-getters-n-setters): Check for bad init-thunks.

* eq.c (scm_equal_p): Turned into a primitive generic.

* snarf.h (SCM_PRIMITIVE_GENERIC, SCM_PRIMITIVE_GENERIC_1): New
macros.
2003-04-17 17:50:57 +00:00
Mikael Djurfeldt
266f3a23d7 * goops.scm (compute-getters-n-setters): Check for bad init-thunk. 2003-04-17 17:37:11 +00:00
Mikael Djurfeldt
57b1d51841 * tests/goops.test: Added tests for correctness of class
precedence list in all basic classes and tests for equal?.
2003-04-17 15:25:15 +00:00
Mikael Djurfeldt
466dd85969 Comment 2003-04-17 15:24:53 +00:00
Rob Browning
95a0ecc3c7 *** empty log message *** 2003-04-16 20:17:52 +00:00
Rob Browning
ff83b88d17 * gc_os_dep.c: Added patch for UnixWare and OpenUNIX support.
Thanks to Boyd Gerber.
Added check for __arm__ in addition to arm for LINUX and copied
__s390__ defines from upstream libgc. Thanks to James Treacy for
reporting the problems.
2003-04-16 20:17:44 +00:00
Rob Browning
312006bbb2 *** empty log message *** 2003-04-16 20:15:48 +00:00
Rob Browning
683a2f9a4c * gc_os_dep.c: Added patch for UnixWare and OpenUNIX support.
Thanks to Boyd Gerber.
Added check for __arm__ in addition to arm for LINUX and copied
__s390__ defines from upstream libgc. Thanks to James Treacy for
reporting the problems.
2003-04-16 20:15:37 +00:00
Rob Browning
ecc5974ba6 *** empty log message *** 2003-04-16 20:02:31 +00:00
Rob Browning
eb2f70b61d * gc_os_dep.c Added patch for UnixWare and OpenUNIX support.
Thanks to Boyd Gerber.
Added check for __arm__ in addition to arm for LINUX.  Thanks to
James Treacy for reporting the problem.
2003-04-16 20:02:22 +00:00
Rob Browning
c7ef2ea133 *** empty log message *** 2003-04-16 19:59:27 +00:00
Rob Browning
311daf8be1 * gc_os_dep.c: add check for __arm__ in addition to arm for
LINUX.  Thanks to James Treacy for tracking this one down.
2003-04-16 19:59:17 +00:00
Rob Browning
06f55e9f82 *** empty log message *** 2003-04-16 19:46:55 +00:00
Rob Browning
eccee85dbc * gc_os_dep.c (mach_type_known): added patch for UnixWare and
OpenUNIX support.  Thanks to Boyd Gerber.
2003-04-16 19:46:47 +00:00
Rob Browning
0b85efff1d oops -- reverse accidental commit. 2003-04-16 19:45:12 +00:00
Rob Browning
3b8b889c93 *** empty log message *** 2003-04-16 19:45:11 +00:00
Rob Browning
7310ad0ccf * socket.c: use SCM_CHAR_BIT. 2003-04-16 19:45:01 +00:00
Rob Browning
0d79003d44 * random.c (scm_c_random_bignum): use SCM_CHAR_BIT. 2003-04-16 19:44:55 +00:00
Rob Browning
b4fb7de868 * numbers.c (PTRDIFF_MIN): use SCM_CHAR_BIT. 2003-04-16 19:44:02 +00:00
Rob Browning
43151146c2 * num2integral.i.c (NUM2INTEGRAL): use SCM_CHAR_BIT. 2003-04-16 19:43:55 +00:00
Rob Browning
f55a171dc4 * gc_os_dep.c (mach_type_known): added patch for UnixWare and
OpenUNIX support.  Thanks to Boyd Gerber.
2003-04-16 19:39:35 +00:00
Rob Browning
7c1e02ed1d *** empty log message *** 2003-04-16 19:19:21 +00:00
Rob Browning
295ebe22e7 *** empty log message *** 2003-04-16 19:14:46 +00:00
Mikael Djurfeldt
43261b390f * feature.c (scm_init_feature): Always add threads feature. 2003-04-16 12:52:04 +00:00
Mikael Djurfeldt
58241edc7d * tests/goops.test: Added tests for class redefinition, object
update and active slots.

* goops.scm (compute-getter-method): For custom getter: Check
boundness even if there is an init-thunk.  (The getter can return
#<unbound> even if the slot has been set before.)
(remove-class-accessors!): Also remove accessor-method from its
accessor.

* goops.c (scm_sys_fast_slot_ref): Use SCM_SLOT instead of
scm_at_assert_bound_ref.  (We don't want the unbound check.  See
oop/goops/active-slot.scm.)
2003-04-15 01:17:36 +00:00
Mikael Djurfeldt
168629c99a * goops.scm (compute-getter-method): For custom getter: Check
boundness even if there is an init-thunk.  (The getter can return
#<unbound> even if the slot has been set before.)

* goops.c (scm_sys_fast_slot_ref): Use SCM_SLOT instead of
scm_at_assert_bound_ref.  (We don't want the unbound check.  See
oop/goops/active-slot.scm.)
2003-04-15 01:15:06 +00:00
Mikael Djurfeldt
55f8c6f1ca Fix 2003-04-14 20:13:50 +00:00
Mikael Djurfeldt
e1ac894c38 Fix 2003-04-14 20:12:40 +00:00
Rob Browning
50d64f0d25 *** empty log message *** 2003-04-14 15:55:37 +00:00
Rob Browning
479c46eab8 * standalone/test-asmobs-lib.c (libtest_asmobs_init): include
test-asmobs-lib.x rather than test-asmobs-lib.x.c.
2003-04-14 15:55:23 +00:00
Rob Browning
8f9ae7fd52 * standalone/Makefile.am: change from .c.x to .x to be consistent
with the rest of guile.
2003-04-14 15:55:18 +00:00
Rob Browning
94e9127567 *** empty log message *** 2003-04-14 15:44:40 +00:00
Rob Browning
f59195a1d0 * tags.h: scm_t_intptr should have been intptr_t. 2003-04-14 15:42:34 +00:00
Mikael Djurfeldt
da2e146a5b * print.c (scm_prin1): Remember old state of pstate->writingp. 2003-04-14 14:51:09 +00:00
Rob Browning
3071ea2764 *** empty log message *** 2003-04-13 17:48:02 +00:00
Rob Browning
8ad0368f07 * md/axp.s '.file 2 "axp.s"' -> '.file 2 "axp.s".
(qt_vstart): .end qt_vstart, not qt_start.  Thanks to Falk
Hueffner.
2003-04-13 17:47:29 +00:00
Rob Browning
63c1872f88 * goops.c (prep_hashsets): make static to match prototype.
(scm_sym_args): SCM_SYMBOL -> SCM_GLOBAL_SYMBOL.  Thanks to Albert
Chin.
2003-04-13 17:46:54 +00:00
Rob Browning
9534300a30 * gc_os_dep.c: add NetBSD powerpc config info. Thanks to Thomas
Klausner.
2003-04-13 17:46:39 +00:00
Rob Browning
620246746b * c-tokenize.lex: remove trailing comma from enum. Thanks to
Albert Chin.
2003-04-13 17:46:21 +00:00
Rob Browning
7c12f0ac3d * __scm.h (SCM_FLUSH_REGISTER_WINDOWS): don't just rely on "sparc"
test.  Instead use
#if defined (sparc) || defined (__sparc__) || defined (__sparc)
as gc_os_dep.c suggests is appropriate.
2003-04-13 17:46:09 +00:00
Mikael Djurfeldt
55ccbd3545 * goops.scm (compute-getters-n-setters/verify-accessors): Better
check of format of value returned by compute-get-n-set.
(compute-getters-n-setters): Extended format of slot
getters-n-setters to indicate position and size of slot memory
allocated in instances.

* goops.c (scm_sys_prep_layout_x): Instance allocation is now
indicated through extra fields in getters-n-setters.
(scm_add_slot): Adapted to new format of getters_n_setters slot.
(Thanks to Andy Wingo.)
2003-04-13 15:05:05 +00:00
Mikael Djurfeldt
21ab2aeb77 * goops.scm (compute-getters-n-setters/verify-accessors): Better
check of format of value returned by compute-get-n-set.
(compute-getters-n-setters): Extended format of slot
getters-n-setters to indicate position and size of slot memory
allocated in instances.

* goops.c (scm_sys_prep_layout_x): Instance allocation is now
indicated through extra fields in getters-n-setters.
(scm_add_slot): Adapted to new format of getters_n_setters slot.
(Thanks to Andy Wingo.)
2003-04-13 14:48:35 +00:00
Rob Browning
5735d351cf *** empty log message *** 2003-04-12 18:44:56 +00:00
Rob Browning
fbc29076a3 * md/axp.s (qt_vstart): fix assembly bugs. Thanks to Falk Hueffner. 2003-04-12 18:42:12 +00:00
Rob Browning
659c80d9b5 *** empty log message *** 2003-04-12 18:41:57 +00:00
Rob Browning
084210bf9a * backtrace.c (display_backtrace_file): correct a couple of
instances of "file == SCM_BOOL_F" to "SCM_FALSEP (file)"
(shouldn't be comparing values directly).
2003-04-12 18:41:30 +00:00
Rob Browning
ad2b971d55 *** empty log message *** 2003-04-12 17:44:24 +00:00
Rob Browning
f78a964936 * guile-test: added "Running test FOO" output by default. There
may be a good reason to remove this, but the output can be helpful
in determining where a failure occurred.
2003-04-12 17:44:08 +00:00
Rob Browning
6536b58713 * __scm.h (SCM_FLUSH_REGISTER_WINDOWS): don't just rely on "sparc"
test.  Instead use
#if defined (sparc) || defined (__sparc__) || defined (__sparc)
as gc_os_dep.c suggests is appropriate.
2003-04-12 17:40:03 +00:00