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

15149 commits

Author SHA1 Message Date
Jim Blandy
88a9ae8059 *** empty log message *** 1997-08-22 22:05:00 +00:00
Mikael Djurfeldt
8c5a8bed57 * emacs.scm (emacs-load): New argument: interactivep: when
non-false, send back results to Emacs.
1997-08-21 09:32:37 +00:00
Mikael Djurfeldt
8c3420ad4d * emacs.scm (emacs-load): Adjust stack narrowing.
(whitespace-chars): Include #\np.
1997-08-20 19:52:03 +00:00
Mikael Djurfeldt
eb7ec1e820 * emacs.scm (emacs-load): Adjust stack narrowing. 1997-08-20 17:42:15 +00:00
Mikael Djurfeldt
555f21d8bd *** empty log message *** 1997-08-20 11:24:14 +00:00
Mikael Djurfeldt
5fa781a092 * psyntax.pp: Removed leading blanks => 800K -> 100K. 1997-08-20 11:23:52 +00:00
Mikael Djurfeldt
6a546cd710 * syncase.scm: Also turn off debugging evaluator and recording of
procedure names during loading of psyntax.pp.
1997-08-20 11:23:22 +00:00
Mikael Djurfeldt
a48930c687 * syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.
	Load psyntax.pp with recording of positions turned off.
1997-08-19 21:58:29 +00:00
Mikael Djurfeldt
19ef2a9bdb * syncase.scm: Don't tamper with debug mode setting when enabling
macros.  Instead cut the stack with start-stack.
1997-08-19 20:51:42 +00:00
Mikael Djurfeldt
4f9cefe3c3 Dybvig's version 1997-08-19 19:45:40 +00:00
Mikael Djurfeldt
868dc739fd Added syncase.scm, psyntax.pp, psyntax.ss 1997-08-19 01:35:09 +00:00
Mikael Djurfeldt
ceb177a473 *** empty log message *** 1997-08-19 01:34:46 +00:00
Mikael Djurfeldt
ae11ddaef4 psyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =. 1997-08-19 01:32:26 +00:00
Mikael Djurfeldt
230c435383 * syncase.scm: New file: Guile-adaption for syntax-case macros.
psyntax.pp, psyntax.ss: Syntax-case macros, portable version 2 by
R. Kent Dybvig, Oscar Waddell, Bob Hieb and Carl Bruggeman
1997-08-19 01:28:50 +00:00
Mikael Djurfeldt
4f161c5cb1 *** empty log message *** 1997-08-18 20:19:18 +00:00
Mikael Djurfeldt
0e81dabd94 * * session.scm: New file: Session support.
(apropos): New procedure: List bindings given regexp.
1997-08-18 20:02:22 +00:00
Mikael Djurfeldt
1a0e096c86 * list.c (scm_list_append_x): Allow non-pair as last argument.
This is consistent with the R4RS append and is probably the
correct behaviour as specified by R2RS.  (Thanks to Radey Shouman)
1997-08-18 13:17:46 +00:00
Gary Houston
6afcd3b2b6 * stime.h: prototype for scm_times.
* stime.c (scm_times): new procedure.
* ioext.c (scm_fseek): if the first argument is a file descriptor
call lseek.
(scm_ftell): if the first argument is a file descriptor call lseek
(sic).
* filesys.h: prototypes for scm_open_fdes, scm_fsync.
* filesys.c (scm_chmod): if the first argument is a file descriptor,
call fchmod.
(scm_chown): if the first argument is a port or file descriptor,
call fchown.
(scm_truncate_file): new procedure.
Add DEFER/ALLOW INTS to a few other procedures.
(scm_fsync): new procedure.
(scm_open_fdes): new procedure.
(scm_open): use scm_open_fdes.  If mode isn't specified, 666 will
now be used.
(scm_fcntl): the first argument can now be a file descriptor.  The
third argument is now optional.

* posix.c (scm_execl, scm_execlp): make the filename argument
compulsory, since omitting it causes SEGV.
(scm_sync): return unspecified instead of #f.
(scm_execle): new procedure.
(environ_list_to_c): new procedure.
(scm_environ): use environ_list_to_c.  disable interrupts.
(scm_convert_exec_args): take pos and subr arguments and
improve error checking.

* boot-9.scm: define tms accessors: clock, utime, stime, cutime,
cstime.
1997-08-16 18:48:44 +00:00
Mikael Djurfeldt
db75135d74 * emacs.scm (emacs-load): Something has changed in the reader so
that we now should set the port line count to the specified value
(linum) instead of (- linum 1).
1997-08-14 19:23:13 +00:00
Mikael Djurfeldt
096d5f90c3 * slib.scm (slib:load): Use load-from-path instead of
primitive-load-path so that backtraces get narrowed properly at
the top.

* boot-9.scm (top-repl): Save stack already in signal handler in
order to narrow it correctly.
(save-stack): Adjust narrowing tag for the top of load-stacks.
1997-08-14 18:24:46 +00:00
Mikael Djurfeldt
0824b52425 * stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
(scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
argument to SCM_ASSERT.  Furthermore, the name of the function
should be passed as first argument when signalling
SCM_WNA. (Thanks to Thomas Morgan)
1997-08-14 15:00:03 +00:00
Mikael Djurfeldt
adc02cce18 * gsubr.c (scm_gsubr_apply): From Radey Shouman
<shouman@zianet.com>: "The switch in scm_gsubr_apply that
dispatches on the number of actual args has a default case
reporting an internal error.  This is a vestige from a version
that mallocated a SCM vector to hold the arguments.  In the
current version this check is too late: if it ever happens we will
have already overstepped the bounds of the array.

Also, the patch [...] adds a check for too many actual arguments."

mdj: Removed check for "internal programming error".
1997-08-14 14:58:25 +00:00
Mikael Djurfeldt
4ed948d4f1 * * gh_io.c (gh_write): New function. 1997-08-13 14:55:34 +00:00
Mikael Djurfeldt
9538471795 * * gh_eval.c (catch_with_saved_stack): Removed. Replaced by:
throw.c (scm_internal_stack_catch): New sibling to the other catch
	functions.  Code moved from gh_eval.c.
	throw.h: Added header.
	gh_eval.c (gh_eval_str_with_stack_saving_handler): Renamed call to
	scm_internal_stack_catch.
1997-08-13 14:54:49 +00:00
Gary Houston
468b2cf37d really delete primitive-dup. 1997-07-29 03:52:24 +00:00
Gary Houston
7a6f1ffa10 * ioext.h: fix up prototypes.
* ioext.c (scm_dup_to_fdes): renamed from scm_primitive_dup2.
Scheme name is now dup->fdes.
(scm_dup_to_fdes): make the second argument optional and
fold in the functionality of scm_primitive_dup.
(scm_primitive_dup): deleted.
* fports.h (SCM_P): prototypes for scm_setvbuf, scm_setfileno.
* fports.c (scm_setbuf0): don't disable the setbuf if MSDOS or
ultrix are defined.  Use setvbuf instead of setbuf.
(scm_setvbuf): new procedure.
(scm_init_fports): intern _IOFBF, _IOLBF, _IONBF.
(scm_setfileno): moved from ioext.c.
(scm_fgets): cast SCM_STREAM to (FILE *), remove unused lp variable.
(top of file): Delete 25 lines of probably obsolete CPP hair for MSDOS.

* boot-9.scm (move->fdes, dup->port): use dup->fdes, not primitive-dup.
(dup->fdes): deleted, now done in C.
1997-07-29 02:21:08 +00:00
Marius Vollmer
a0cb6cb0ec *** empty log message *** 1997-07-27 09:11:05 +00:00
Marius Vollmer
1e8f77cd7b * struct.c (scm_print_struct): Use scm_printer_apply to call the
user defined struct printer.
1997-07-27 09:09:54 +00:00
Marius Vollmer
c4f37e8038 * print.c (scm_iprin1): Enter printed structures into the print
state as nested data while they are printed.
(print_state_fluid, print_state_fluid_num): New variables.
(scm_init_print): Initialize them.
(scm_iprin): If print_state_fluid carries a print_state, use that
instead of creating a new one.
(scm_printer_apply, apply_stub, struct apply_data): New
definitions to help with calling printer functions written in
Scheme.
* print.h (scm_printer_apply): New prototype.
1997-07-27 09:08:38 +00:00
Marius Vollmer
9c3fb66f61 *** empty log message *** 1997-07-27 09:04:50 +00:00
Gary Houston
956055a9d6 * boot-9.scm (setenv): new procedure, scsh compatible. 1997-07-26 20:37:05 +00:00
Marius Vollmer
b3460a507a * dynwind.c (scm_dowinds): Handle fluids on the wind list.
* fluids.h (scm_internal_with_fluids, scm_with_fluids,
scm_swap_fluids, scm_swap_fluids_reverse): New prototypes.
* fluids.c (scm_internal_with_fluids, scm_with_fluids,
scm_swap_fluids, scm_swap_fluids_reverse): New functions.
1997-07-26 20:08:42 +00:00
Marius Vollmer
485cb6eb4f *** empty log message *** 1997-07-26 20:03:52 +00:00
Marius Vollmer
8a6a86714b * boot-9.scm (with-fluids): New macro to go with the
builtin `with-fluids*'.
1997-07-26 20:03:23 +00:00
Mikael Djurfeldt
269861c775 * eval.c (scm_apply): Handle the case when a tc7_sybr_2 is applied
to a list of length zero correctly.
1997-07-25 15:04:50 +00:00
Gary Houston
64d01d1315 NEWS: added new dup variants amound other things. 1997-07-24 09:11:02 +00:00
Mikael Djurfeldt
1b0c9ace51 * md/axp.s, md/axp_b.s: Changed comments from C-style to # to
please the alpha assembler.
1997-07-24 03:06:08 +00:00
Mikael Djurfeldt
4d0d7ef9d6 * slib.scm (install-require-module): In newer versions of slib 1997-07-24 02:32:42 +00:00
Tim Pierce
3cb988bd00 Line-oriented i/o:
scm_gen_read_line
scm_read_line
scm_fgets
scm_generic_fgets
1997-07-23 21:20:55 +00:00
Mikael Djurfeldt
757cfb94f4 * configure.in: Added thread support for the alpha architecture.
configure: Regenerated.
1997-07-23 18:36:44 +00:00
Mikael Djurfeldt
8309a10d87 * boot-9.scm: If using emacs interface, enable backtraces
automatically.
1997-07-23 18:15:37 +00:00
Gary Houston
e38303a26d * ioext.h: removed scm_duplicate_port prototype.
* ioext.c (scm_primitive_dup2): return the new file descriptor
instead of SCM_UNSPECIFIED, since similarity to scm_primitive_dup
is convenient.
(scm_fdopen): bug fix: don't try to make port unbuffered until its
stream has been set.
(scm_duplicate_port): deleted, there's now an implementation in
boot-9.scm.
(scm_primitive_dup2): do nothing if newfd == oldfd.

* boot-9.scm (dup->port, dup->inport, dup->outport, dup->fdes,
dup, fdes->inport, fdes->outport, port->fdes): new procedures.
(duplicate-port): was a C primitive, now it's here.
(move->fdes): allow the first argument to be a file descriptor.
Return the modified port or file descriptor (was unspecified.)
1997-07-21 08:52:26 +00:00
Gary Houston
a9488d1218 * filesys.c (scm_close): oops, don't call SCM_INUM twice on the
argument.

* ioext.h: new prototypes.
* ioext.c (scm_primitive_dup, scm_primitive_dup2): new procedures.
1997-07-20 10:03:26 +00:00
Gary Houston
eadd48de2b * fluids.c (next_fluid_num): don't do
SCM_THREAD_CRITICAL_SECTION_START/END unless USE_THREADS is defined.

* ports.h: prototypes too.
* ports.c (scm_mode_bits, scm_port_mode): moved from fports.c.

* fports.h: prototype too.
* fports.c (scm_evict_ports): moved from ioext.c.

* ports.c (scm_close_port): return a boolean instead of unspecified.
throw an error if an error other than EBADF occurs.

* filesys.h: scm_close prototype.
* filesys.c (scm_close): new procedure, can close file descriptors
and ports (scsh compatible).

* ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
optional argument.
1997-07-20 05:49:39 +00:00
Gary Houston
9c29ac668f * ports.c (scm_flush_all_ports): SCM_PROC incorrectly allowed an
optional argument.
1997-07-19 18:21:55 +00:00
Marius Vollmer
9482a297ec *** empty log message *** 1997-07-18 16:26:47 +00:00
Marius Vollmer
7f47d2d877 *** empty log message *** 1997-07-18 14:45:38 +00:00
Marius Vollmer
b08323d190 * smob.h: Include "libguile/print.h" to make scm_print_state
visible.
1997-07-18 14:39:52 +00:00
Marius Vollmer
7b4e5a7ae3 * root.h: Added "fluids" member to scm_root_state.
* root.c: Include "fluids.h".  (scm_mark_root): Mark "fluids".
(scm_make_root): Call scm_copy_fluids to make fluid bindings
unique for the new root when it has a parent.
1997-07-18 14:37:36 +00:00
Marius Vollmer
d9dfcf8084 * root.c: Include "fluids.h". (scm_mark_root): Mark "fluids".
(scm_make_root): Call scm_copy_fluids to make fluid bindings
unique for the new root when it has a parent.
1997-07-18 14:35:58 +00:00