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

3521 commits

Author SHA1 Message Date
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
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
34526073e8 *** empty log message *** 2000-11-07 22:42:35 +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
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
931dd6e125 * Ahem, forgot to send the changelog with the last set of patches... 2000-11-02 10:41:33 +00:00
Dirk Herrmann
b24b5e13bf * Get rid of calls to SCM_ROSTRINGP.
* Fix some string/symbol output problems with regards to substrings.
* Fix error output to prefer procedure name parameters over stack data.
* Use SCM_(SET_)?FILENAME where appropriate.
* Prefer calling scm_remember over scm_protect/unprotect_object calls.
2000-11-02 10:36:31 +00:00
Dirk Herrmann
66460dfba3 * environments.c: Don't use '==' to compare SCM objects.
* posix.c (scm_getgroups):  Don't create a redundant string object.
2000-11-01 17:55:41 +00:00
Dirk Herrmann
0f87853a56 * Don't recompute symbol hash values. The symbol holds them already.
* Speed up interning of symbols by comparing hash values.
2000-11-01 16:59:45 +00:00
Dirk Herrmann
a3a329390f * Remove the code that implemented the SCM_HUGE_LENGTH trick. 2000-10-30 17:47:52 +00:00
Dirk Herrmann
a6d9e5abe5 * Change a couple of functions to accept either symbols or strings only.
* Get rid of remainig uses of SCM_LENGTH etc.
2000-10-30 11:42:26 +00:00
Dirk Herrmann
e9bfab50e4 * String comparison functions don't accept symbols as arguments any more.
* Added macro SCM_STRING_COERCE_0TERMINATION_X.
2000-10-26 18:18:28 +00:00
Mikael Djurfeldt
f4553de8f8 *** empty log message *** 2000-10-25 15:51:29 +00:00
Mikael Djurfeldt
42b586db77 * goops.h: Renamed class --> cls, new --> newinst in order to accomodate
C++.
2000-10-25 15:51:06 +00:00
Mikael Djurfeldt
14f1d9fec8 *** empty log message *** 2000-10-25 14:51:33 +00:00
Mikael Djurfeldt
5e8904311f * goops.c, objects.c, objects.h, eval.c (scm_make_extended_class,
scm_make_port_classes, scm_change_object_class,
scm_memoize_method): Changed to ordinary functions (was plugin
slots).
2000-10-25 14:50:28 +00:00
Mikael Djurfeldt
acfee8e1d0 * init.c (scm_init_guile_1): Call the goops module registration
function.
Added #include "libguile/goops.h".
2000-10-25 14:49:56 +00:00
Mikael Djurfeldt
0518d3e277 * goops.h: Removed various superfluous conditions. 2000-10-25 14:49:47 +00:00
Mikael Djurfeldt
80662edab3 * goops.c, objects.c, objects.h, eval.c (scm_make_extended_class,
scm_make_port_classes, scm_change_object_class,
scm_memoize_method): Changed to ordinary functions (was plugin
slots).

* goops.c (wrap_init, scm_wrap_object): Unconditionally use
SCM_STRUCT_GC_CHAIN.
(scm_goops_version): Removed.
(scm_oldfmt): and all uses of it: Removed.
(scm_shared_array_root, scm_shared_array_offset,
scm_shared_array_increments): Removed.
(scm_init_goops): No need to support two arg mutex init.
Removed #include "versiondat.h", #include "goops.h".
2000-10-25 14:49:31 +00:00
Mikael Djurfeldt
5a35577551 * Makefile.am (libguile_la_SOURCES): Added goops.c
(DOT_X_FILES): Added goops.x
(DOT_DOC_FILES): Added goops.doc
(modinclude_HEADERS): Added goops.h
2000-10-25 14:49:00 +00:00
Dirk Herrmann
1b9be268c8 * Deprecated scm_vector_set_length_x.
* Zero length vectors do not allocate dummy memory any more.
2000-10-25 12:58:51 +00:00
Dirk Herrmann
c7ec8671f8 * Forgot to check this in with the last bunch of files. 2000-10-25 11:13:15 +00:00
Dirk Herrmann
d1ca2c6423 * Some more work to get rid of SCM_LENGTH
* Eliminated some cell type bit fiddling
* Various minor changes
2000-10-25 11:01:03 +00:00
Marius Vollmer
31535422f5 Corrected "Brat" to "Brad". Sorry. 2000-10-24 20:37:00 +00:00
Marius Vollmer
f8fa3e387c *** empty log message *** 2000-10-20 00:32:00 +00:00
Marius Vollmer
612a55e5e3 * init.c (scm_init_guile_1, invoke_main_func): Call
scm_load_startup_files in scm_init_guile_1, not in
invoke_main_func.
2000-10-20 00:31:29 +00:00
Marius Vollmer
c6ba6ce6e3 *** empty log message *** 2000-10-18 21:06:21 +00:00
Marius Vollmer
5264d62116 * print.c (grow_ref_stack): Pass a INUM to scm_make_vector as the
size, not a naked int.  Thanks to Brat Knotwell!
2000-10-18 21:05:57 +00:00
Marius Vollmer
0100535b2c *** empty log message *** 2000-10-18 18:28:19 +00:00
Marius Vollmer
a3487916d0 * gc_os_dep.c (GC_noop1, GC_bool, TRUE, FALSE, VOLATILE):
Definitions copied from Boehm collector.
2000-10-18 18:27:55 +00:00
Dirk Herrmann
daa6ba187b * Deprecated scm_sloppy_mem(q|v|ber) 2000-10-13 07:55:25 +00:00
Dirk Herrmann
a8a11001f9 * Fixed include file problem reported by Bruce Korb. 2000-10-12 07:59:02 +00:00
Marius Vollmer
66ca939218 *** empty log message *** 2000-10-11 19:28:52 +00:00
Marius Vollmer
155415a56d * gc_os_dep.c: Added real implementation based on code from Boehms
collector.  This is not well tested yet.
2000-10-11 19:23:52 +00:00
Marius Vollmer
ec009b22a9 * gc.h (scm_get_stack_base): Added prototype.
* init.c (scm_get_stack_base): Removed prototype.
2000-10-11 19:22:06 +00:00
Marius Vollmer
9208204554 * gc.h (scm_get_stack_base): Added prototype. 2000-10-11 19:20:14 +00:00
Dirk Herrmann
b7ead2aee2 * Replace calls to SCM_LENGTH. 2000-10-11 14:12:26 +00:00
Dirk Herrmann
b226e5f658 * Replace some SCM_LENGTH macros. 2000-10-11 12:50:53 +00:00
Dirk Herrmann
74014c46ff * Replaced some calls to SCM_LENGTH.
* Use scm_uniform_vector_length to determine lengths generically.
* Eliminate some dummy type dispatch code.
* Fix an array access but in scm_ra2contig.
2000-10-11 12:24:43 +00:00
Dirk Herrmann
b5c2579a34 * Removed further calls to SCM_LENGTH. 2000-10-10 09:22:31 +00:00
Dirk Herrmann
9fd38a3d14 * Made some functions not accept symbols as input parameters any more.
* Replaced some calls to SCM_LENGTH.
2000-10-09 16:27:24 +00:00
Dirk Herrmann
bfa974f0a4 * Replace a bunch of calls to SCM_LENGTH. 2000-10-09 14:37:36 +00:00
Dirk Herrmann
b17004b806 * Eliminate last call to scm_vector_set_length_x within libguile. 2000-10-09 12:39:14 +00:00
Dirk Herrmann
aa3188a7d9 * Eliminate previously introduced redundant string copying. 2000-10-09 09:54:28 +00:00
Dirk Herrmann
94115ae385 * Don't call scm_vector_set_length_x for non-vector arguments. 2000-10-06 16:51:08 +00:00
Dirk Herrmann
2d349e67ac * Added type-specific replacement macros for SCM_LENGTH. 2000-10-06 13:35:58 +00:00