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

1245 commits

Author SHA1 Message Date
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
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
dd195c9322 Hrmmph.. 1998-10-28 20:01:49 +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
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
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
Jim Blandy
1f6fe22ab8 *** empty log message *** 1998-10-19 21:38:15 +00:00
Jim Blandy
7dc6e7547a * __scm.h, alist.c, async.c, async.h, backtrace.h, chars.c,
continuations.c, debug.c, debug.h, dynl-dl.c, dynl.c, dynl.h,
dynwind.c, dynwind.h, eq.c, error.c, error.h, eval.c, eval.h,
feature.c, filesys.c, filesys.h, fports.c, fports.h, gc.c, gc.h,
genio.c, genio.h, gh.h, gh_data.c, gsubr.c, gsubr.h, hash.c,
hashtab.c, init.c, init.h, ioext.c, ioext.h, kw.c, libguile.h,
list.c, list.h, load.c, load.h, mallocs.c, markers.c,
mit-pthreads.c, net_db.c, numbers.c, numbers.h, options.c,
ports.c, ports.h, posix.c, posix.h, print.c, print.h, procprop.c,
procprop.h, procs.c, procs.h, ramap.c, ramap.h, regex-posix.c,
regex-posix.h, root.c, root.h, scmsigs.c, scmsigs.h, script.c,
script.h, simpos.c, simpos.h, smob.c, smob.h, snarf.h, socket.c,
srcprop.c, stackchk.c, stackchk.h, stacks.c, stime.c, stime.h,
strings.c, strings.h, strports.c, struct.c, struct.h, symbols.c,
symbols.h, tags.h, threads.c, throw.h, unif.c, variable.c,
vectors.c, vectors.h, version.h, vports.c, weaks.c: Update
copyright years.
1998-10-19 21:36:50 +00:00
Jim Blandy
e1c01129f4 Correct copyright notice. 1998-10-19 15:26:06 +00:00
Jim Blandy
2764bd992b Added copyright notice. 1998-10-19 15:25:43 +00:00
Jim Blandy
8cd57bd061 *** empty log message *** 1998-10-19 14:13:15 +00:00
Jim Blandy
f4be1689e1 *** empty log message *** 1998-10-19 13:49:40 +00:00
Jim Blandy
440e7b07bd * script.c (scm_compile_shell_switches): Define
use-emacs-interface in the root module, so the repl code can see
it.  See today's change to top-repl in ice-9/boot-9.scm.
1998-10-19 13:45:39 +00:00
Jim Blandy
6047d269f5 * filesys.c (set_element, get_element): Make sure that `element'
is a cell before applying SCM_FPORTP to it.  (Thanks to Jost
Boekemeier and Jorgen "forcer" Schaefer.)
1998-10-19 12:15:46 +00:00
Jim Blandy
35fd439417 * chars.c (scm_charnames): In ASCII character name table, make
newlines print as #\newline by default, not #\nl.
1998-10-18 19:55:39 +00:00
Jim Blandy
4b422a5a0f * Makefile.am (libguile_la_SOURCES, BUILT_SOURCES): Put these in
alphabetical order.  Oh thrills.  But it helps me know how far
along in the compilation I am.
* Makefile.in: Regenerated.
1998-10-18 19:52:21 +00:00
Mikael Djurfeldt
05c33d09c6 * unif.c (scm_raprin1): Changed print syntax for byte vectors from
#bytes(...) to #y(...), and syntax for short vectors from
#short(...) to #h(...).  This may seem nutty, but, like the other
uniform vectors, byte vectors and short vectors want to have the
same print and read syntax (and, more basic, want to have read
syntax!).  Changing the read syntax to use multiple characters
after the hash sign breaks with the conventions used in R5RS and
the conventions used for the other uniform vectors.  It also
introduces complexity in the current reader, both on the C and
Scheme levels.  (The Right solution is probably to change the
syntax and prototypes for uniform vectors entirely.)
1998-10-18 12:46:27 +00:00
Jim Blandy
1aab20acfb *** empty log message *** 1998-10-17 18:13:38 +00:00
Jim Blandy
d9803e92ba Don't use local_fgets on sockets; ftell doesn't work on sockets.
(Thanks to Jorgen "forcer" Schaefer.)
* ports.h (SCM_NOFTELL): New flag.
* fports.c (local_fgets): If it's set, use the generic fgets.
* socket.c (scm_socket): Set SCM_NOFTELL on the ports we produce.
1998-10-17 18:10:30 +00:00
Mikael Djurfeldt
97c524bd4a * script.c (scm_compile_shell_switches): Add handling of -q switch
(inhibit loading of user init file).
(scm_shell_usage): Add usage text for -q switch.
(scm_compile_shell_switches): Always load user init file first if
it is loaded at all.
1998-10-17 08:20:27 +00:00
Jim Blandy
70445040f6 *** empty log message *** 1998-10-16 10:09:18 +00:00
Jim Blandy
3fd207d759 * regex-posix.c (scm_regexp_exec): Add a cast to remove a
signed/unsigned comparison.
1998-10-16 10:09:04 +00:00
Jim Blandy
285403bba7 * Makefile.in: Regenerated, after change to qthreads.m4. 1998-10-16 09:58:29 +00:00
Jim Blandy
a2fc27b557 * stime.c: The CPP hair to determine a value for CLKTCK is weird,
and is now broken under NetBSD.  I can't fathom what it's trying
to do, so I've replaced it with something that I do understand,
which seems to work, and which isn't broken on NetBSD.  "Progress?
You Decide."  (Thanks to Perry Metzger.)
1998-10-15 22:43:17 +00:00
Jim Blandy
6e6e2bbc80 *** empty log message *** 1998-10-15 18:23:39 +00:00
Jim Blandy
f3667f526d Warning fixes from Greg Harvey:
* unif.c (scm_array_set_x): initializer for pos
* throw.c (scm_ithrow): added initializer for jmpbuf (SCM_UNDEFINED)
* struct.c (scm_struct_ref, scm_struct_set_x): Added
initializers for field_type, since EGCS so desparately wants to
play dumb
* debug.h (scm_make_gloc, scm_gloc_p, scm_make_iloc, scm_memcons,
scm_mem_to_proc, scm_proc_to_mem, scm_debug_hang): Added prototypes
when GUILE_DEBUG is defined.
* dynwind.h (scm_wind_chain): Same.
* ports.h (scm_pt_size, scm_pt_member): Same.
* print.h (scm_current_pstate): Same.
* procs.h (scm_make_cclo): Same.
1998-10-15 14:35:35 +00:00
Jim Blandy
a437d8a2a8 *** empty log message *** 1998-10-14 21:25:51 +00:00
Jim Blandy
05f92e0f45 Handle short and long long uniform arrays properly. (Thanks to
Clark McGrew.)
* ramap.c (scm_ra_matchp, scm_array_fill_int, scm_array_index_map_x,
raeql_1): Add cases for scm_tc7_svect (short vectors) and
scm_tc7_llvect (long long vectors).
1998-10-14 21:24:44 +00:00
Jim Blandy
c02daa098d Change the way libguile and boot-9.scm are timestamped, to try to
get rid of these spurious mismatch warnings.  Now both
libguile/versiondat.h and ice-9/version.scm are generated directly
by the configuration process, rather than having version.scm
generated directly, and libguile/versiondat.h generated by the
Makefile, which is generated by configure.  It seems that
sometimes the Makefile would change, but versiondat.h depends on
Makefile.in, not Makefile, so it wouldn't get rebuilt.
* Makefile.am (versiondat.h): Target removed; this is generated
directly by the configure script now.
(BUILT_SOURCES): Remove versiondat.h.
* versiondat.h.in: New file, transformed by the configure script
into versiondat.h.
* Makefile.in: Regenerated.
1998-10-14 19:22:10 +00:00
Jim Blandy
731a0a688a *** empty log message *** 1998-10-14 07:32:28 +00:00
Jim Blandy
cf7c17e976 * (__scm.h, alist.c, eval.c, feature.c, gsubr.c, numbers.c,
options.c): Rename RECKLESS -> SCM_RECKLESS, CAUTIOUS ->
SCM_CAUTIOUS; this way, 1) there's only one version of each flag
to define (we used to have both RECKLESS and SCM_RECKLESS), and 2)
if we want to use them in a header file some day, we can.  (Thanks
to Michael Livshin.)
1998-10-14 07:32:13 +00:00
Jim Blandy
ae6f9e24ce *** empty log message *** 1998-10-13 23:56:29 +00:00