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

2151 commits

Author SHA1 Message Date
Mikael Djurfeldt
263a691f04 * options.c (scm_options, scm_init_options): GC-protect option
values of type SCM.  (Thanks to Telford Tendys.)
1998-11-03 16:09:11 +00:00
Mikael Djurfeldt
d79fec7537 * list.c, list.h (scm_delq1_x, scm_delv1_x, scm_delete1_x): New
procedures: Same as scm_delq_x et al, but delete maximally one
element.
1998-11-03 16:08:53 +00:00
Mikael Djurfeldt
82dc9f574f * list.c (scm_sloppy_memq): Removed sloppy_mem_check.
(scm_memq, scm_memv, scm_member): Do argument checking *before*
starting to search the list.  Removed call to sloppy_mem_check.
* list.c, list.h (scm_delq1_x, scm_delv1_x, scm_delete1_x): New
procedures: Same as scm_delq_x et al, but delete maximally one
element.
1998-11-03 16:08:28 +00:00
Mikael Djurfeldt
83336ffd60 Removed some #if 0 which slipped through in previous change 1998-11-01 16:57:40 +00:00
Mikael Djurfeldt
99c8588f03 Added Thien-Thi Nguyen 1998-11-01 04:53:34 +00:00
Mikael Djurfeldt
0b6925feca * emacs.scm (format): Bugfix: Handle multiple arguments
correctly.  (Thanks to Thien-Thi Nguyen.)
1998-11-01 04:52:58 +00:00
Mikael Djurfeldt
d0b7bad785 * eval.c: Don't #define scm_lookupcar to scm_lookupcar1. Instead
make sure that there always is a "real" scm_lookupcar.
1998-11-01 04:40:33 +00:00
Mikael Djurfeldt
d1306c276b Updated 1998-11-01 04:16:40 +00:00
Mikael Djurfeldt
e4eae9b166 *** empty log message *** 1998-10-31 16:50:24 +00:00
Mikael Djurfeldt
2055a1bcd3 * boot-9.scm (exit-hook): New hook: Is run at the very end of an
interactive session.
1998-10-31 16:46:55 +00:00
Mikael Djurfeldt
20a3a88153 * readline.scm (readline-port): Maybe read history; Maybe write
history at exit (add to exit-hook).
1998-10-31 16:45:51 +00:00
Mikael Djurfeldt
9cb84fbb0c *** empty log message *** 1998-10-31 16:42:33 +00:00
Mikael Djurfeldt
254de08949 * readline.c (read-history, write-history): New procedures. 1998-10-31 16:40:46 +00:00
Mikael Djurfeldt
ad382b2dcc * read.c, read.h (history-length, history-file): New read options.
(scm_read_options): Stifle history to history length.
1998-10-31 16:40:15 +00:00
Mikael Djurfeldt
64921cdd76 * evalext.c (sequence->list): Fix 1998-10-31 14:18:07 +00:00
Mikael Djurfeldt
35c969658f *** empty log message *** 1998-10-31 13:59:23 +00:00
Mikael Djurfeldt
ddeae7caff * debug.c, print.c: Added #include "macros.h". 1998-10-31 13:57:13 +00:00
Mikael Djurfeldt
99027e3c78 * macros.c, macros.h: New files.
(procedure->syntax, procedure->macro, procedure->memoizing-macro,
macro?, macro-type, macro-name, macro-transformer): Moved from
eval.c
(scm_make_synt): Moved from eval.c
* Makefile.am: Added evalext.c, evalext.h, macros.c, macros.h.
1998-10-31 13:32:21 +00:00
Mikael Djurfeldt
40cf7e92b2 * evalext.c, evalext.h: New files. Contain non-R5RS things
having to do with evaluation.
* evalext.c (serial-map): New procedure: Version of `map' which
guarantees that the procedure is applied to the lists in serial
order.
(sequence->list): New syntax: Version of `begin' which returns a
list of the results of the body forms instead of the result of the
last body form.
(scm_definedp, scm_m_undefine): Moved from eval.c
* evalext.h (scm_m_sequence_to_list): Added declaration.
* Makefile.am: Added evalext.c, evalext.h, macros.c, macros.h.
1998-10-31 13:31:25 +00:00
Mikael Djurfeldt
d41b3904a1 Documented serial-map and sequence->list. 1998-10-31 13:29:25 +00:00
Mikael Djurfeldt
4ecb84284b *** empty log message *** 1998-10-31 13:09:27 +00:00
Mikael Djurfeldt
09e3ccd790 * Makefile.am: Added evalext.c, evalext.h, macros.c, macros.h. 1998-10-31 13:07:55 +00:00
Mikael Djurfeldt
c2c82fba2f * procs.c, procs.h (procedure-documentation): Moved from eval.c. 1998-10-31 13:07:16 +00:00
Mikael Djurfeldt
27a69f9382 * init.c (scm_boot_guile_1): Added calls to scm_init_macros and
scm_init_evalext.
1998-10-31 13:06:08 +00:00
Mikael Djurfeldt
2a758f6f91 * eval.h (scm_macro_eval_x): Removed declaration.
* eval.c, eval.h (SCM_EVALIM): Renamed from EVALIM.
(SCM_XEVAL, SCM_XEVALCAR): Renamed from XEVAL, XEVALCAR.
1998-10-31 13:05:43 +00:00
Mikael Djurfeldt
6cb702daed * eval.c (scm_s_expression, scm_s_test, scm_s_body,
scm_s_bindings, scm_s_variable, scm_s_clauses, scm_s_formals):
Renamed and made global.
* eval.c, eval.h (SCM_EVALIM): Renamed from EVALIM.
(SCM_XEVAL, SCM_XEVALCAR): Renamed from XEVAL, XEVALCAR.
* evalext.c (serial-map): New procedure: Version of `map' which
guarantees that the procedure is applied to the lists in serial
order.
(sequence->list): New syntax: Version of `begin' which returns a
list of the results of the body forms instead of the result of the
last body form.
(scm_definedp, scm_m_undefine): Moved from eval.c
* macros.c, macros.h: New files.
(procedure->syntax, procedure->macro, procedure->memoizing-macro,
macro?, macro-type, macro-name, macro-transformer): Moved from
eval.c
(scm_make_synt): Moved from eval.c
* procs.c, procs.h (procedure-documentation): Moved from eval.c.
1998-10-31 13:05:07 +00:00
Mikael Djurfeldt
41d3b325c7 Added #include "macros.h" 1998-10-31 13:04:12 +00:00
Mikael Djurfeldt
55254a6a6e *** empty log message *** 1998-10-30 08:58:55 +00:00
Mikael Djurfeldt
4d362308da *** empty log message *** 1998-10-30 08:25:05 +00:00
Mikael Djurfeldt
e6a207b366 * ioext.c (scm_ftell): Use SCM_N_READY_CHARS to correct position. 1998-10-30 08:24:23 +00:00
Mikael Djurfeldt
64e764482e * ports.c (scm_add_to_port_table, scm_remove_from_port_table):
Handle new fields.
(scm_generic_fgets), fports.c (local_fgets): Use a loop
to read unread characters.  Use SCM_TRY_CLRDY instead of
SCM_CLRDY.
1998-10-30 08:24:07 +00:00
Mikael Djurfeldt
b8af68db88 * genio.c (scm_getc): Use SCM_TRY_CLRDY instead of SCM_CLRDY.
* genio.c, genio.h (scm_ungets): New function.
* genio.c (scm_puts): Removed mysterious TRANSCRIPT_SUPPORT code
sections.
1998-10-30 08:23:52 +00:00
Mikael Djurfeldt
327ff831a0 * genio.c, genio.h (scm_ungets): New function. 1998-10-30 08:23:33 +00:00
Mikael Djurfeldt
ee1e7e13b3 * ports.h, ports.c (scm_unread_string): New procedure.
(scm_grow_port_cbuf): New function.
* ports.c (scm_add_to_port_table, scm_remove_from_port_table):
Handle new fields.
(scm_generic_fgets), fports.c (local_fgets): Use a loop
to read unread characters.  Use SCM_TRY_CLRDY instead of
SCM_CLRDY.
1998-10-30 08:23:13 +00:00
Mikael Djurfeldt
0855ef7154 * ports.h (SCM_CLRDY, SCM_CUNGET, SCM_CGETUN): Rewritten.
(SCM_TRY_CLRDY): New macro: Only clear the first unread
character. (SCM_CLRDY clears all.)
(SCM_N_READY_CHARS): New macro: Returns number of unread
characters in a port.  Returns wrong answer if SCM_CRDYP is false.
(struct scm_port_table): New fields: `entry' contains port table
index, `cp' points to last unread char, `cbuf' is the buffer for
unread chars, `cbufend' points after end of the character buffer.
* ports.h, ports.c (scm_unread_string): New procedure.
(scm_grow_port_cbuf): New function.
1998-10-30 08:22:50 +00:00
Mikael Djurfeldt
cad4d45bd6 * readline.scm (make-readline-port): Bugfixed last change... 1998-10-30 06:30:00 +00:00
Mikael Djurfeldt
dd195c9322 Hrmmph.. 1998-10-28 20:01:49 +00:00
Mikael Djurfeldt
24bf9166d2 * readline.scm (make-readline-port): Don't set prompt to "... " if
read line was empty.
1998-10-28 20:00:37 +00:00
Mikael Djurfeldt
22c88b3ff5 * threads.h (scm_thread_sleep, scm_thread_usleep): Fixed
declarations. (Thanks to Russ McManus.)
1998-10-28 10:32:03 +00:00
Jim Blandy
dbdd0c16ab *** empty log message *** 1998-10-27 12:06:50 +00:00
Mikael Djurfeldt
3ffc7a360f * numbers.c (num2long): As a software archeologist, I'm proud of
this finding! :) Preliminary dating suggests an almost 4 year old
remnant from the SCM ancestor.  The sample has been removed from
the finding site and is now safely stored in the repository.
* numbers.h: Removed prototype for num2long.
* unif.c (scm_array_set_x): Use scm_num2long instead of num2long.
* gh_data.c (gh_scm2doubles): Make it possible to pass result
array as second arg.
(gh_chars2byvect, gh_shorts2svect, gh_floats2fvect, gh_scm2chars,
gh_scm2shorts, gh_scm2longs, gh_scm2floats): New functions.
* gh.h: Updated and added prototypes.
* gh_data.c (gh_ints2scm): Handle integers outside INUM limits.
1998-10-26 07:46:54 +00:00
Jim Blandy
fe1a46f0e2 * gc.h: Remove all uses of SCM_P. (Thanks to Richard Polton.) 1998-10-24 20:56:42 +00:00
Jim Blandy
cc720f64d8 *** empty log message *** 1998-10-24 20:56:13 +00:00
Jim Blandy
e9b6a0fb97 Bug reports from Russ McManus:
* guile-snarf.in: If the CPP environment variable is set, use that
as the C preprocessor, instead of the preprocessor autoconf
found.
* snarf.h (SCM_PROC): Cast the function pointer passed to
scm_make_gsubr, to satisfy C++.
1998-10-24 20:55:23 +00:00
Jim Blandy
63a646c5c5 * guile-snarf.in: Never generate an empty file. (Thanks to
Richard Polton.)
Bug reports from Russ McManus:
* guile-snarf.in: If the CPP environment variable is set, use that
as the C preprocessor, instead of the preprocessor autoconf
found.
* snarf.h (SCM_PROC): Cast the function pointer passed to
scm_make_gsubr, to satisfy C++.
1998-10-24 20:55:15 +00:00
Jim Blandy
a08377c3b7 * gh_eval.c (gh_eval_str_with_catch, gh_eval_file_with_catch):
Use the handler passed, instead of ignoring it and using
gh_standard_handler.  (Thanks to Etienne Bernard.)
1998-10-24 20:54:57 +00:00
Jim Blandy
47d0411b18 * gh.h (gh_enter, gh_new_procedure0_0, gh_new_procedure0_1,
gh_new_procedure0_2, gh_new_procedure1_0, gh_new_procedure1_1,
gh_new_procedure1_2, gh_new_procedure2_0, gh_new_procedure2_1,
gh_new_procedure2_2, gh_new_procedure3_0, gh_new_procedure4_0,
gh_new_procedure5_0): Specify argument types, to appease C++
compilers.  (Thanks to Brad Bowman.)
1998-10-24 20:54:21 +00:00
Jim Blandy
e40ffcb6bd * configure.in: Call AM_PROG_CC_STDC, to see what flags we should
pass the compiler to make it support ANSI.  (Thanks to Bernard
Urban.)
* aclocal.m4, configure: Regenerated.
1998-10-24 20:53:50 +00:00
Jim Blandy
5469b4a131 *** empty log message *** 1998-10-20 15:20:35 +00:00
Jim Blandy
be1cd0966e * ports.h: Put text after #endif in comment. (Thanks to Nicolas
Neuss.)
1998-10-20 15:19:14 +00:00