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

3667 commits

Author SHA1 Message Date
Kevin Ryde
bc63ff8bce Add a copyright year. 2004-01-06 23:32:26 +00:00
Marius Vollmer
6d1c8614ac *** empty log message *** 2003-11-21 17:13:53 +00:00
Marius Vollmer
331bacec19 (scm_drain_input): Bug fix: only access the port after checking that
it indeed is one.
2003-11-21 17:13:25 +00:00
Marius Vollmer
dd6f4cff17 *** empty log message *** 2003-11-13 18:45:12 +00:00
Marius Vollmer
b8d889443e (scm_get_stack_base): Provide a definition that return NULL when the
machine type is unknown.  Previously, gc_os_dep.c would refuse to
compile.
2003-11-13 18:44:29 +00:00
Kevin Ryde
8cd1f2452e *** empty log message *** 2003-11-08 22:21:34 +00:00
Kevin Ryde
c3b5e1988c (scm_dynamic_unlink): Need scm_list_1 on error message
argument.  Reported by Mike Gran.
2003-11-08 22:20:54 +00:00
Rob Browning
e9af43516a *** empty log message *** 2003-10-11 21:39:16 +00:00
Rob Browning
b2e64b4cdd (s_scm_append): add patch from Kevin Ryde to track argnum
in error messages.
2003-10-11 21:37:03 +00:00
Kevin Ryde
a629681215 *** empty log message *** 2003-10-01 23:43:10 +00:00
Kevin Ryde
029328497d *** empty log message *** 2003-10-01 23:32:45 +00:00
Kevin Ryde
5486021ac3 (scm_call_with_output_string): scm_get_output_string
rather than scm_strport_to_string, so as to guard against the port
having been closed by the called procedure.
2003-10-01 23:32:09 +00:00
Rob Browning
c91207a1b2 *** empty log message *** 2003-10-01 19:52:06 +00:00
Rob Browning
0d153cd460 (scm_done_malloc): fix sign error in scm_malloc_done, was
comparing (scm_mallocated < size) when scm_mallocated is unsigned
and size is signed, and size is known to be negative.
2003-10-01 19:51:43 +00:00
Rob Browning
9d58732f52 *** empty log message *** 2003-09-27 04:22:09 +00:00
Marius Vollmer
e721987c47 *** empty log message *** 2003-09-12 15:32:46 +00:00
Marius Vollmer
deddb10425 * continuations.h: Include <ucontext.h> on IA64 instead of
<sys/ucontext.h>.
* continuations.c (scm_make_continuation): Use ia64_getcontext
instead of getcontext on IA64.
2003-09-12 15:32:15 +00:00
Kevin Ryde
434a0e3312 *** empty log message *** 2003-09-02 23:02:22 +00:00
Kevin Ryde
147e47c884 (scm_lognot): Correction to docstring, ones-complement not 2s-complement. 2003-09-02 23:01:38 +00:00
Kevin Ryde
cb9e3da7a2 *** empty log message *** 2003-08-08 23:19:03 +00:00
Kevin Ryde
1eea44481c (scm_source_properties): Return plist from hash if it's a
list set by source-properties! rather than an SRCPROPS object,
2003-08-08 23:09:49 +00:00
Han-Wen Nienhuys
5a6432a012 (scm_must_realloc): bugfix: do mtrigger before
realloc. Thanks to Sam Hocevar for reporting this bug
2003-07-17 11:19:16 +00:00
Marius Vollmer
42a67b6510 *** empty log message *** 2003-06-09 22:14:45 +00:00
Marius Vollmer
60ae1e12a5 (scm_get_stack_base): New version using __libc_stack_end, when
available.
2003-06-09 22:14:02 +00:00
Marius Vollmer
842d510f73 *** empty log message *** 2003-04-19 11:18:10 +00:00
Marius Vollmer
dea8a73c42 (SCM_MTRIGGER_HYSTERESIS): Removed.
(scm_i_minyield_malloc, check_mtrigger): New.
(scm_must_malloc, scm_must_realloc, scm_done_malloc): Use it
instead of explicit code.  Thanks to Han-Wen Nienhuys!
2003-04-19 11:17:23 +00:00
Mikael Djurfeldt
f721dc1de1 * goops.c (TEST_CHANGE_CLASS): Update variable class after class
change.
2003-04-17 20:45:00 +00:00
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
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
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
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
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
da2e146a5b * print.c (scm_prin1): Remember old state of pstate->writingp. 2003-04-14 14:51: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
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
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
Rob Browning
e21bdaf4a4 *** empty log message *** 2003-04-12 16:48:47 +00:00
Rob Browning
604a9686a5 *** empty log message *** 2003-04-12 01:12:10 +00:00
Rob Browning
cc76e25dc2 * goops.c (prep_hashsets): make static to match prototype.
(scm_sym_args): SCM_SYMBOL -> SCM_GLOBAL_SYMBOL.  Thanks to Albert
Chin.
2003-04-12 01:12:02 +00:00
Rob Browning
3ca833fd1e * gc_os_dep.c: add NetBSD powerpc config info. Thanks to Thomas
Klausner.
2003-04-12 01:11:55 +00:00
Rob Browning
4d6ae3cfbc * c-tokenize.lex: remove trailing comma from enum. Thanks to
Albert Chin.
2003-04-12 01:11:49 +00:00
Rob Browning
ad4c459928 *** empty log message *** 2003-04-12 00:07:23 +00:00
Rob Browning
b84333a89f * eval.c (SCM_CEVAL): fixed a couple of mysterious (probably
optimization related) bugs on powerpc by altering some
  "while (!SCM_NULLP (t.arg1 = SCM_CDR (t.arg1)))"
or
  "if (...foo = bar...)"
style constructs to move the assignments outside the guards.
(scm_m_case): move some assignments outside guards as above.
(scm_m_letrec1): move some assignments outside guards as above.
(unmemocopy): move some assignments outside guards as above.
(scm_eval_body): move some assignments outside guards as above.
(SCM_APPLY): move some assignments outside guards as above.
(s_scm_copy_tree): move some assignments outside guards as above.
2003-04-12 00:07:15 +00:00
Rob Browning
f802eb6139 *** empty log message *** 2003-04-11 18:34:09 +00:00