1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-08 22:50:27 +02:00
Commit graph

4399 commits

Author SHA1 Message Date
Dirk Herrmann
5cb22e9606 * eval.c, eval.h, evalext.c, evalext.h (scm_sym_setter,
scm_m_generalized_set_x, scm_init_evalext): Move the declaration
	and definition of the memoizer for the generalized set! macro from
	evalext.[ch] to eval.[ch].  Use the SCM_SYNTAX snarfer macro to
	define the macro object.

	* eval.c, eval.h (s_set_x, scm_s_set_x, scm_m_set_x,
	scm_m_generalized_set_x): Since now scm_s_set_x is only used in
	eval.c, it is made static and renamed to s_set_x.

	* evalext.c (scm_defined_p, scm_m_undefine): Prefer !SCM_<foo>
	over SCM_N<foo>.
2003-04-20 19:18:43 +00:00
Dirk Herrmann
a44a9715eb * eval.c, root.h (scm_undefineds, SCM_NUM_PROTECTS, undefineds,
scm_init_eval): Made scm_undefineds static in eval.c, renamed it
	to undefineds and registered the object as a permanent object.

	* eval.c, eval.h (scm_f_apply, scm_init_eval): Made scm_f_apply
	static in eval.c, renamed it to f_apply and registered the object
	as a permanent object.
2003-04-20 18:08:07 +00:00
Dirk Herrmann
1b43d24c36 * eval.c (SCM_BIT8, SCM_BIT8, unmemocopy, SCM_CEVAL): Renamed
file-local macro SCM_BIT8 to SCM_BIT7, which is more appropriate.
2003-04-20 11:01:33 +00:00
Dirk Herrmann
aec16f9972 * numbers.c (scm_logtest): Fixed argument bug in the call to
mpz_and, which showed up when compiling with SCM_DEBUG defined.
2003-04-20 08:55:50 +00:00
Dirk Herrmann
f96460ce84 * gc-card.c (scm_i_sweep_card, scm_i_init_card_freelist): Fixed
type errors that showed up when compiling with SCM_DEBUG defined.
2003-04-20 08:39:38 +00:00
Dirk Herrmann
d0f6ceb84f * Removed uses of DEBUG_EXTENSIONS and DYNAMIC_LINKING to
fix compile errors with --disable-deprecated.
2003-04-20 07:19:38 +00:00
Mikael Djurfeldt
0fd7dcd398 goops.c (TEST_CHANGE_CLASS): Update variable class after class change. 2003-04-18 08:19:03 +00:00
Rob Browning
19a7a0897b *** empty log message *** 2003-04-17 22:15:46 +00:00
Rob Browning
1c35cb199f * numbers.c (scm_integer_expt): fix case where we were declaring
vars in the middle of a statement block.  Thanks to Thamer
Al-Harbash.
2003-04-17 22:15:37 +00:00
Mikael Djurfeldt
47cd67db2f * tests/goops.test: Added tests for correctness of class
precedence list in all basic classes and tests for eqv? and
equal?.

* goops.scm (compute-getters-n-setters): Check for bad init-thunk.
(eqv?): Added default method.
(equal?): New default method which uses eqv?.

* eq.c (scm_eqv_p): Turned into a primitive generic.
2003-04-17 19:23:52 +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
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
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
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
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
Rob Browning
3071ea2764 *** empty log message *** 2003-04-13 17:48:02 +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
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
Han-Wen Nienhuys
dff96e9567 (snarfcppopts): use DEFAULT_INCLUDES
instead of INCLUDES
2003-04-09 09:29:44 +00:00
Rob Browning
b5331f105f *** empty log message *** 2003-04-07 20:38:55 +00:00
Rob Browning
00f9eacec5 * debug.h: change "id" arg name to "info_id" to avoid objective-c
clash.
2003-04-07 20:36:04 +00:00
Rob Browning
07921c7642 *** empty log message *** 2003-04-07 17:52:28 +00:00
Rob Browning
b3a9c1e7bc * num2integral.i.c (NUM2INTEGRAL): fix bug pointed out by Mikael
and add regression test to standalone/.
2003-04-07 17:36:26 +00:00
Rob Browning
876173478e *** empty log message *** 2003-04-07 17:36:17 +00:00
Rob Browning
69d49ac86f *** empty log message *** 2003-04-07 01:52:00 +00:00
Rob Browning
05be5e7c38 * init.c: #include gmp.h. 2003-04-07 01:51:25 +00:00
Rob Browning
8db9cc6cf3 * random.c: #include gmp.h.
(scm_c_random_bignum): normalize result on return.
2003-04-07 01:51:10 +00:00
Rob Browning
5384438984 * numbers.h: remove the gmp.h #include (not needed now). 2003-04-07 01:50:35 +00:00
Rob Browning
4adf1363a7 * posix.h: change occurences of "id" to something else so we don't
cause trouble when included via objective-c (can't hurt, might
help).  Still have usage in debug.h, though.
2003-04-07 01:50:16 +00:00
Rob Browning
b9d4df2c33 * strings.c (scm_mem2string): use memcpy rather than by-hand loop.
Thanks to Dale P. Smith.
2003-04-07 01:49:04 +00:00
Mikael Djurfeldt
c5f268f895 * random.c (scm_c_default_rstate): Use SCM_VARIABLE_REF to access
scm_var_random_state.
2003-04-06 13:48:57 +00:00
Mikael Djurfeldt
372691d8ac * random.c (scm_c_random_bignum): Don't generate a random number
equal to m (the second argument of scm_c_random_bignum); only
generate numbers in the range 0 <= r < m.
2003-04-06 09:41:07 +00:00
Mikael Djurfeldt
938f6b7c81 * num2integral.i.c (INTEGRAL2BIG): Put negation of n inside then
clause.
2003-04-06 08:51:02 +00:00
Rob Browning
e55b54285b *** empty log message *** 2003-04-05 22:35:44 +00:00
Rob Browning
6cdb8c3fe9 *** empty log message *** 2003-04-05 22:34:21 +00:00
Rob Browning
d583ce1a8a * modules.c (s_scm_module_import_interface): move declaration of
uses before any code.
2003-04-05 22:34:10 +00:00
Mikael Djurfeldt
1ecfd01309 * Makefile.am (scmconfig.h): Look for config.h in top_builddir,
not top_srcdir.
2003-04-05 21:49:15 +00:00