Commit graph

662 commits

Author SHA1 Message Date
Gary Houston
7ee92fcefd * configure.in: check availability of siginterrupt.
* scmsigs.c (scm_sigaction): add SA_RESTART to flags only if
	HAVE_RESTARTABLE_SYSCALLS.
	(scm_init_scmsigs): use siginterrupt if it's available.  not
	everyone who has restartable syscalls has SA_RESTART it seems.
	(scm_sigaction): use scm_num2long/scm_long2num when converting
	SIG_DFL/SIG_IGN, in case it doesn't fit in an INUM.  use
	scm_integer_p to test the type.
1999-09-20 21:32:23 +00:00
Gary Houston
08b8c6948d 1999-09-18 Gary Houston <ghouston@freewire.co.uk>
* configure.in: use AC_SYS_RESTARTABLE_SYSCALLS instead of
	testing for SA_RESTART.

1999-09-18  Gary Houston  <ghouston@freewire.co.uk>

	* _scm.h, scmsigs.c: replace HAVE_RESTARTS with
	HAVE_RESTARTABLE_SYSCALLS.
1999-09-18 17:13:38 +00:00
Gary Houston
e684c60f44 1999-09-18 Gary Houston <ghouston@freewire.co.uk>
* strports.c (scm_strport_to_string): create the string from
	pt->read_buf instead of an expression that evaluates to the
	same thing.

	* gdbint.c (gdb_print): don't just use SCM_CHARS to get a C string
	from the port: the port's buffer may not be NUL terminated.
1999-09-18 08:36:35 +00:00
Mikael Djurfeldt
8cc9503dc0 *** empty log message *** 1999-09-16 11:51:49 +00:00
Mikael Djurfeldt
4b3324a35f *** empty log message *** 1999-09-15 17:35:14 +00:00
Mikael Djurfeldt
5eb548fc54 *** empty log message *** 1999-09-15 15:22:58 +00:00
Jim Blandy
77e3c5beb4 *** empty log message *** 1999-09-15 03:34:45 +00:00
Mikael Djurfeldt
ece4116847 *** empty log message *** 1999-09-13 14:58:33 +00:00
Mikael Djurfeldt
30772a346b Fixed typo 1999-09-12 11:42:10 +00:00
Mikael Djurfeldt
2868a51ce9 *** empty log message *** 1999-09-12 11:18:29 +00:00
Jim Blandy
340a877098 *** empty log message *** 1999-09-12 03:52:11 +00:00
Mikael Djurfeldt
69fafe4692 *** empty log message *** 1999-09-12 02:26:03 +00:00
Jim Blandy
9185918452 *** empty log message *** 1999-09-11 19:05:43 +00:00
Jim Blandy
b142c81de4 *** empty log message *** 1999-09-11 18:51:58 +00:00
Mikael Djurfeldt
f14d3ff8be *** empty log message *** 1999-09-11 18:32:42 +00:00
Jim Blandy
e1f20ec6ad *** empty log message *** 1999-09-11 15:08:11 +00:00
Gary Houston
77242ff9cd 1999-09-11 Gary Houston <ghouston@easynet.co.uk>
* filesys.c (scm_directory_p): new procedure "directory?"  Returns
	a boolean indicating whether its argument is a directory
	port as returned by opendir (thanks to Dirk Herrmann for the
	suggestion.)
1999-09-11 14:12:14 +00:00
Mikael Djurfeldt
08cc62c7d9 *** empty log message *** 1999-09-11 13:54:15 +00:00
Mikael Djurfeldt
d37e656919 *** empty log message *** 1999-09-09 21:30:12 +00:00
Mikael Djurfeldt
bc848f7fee *** empty log message *** 1999-09-09 20:17:51 +00:00
Gary Houston
55a7fc623b 1999-09-08 Gary Houston <ghouston@easynet.co.uk>
* stime.c (bdtime2c): rewrite the ASSERTs.  Accept a value
	of #f for the 10th vector element to avoid an exception
	seen by Bernard Urban.
	(scm_mktime): unneeded ASSERT removed.
1999-09-08 18:38:09 +00:00
Mikael Djurfeldt
4f93d84c8e *** empty log message *** 1999-09-07 09:42:18 +00:00
Mikael Djurfeldt
6065fed8ed *** empty log message *** 1999-09-06 21:13:05 +00:00
Mikael Djurfeldt
7e6e146e46 *** empty log message *** 1999-09-06 19:54:51 +00:00
Jim Blandy
548c5135e0 *** empty log message *** 1999-09-06 02:04:48 +00:00
Jim Blandy
f9dbe0749d *** empty log message *** 1999-09-05 13:50:38 +00:00
Jim Blandy
9d743bfb5f *** empty log message *** 1999-09-05 12:42:02 +00:00
Jim Blandy
9918cf630d *** empty log message *** 1999-09-05 12:40:31 +00:00
Jim Blandy
2a94fc3629 *** empty log message *** 1999-09-05 06:43:33 +00:00
Jim Blandy
afbbb69ca2 *** empty log message *** 1999-09-03 07:54:22 +00:00
Mikael Djurfeldt
655f19abc4 *** empty log message *** 1999-09-02 14:52:02 +00:00
Jim Blandy
b074884f06 *** empty log message *** 1999-09-01 02:51:52 +00:00
Jim Blandy
a4ea22c3d6 *** empty log message *** 1999-08-31 13:37:40 +00:00
Jim Blandy
dd67f90b24 *** empty log message *** 1999-08-31 13:04:21 +00:00
Jim Blandy
94b4c096e2 *** empty log message *** 1999-08-31 08:49:55 +00:00
Mikael Djurfeldt
fa941d9e36 *** empty log message *** 1999-08-30 12:27:29 +00:00
Jim Blandy
ebc4e6cc6a *** empty log message *** 1999-08-30 07:02:46 +00:00
Mikael Djurfeldt
a709833577 *** empty log message *** 1999-08-30 02:15:07 +00:00
Mikael Djurfeldt
747117b018 *** empty log message *** 1999-08-29 18:32:24 +00:00
Mikael Djurfeldt
9a26d6f91e *** empty log message *** 1999-08-29 18:17:58 +00:00
Gary Houston
5c4fe34f92 add the attribution 1999-08-29 16:54:34 +00:00
Gary Houston
6e2e75db52 1999-08-29 Gary Houston <ghouston@easynet.co.uk>
* ports.c (scm_ungetc): bugfix: if putback_buf is NULL
	don't allocate zero bytes.
1999-08-29 16:50:40 +00:00
Mikael Djurfeldt
a48a7629fc *** empty log message *** 1999-08-29 14:24:24 +00:00
Mikael Djurfeldt
c5b738b500 *** empty log message *** 1999-08-29 03:29:03 +00:00
Mikael Djurfeldt
375c11a331 *** empty log message *** 1999-08-29 01:31:09 +00:00
Mikael Djurfeldt
9de33deb2e * procs.c, procs.h (scm_subr_entry): New type: Stores data
associated with subrs.
(SCM_SUBRNUM, SCM_SUBR_ENTRY, SCM_SUBR_GENERIC, SCM_SUBR_PROPS,
SCM_SUBR_DOC): New macros.
(scm_subr_table): New variable.
(scm_mark_subr_table): New function.

* init.c (scm_boot_guile_1): Call scm_init_subr_table.

* gc.c (scm_gc_mark): Don't mark subr names here.
(scm_igc): Call scm_mark_subr_table.

* snarf.h (SCM_GPROC, SCM_GPROC1): New macros.

* procs.c, procs.h (scm_subr_p): New function (used internally).

* gsubr.c, gsubr.h (scm_make_gsubr_with_generic): New function.

* objects.c, objects.h (scm_primitive_generic): New class.

* objects.h (SCM_CMETHOD_CODE, SCM_CMETHOD_ENV): New macros.

* print.c (scm_iprin1): Print primitive-generics.

* __scm.h (SCM_WTA_DISPATCH_1, SCM_GASSERT1,
SCM_WTA_DISPATCH_2, SCM_GASSERT2): New macros.

* eval.c (SCM_CEVAL, SCM_APPLY): Replace scm_wta -->
SCM_WTA_DISPATCH_1 for scm_cxr's (unary floating point
primitives).  NOTE: This means that it is now *required* to use
SCM_GPROC1 when creating float scm_cxr's (float scm_cxr's is an
obscured representation that will be removed in the future anyway,
so backward compatibility is no problem here).

* numbers.c: Converted most numeric primitives (all but bit
comparison operations and bit operations) to dispatch on generic
if args don't match.

* eval.c, eval.h (scm_eval_body): New function.

* objects.c (scm_call_generic_0, scm_call_generic_1,
scm_call_generic_2, scm_call_generic_3, scm_apply_generic): New
functions.

* eval.c (SCM_CEVAL): Apply the cmethod directly after having
called scm_memoize_method instead of doing a second lookup.

* objects.h (scm_memoize_method): Now returns the memoized cmethod.

* procs.c (scm_make_subr_opt): Use scm_sysintern0 instead of
scm_sysintern so that the binding connected with the subr name
isn't cleared when we give set = 0.
1999-08-26 04:24:42 +00:00
Mikael Djurfeldt
079100140f *** empty log message *** 1999-08-24 02:14:57 +00:00
Mikael Djurfeldt
e2e470cf47 *** empty log message *** 1999-08-23 21:27:21 +00:00
Jim Blandy
577905a8dc *** empty log message *** 1999-08-20 05:24:05 +00:00
Jim Blandy
f8c9d4978d *** empty log message *** 1999-08-20 05:14:11 +00:00