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

5705 commits

Author SHA1 Message Date
Dirk Herrmann
78573619d0 * No binding is created for %gc-thunk any more. 2000-12-06 16:42:16 +00:00
Dirk Herrmann
a4bb4e6d09 * Various minor cleanups. 2000-12-06 16:24:00 +00:00
Dirk Herrmann
fd3363659b * eval.c: remove commented code, remove #ifdef CCLO conditionals
* remove uses of older GC marking and cell accessing macros
2000-12-06 15:16:59 +00:00
Dirk Herrmann
e34f941a3a * Use scm_tc3_* codes instead of hardcoded values. 2000-12-05 14:07:03 +00:00
Dirk Herrmann
01449aa511 * Changed guardian representation to applicable smob.
* Improved error reporting for dynamic loading.
2000-12-05 03:04:20 +00:00
Dirk Herrmann
362306b956 * Minor cleanup/optimization for char=?.
* Cleanup CCLO handling.
2000-12-04 17:19:35 +00:00
Dirk Herrmann
8c921d5c8d * Eliminate hard-coded value of scm_tc7_smob. 2000-12-04 16:31:03 +00:00
Dirk Herrmann
79a3dafe67 * Added scm_c_memq as a fast C level alternative for scm_memq. 2000-12-01 17:57:42 +00:00
Dirk Herrmann
23437298cc * Started goops cleanup. 2000-12-01 16:05:33 +00:00
Dirk Herrmann
21e8f468cf * coop-threads.c: Don't join finished threads. Thanks to Julian Satchell.
* coop.c: Removed old non-working code.
2000-11-30 10:26:44 +00:00
Gary Houston
818febc097 *** empty log message *** 2000-11-29 21:27:13 +00:00
Dirk Herrmann
2b7b76d505 * Removed outdated comment. 2000-11-28 18:22:23 +00:00
Dirk Herrmann
e51fe79c72 * Removed SCM_SYMBOL_UCHARS. 2000-11-28 16:37:40 +00:00
Dirk Herrmann
4e15fee80f * Don't use make-shared-substring any more. 2000-11-28 13:40:40 +00:00
Dirk Herrmann
9fb77163dd * Don't use make-shared-substring any more. 2000-11-28 11:48:01 +00:00
Gary Houston
3923fa6d06 * boot-9.scm: values?, get-values, values, call-with-values:
removed.  values and call-with-values are now primitives and
	the other two were only exported by accident.  don't define
	*values-rtd* record type or handle multiple values in
	scm-style-repl.
2000-11-26 18:28:57 +00:00
Gary Houston
ce21243418 * reimplementation of values, call-with-values as primitives:
* values.c, values.h: new files.  use a struct to contain multiple
	values, similar to the previous Scheme-level implementation.
	* Makefile.am: add values.c, values.h, values.x.
	* continuations.c (continuation_apply): support R5RS multiple value
	continuations.
	* init.c: call scm_init_values.
	* struct.h: define SCM_SET_STRUCT_PRINTER.
2000-11-26 18:27:49 +00:00
Gary Houston
5f144b105d * use an applicable SMOB to represent continuations, instead of a
custom tc7 type.  This will make it easier to support R5RS
	multiple value continuations, without the use of a Scheme-level
	wrapper.

	* continuations.c (scm_tc16_continuation, continuation_mark,
	continuation_free, continuation_print, continuation_apply):
	new SMOB support.
	(scm_make_continuation): new procedure, replaces scm_make_cont
	with a different interface.
	(copy_stack_and_call, scm_dynthrow, scm_init_continuations): rewritten.
	(CHEAP_CONTINUATIONS): removed non-working code completely.
	(scm_call_continuation): removed.
	* continuations.h (struct scm_contregs): add num_stack_items and
	stack fields.  previously stack was stored following this struct:
	use a tail array instead.
	(SCM_CONTINUATIONP): new macro.
	(SCM_CONTINUATION_LENGTH, SCM_SET_CONTINUATION_LENGTH):
	rewritten.
	(SCM_SET_CONTREGS): removed.
	* tags.h: removed scm_tc7_contin (was tag 61).
	* debug.c, gc.c, hash.c, print.c, procprop.c, procs.c:
	removed scm_tc7_contin support.
	* eval.c: use scm_make_continuation instead of scm_make_cont.
	don't set jump buffers here.  remove scm_tc7_contin support.
	* init.c, root.c: create SMOB continuation for rootcont instead
	of scm_tc7_contin.  call scm_init_continuations before
	scm_init_root.
	* root.c: remove support for static jmpbuf.  It's not used by
	default and I broke it.  create SMOB continuation for rootcont.
	* stacks.c: use SCM_CONTINUATIONP.
2000-11-25 16:58:25 +00:00
Dirk Herrmann
7f555fb4ed * Fix previous change (thanks to Matthias Koeppe). 2000-11-24 14:43:41 +00:00
Dirk Herrmann
ca83b028dc * Goops does not provide its own version of logand any more.
* Removed use of deprecated stuff from goops.
2000-11-24 10:55:23 +00:00
Dirk Herrmann
379b35daaa * Fixed readline default input/output port parameter handling.
* Removed redundant SCM_N?IMP tests.
2000-11-24 10:38:57 +00:00
Dirk Herrmann
08b5e6c316 * Don't uses anything deprecated any more. 2000-11-24 10:24:04 +00:00
Dirk Herrmann
5b9eb8ae16 * Deprecated SCM_LENGTH_MAX. 2000-11-23 15:26:24 +00:00
Dirk Herrmann
6a0476fd11 * SCM_SETCHARS deprecated. 2000-11-23 13:54:49 +00:00
Dirk Herrmann
9377887701 * Deprecated SCM_SETLENGTH. 2000-11-23 08:59:22 +00:00
Dirk Herrmann
d7cf432578 * Added SCM_SET_CONTINUATION_LENGTH to replace SCM_SETLENGTH. 2000-11-22 15:36:58 +00:00
Dirk Herrmann
bc0eaf7b78 * Added SCM_SET_VECTOR_LENGTH as one replacement for SCM_SETLENGTH. 2000-11-22 14:45:41 +00:00
Dirk Herrmann
34f0f2b8af * Deprecated macros SCM_ROCHARS and SCM_ROUCHARS. 2000-11-22 11:20:03 +00:00
Dirk Herrmann
395d8627b9 * This patch belongs to the previous one, it deprecates SCM_VALIDATE_RWSTRING. 2000-11-22 09:16:06 +00:00
Dirk Herrmann
f0942910af * Deprecated SCM_RWSTRINGP and SCM_VALIDATE_RWSTRING.
* Prepared SCM_STRING_U?CHARS to replace SCM_ROU?CHARS.
2000-11-21 17:32:38 +00:00
Gary Houston
c2c2760293 * configure.in: test $ac_cv_lib_readline_readline instead of
$ac_cv_lib_readline_main.  Thanks to Lars J. Aas.
2000-11-19 12:21:36 +00:00
Gary Houston
fc40e1fd21 * Makefile.am (.c.x): don't prefix ".:" to $PATH when running
guile-doc-snarf.  it doesn't seem to do anything useful, but would
	fail if $PATH contained whitespace.  Thanks to Lars J. Aas.
2000-11-18 22:18:03 +00:00
Marius Vollmer
8dc9439fc6 * alist.c, arbiters.c, async.c, backtrace.c, boolean.c, chars.c,
continuations.c, debug-malloc.c, debug.c, dynl.c, dynwind.c,
environments.c, eq.c, error.c, eval.c, evalext.c, feature.c,
filesys.c, fluids.c, fports.c, gc.c, goops.c, guardians.c, hash.c,
hashtab.c, hooks.c, ioext.c, iselect.c, keywords.c, lang.c,
list.c, load.c, macros.c, modules.c, net_db.c, numbers.c,
objects.c, objprop.c, options.c, pairs.c, ports.c, posix.c,
print.c, procprop.c, procs.c, properties.c, ramap.c, random.c,
read.c, regex-posix.c, root.c, scmsigs.c, script.c, simpos.c,
socket.c, sort.c, srcprop.c, stackchk.c, stacks.c, stime.c,
strings.c, strop.c, strorder.c, strports.c, struct.c, symbols.c,
tag.c, threads.c, throw.c, unif.c, variable.c, vectors.c,
version.c, vports.c, weaks.c: Makes sure the snarfer output
inclusion is disabled when the snarfer is run on the file.  Thanks
to Lars J. Aas!

* Makefile.am: Install guile-procedures.txt in version-specific
directory to enable multiple installed guile versions.  Suggested
by Karl M. Hegbloom <karlheg@debian.org, patch by Matthias Koeppe.
2000-11-17 16:25:05 +00:00
Gary Houston
6b72ac1d10 * fports.c: include gc.h.
(fport_flush, fport_close): silently ignore I/O errors when
	closing a port during gc.  it's better than aborting in scm_error.

	* throw.c (scm_handle_by_message): remove obsolete comment.
2000-11-13 23:16:38 +00:00
Gary Houston
9f561420d3 * fports.c (scm_open_file): fix the 'b' option. Thanks
to George Caswell.
2000-11-12 12:20:52 +00:00
Gary Houston
a9c632a2f3 2000-11-07 Gary Houston <ghouston@arglist.com>
* popen.scm (open-output-pipe): added docstrings for open-input-pipe
	and open-output-pipe.
2000-11-09 22:46:07 +00:00
Gary Houston
b875c46853 2000-11-09 Gary Houston <ghouston@arglist.com>
* ports.c, ports.h (scm_close_all_ports_except): deprecated.
	use port-for-each.  Updated its docstring.
2000-11-09 22:44:09 +00:00
Gary Houston
34b56ec407 *** empty log message *** 2000-11-09 22:41:58 +00:00
Gary Houston
34526073e8 *** empty log message *** 2000-11-07 22:42:35 +00:00
Gary Houston
9f9919eb84 *** empty log message *** 2000-11-07 21:38:03 +00:00
Gary Houston
8ccc61e837 2000-11-06 Gary Houston <ghouston@arglist.com>
* popen.scm (open-process): bug fix: don't use
	close-all-ports-except to close ports in the child process, since
	it causes port buffers to be flushed.  they may be flushed again
	in the parent, causing duplicate output.  use a more elaborate
	method for setting up the child descriptors (thanks to David
	Pirotte for the bug report).
	standard file descriptors 0, 1, 2 in the child process
	are now set up from current-input-port etc., where possible.
2000-11-07 21:36:42 +00:00
Gary Houston
c2ca44933f 2000-11-07 Gary Houston <ghouston@arglist.com>
* ports.c (scm_port_for_each): new proc.  implements port-for-each,
	which applies a procedure to each port in the port table.
	ports.h: declare scm_port_for_each.

	* ioext.c (scm_dup2): new proc.  implements "dup2" which is a simple
	wrapper for the dup2 system call (unlike dup->fdes or
	primitive-move->fdes).
	* ioext.h: declare scm_dup2.

	* filesys.c (scm_close_fdes): new proc.  implements "close-fdes"
	which is a simple wrapper for close system call (unlike scm_close).
	* filesys.h: declare for scm_close_fdes.
2000-11-07 21:34:45 +00:00
Mikael Djurfeldt
b100f5eed2 *** empty log message *** 2000-11-07 02:19:13 +00:00
Mikael Djurfeldt
ef42490f66 * goops/dispatch.scm (method-cache-install!): Use n-specialized +
1 args for type matching.  (Thanks to Lars J. Aas.)
2000-11-07 02:19:03 +00:00
Mikael Djurfeldt
81211c73cc * goops.scm (internal-add-method!): Set n-specialized of a generic
function to the number of specializers regardless if it has rest
args or not.
2000-11-07 02:18:52 +00:00
Mikael Djurfeldt
4ea6a43186 * eval.c (SCM_IM_DISPATCH), objects.c (scm_mcache_lookup_cmethod):
Count n_specialized + 1 turns before letting a match through.
2000-11-07 02:18:11 +00:00
Mikael Djurfeldt
55c4a13240 * goops.c (scm_sys_invalidate_method_cache_x): Don't convert
scm_si_n_specialized from fixnum and don't take absolute value.
(Thanks to Lars J. Aas.)
2000-11-07 02:17:58 +00:00
Gary Houston
eb5c0a2a6c 2000-11-04 Gary Houston <ghouston@arglist.com>
* ports.c (scm_port_p): new function, implements "port?" which
	is mentioned in R5RS.
	* ports.h: declare scm_port_p.
2000-11-04 23:24:14 +00:00
Dirk Herrmann
53a53bd75e * Add test to check whether the after-gc-hook is run correctly. 2000-11-03 17:52:20 +00:00
Dirk Herrmann
931dd6e125 * Ahem, forgot to send the changelog with the last set of patches... 2000-11-02 10:41:33 +00:00