Mikael Djurfeldt
4b8d84c951
Updated
1998-07-16 22:51:18 +00:00
Mikael Djurfeldt
240ed1e5f3
* eval.c (scm_copy_tree): Removed ability to copy vectors.
1998-07-16 22:38:36 +00:00
Mikael Djurfeldt
5ef810229d
*** empty log message ***
1998-07-12 13:26:17 +00:00
Mikael Djurfeldt
212d45b8e9
*** empty log message ***
1998-07-12 02:28:33 +00:00
Mikael Djurfeldt
43eeb5a648
*** empty log message ***
1998-07-12 00:13:07 +00:00
Mikael Djurfeldt
9d0b279fee
* numbers.h (SCM_NUM2DBL): New macro. Complements SCM_NUMBERP.
...
This macro is useful in applications.
1998-07-02 16:39:44 +00:00
Mikael Djurfeldt
dbb25e7f71
Update
1998-06-22 11:14:26 +00:00
Mikael Djurfeldt
74d6650d3a
Updated
1998-06-18 21:54:44 +00:00
Mikael Djurfeldt
10ccfad75f
* ioext.c (scm_isatty_p): Accept any kind of data as argument. If
...
not a tty, return #f.
1998-06-09 21:57:26 +00:00
Mikael Djurfeldt
391aebfc7c
Updated
1998-06-09 20:28:13 +00:00
Mikael Djurfeldt
6dabf6a95c
*** empty log message ***
1998-06-07 02:14:42 +00:00
Mikael Djurfeldt
daca28167f
* readline.c (rl_cleanup_after_signals, rl_free_line_state): New
...
readline functions to come in release 2.3. (Thanks to Chet
Ramey.)
(handle_errors): Use the above functions.
1998-05-19 20:43:42 +00:00
Mikael Djurfeldt
56600c45d8
Fixed.
1998-05-13 00:34:36 +00:00
Mikael Djurfeldt
be0ea98851
* readline.c: Improvements for readline support: Handle errors
...
better; Implement before-read-hook.
1998-05-12 00:52:31 +00:00
Mikael Djurfeldt
e158e4f465
* throw.c, throw.h (scm_handle_by_throw): New function: This
...
handler throws errors to next handler on the dynwind chain.
1998-05-11 01:18:41 +00:00
Mikael Djurfeldt
8bb51def7d
*** empty log message ***
1998-05-04 11:33:35 +00:00
Mikael Djurfeldt
104d453328
* fluids.c: Removed use of assert.h (in order to avoid
...
__eprintf).
* Makefile.am (libguile_la_LDFLAGS): Added -export-dynamic.
* dynl.c (maybe_drag_in_eprintf): Disabled through #ifdef 0.
1998-05-02 22:26:44 +00:00
Mikael Djurfeldt
680ed4a802
* eval.c (SCM_CEVAL): Do more thorough argument checking. This
...
change makes the evaluator safer at the cost of evaluation speed.
It handles the case when the user has added a non-immediate
improper end of the application form, e.g., `(+ 0 . x)'.
(Earlier only cases like `(+ 0 . 0)' were handled.) I've tried to
minimize the extra cost as much as possible. The new code is
enclosed in #ifdef CAUTIOUS regions. NOTE: This also fixes the
problem with structs planted directly in the code (e.g. by a
macro). This no longer causes segmentation fault. (Thanks to
Eric Hanchrow.)
* eval.c, eval.h (scm_eval_args, scm_deval_args): Take one extra
arg `proc' in order to be able to throw errors; New argument
checking code.
1998-05-02 16:26:21 +00:00
Mikael Djurfeldt
2c36126d13
*** empty log message ***
1998-04-24 23:51:34 +00:00
Mikael Djurfeldt
0935d604b5
* scmsigs.c: Declare usleep as returning void on some systems.
...
(scm_usleep): Return SCM_INUM0 on those systems.
* coop.c (usleep): Return void on some systems.
* configure.in: Define USLEEP_RETURNS_VOID on some systems.
1998-04-24 23:36:04 +00:00
Mikael Djurfeldt
f1a5fa3c92
* Makefile.am (libguile_la_LDFLAGS): Removed redundant -rpath.
1998-04-20 00:40:43 +00:00
Mikael Djurfeldt
c3e09ef939
* dynl.c (scm_must_free_argv): Fixed memory leak due to negated
...
condition. (Thanks to John Tobey.)
* dynl.c: Only check that HAVE_DLOPEN is defined before loading
dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
1998-04-19 20:15:49 +00:00
Mikael Djurfeldt
26c41b9956
* dynl.c: Only check that HAVE_DLOPEN is defined before loading
...
dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
* configure.in: Define HAVE_DLOPEN also when HAVE_LIBDL is
defined.
1998-04-19 00:36:12 +00:00
Mikael Djurfeldt
28795b1f48
* script.c (scm_compile_shell_switches): Bugfix: Don't discount i
...
from argc if argc was 0 initially.
1998-04-18 21:58:47 +00:00
Mikael Djurfeldt
f2e5c92c98
* Makefile.am (libguile_la_LDFLAGS): Bumped version number of
...
libguile from 2 to 3.
1998-04-15 12:27:47 +00:00
Mikael Djurfeldt
a3365d4711
* Makefile.am: Added .x-dependencies to variable BUILT_SOURCES.
1998-04-14 09:22:52 +00:00
Mikael Djurfeldt
fc1d67c47b
* unif.c (scm_uniform_vector_ref, scm_cvref, scm_array_set_x,
...
rapr1): Use SCM_UCHARS instead of SCM_CHARS for strings. (Thanks
to Ole Myren Röhne.)
1998-04-12 23:36:54 +00:00
Mikael Djurfeldt
1ba8c23aca
* socket.c: Check for HAVE_UNIX_DOMAIN_SOCKETS instead of
...
UNIX_DOMAIN_SOCKETS. (Thanks to Lauri Alanko.)
1998-04-12 16:27:48 +00:00
Mikael Djurfeldt
6f3067f1e0
* gc.c (scm_gc_sweep): Count cells correctly. (Thanks to Ben
...
Caradoc-Davies.)
1998-04-12 10:23:20 +00:00
Mikael Djurfeldt
1609038c87
* eval.c (SCM_CEVAL, SCM_APPLY): In SCM_IM_APPLY and in the
...
procedure apply: Copy argument lists before pushing them unto the
environment so that the environment won't get mutated due to
manipulation of procedure arguments. This should perhaps be
regarded as a temporary solution until someone finds a more
efficient one. (Thanks to Maciej Stachowiak.)
1998-04-12 10:10:29 +00:00
Mikael Djurfeldt
1abb11b658
* script.c (scm_compile_shell_switches): Use "guile" as default
...
zero arg if argc is NULL.
1998-04-10 19:01:53 +00:00
Mikael Djurfeldt
d0e32dd50d
* script.c (scm_compile_shell_switches): Allow NULL argv if argc
...
is zero. (Thanks to Dirk Herrmann.)
1998-04-02 09:25:00 +00:00
Mikael Djurfeldt
ac67270dcf
*** empty log message ***
1998-03-30 21:04:09 +00:00
Mikael Djurfeldt
d0defdf3aa
* ports.c (scm_add_to_port_table): First line is now line 0
...
(was 1). (Interface changed according to suggestion by Per
Bothner.)
* backtrace.c (display_header): Add 1 to line and column numbers
when presenting them to the user.
1998-03-30 19:22:16 +00:00
Mikael Djurfeldt
701191ba9c
* throw.c (handler_message): Print message on current error port
...
instead of default error port. (Thanks to Maciej Stachowiak.)
1998-03-28 20:26:17 +00:00
Gary Houston
67fe060ed5
* ports.c (scm_add_to_port_table): allocate in units of
...
struct scm_port_table *, not struct scm_port_table.
* posix.c (scm_close_pipe): remove the port from the port table
and mark as closed.
Thanks to Rob Engle for both fixes.
1998-03-03 10:11:13 +00:00
Mikael Djurfeldt
d90ca38d06
* iselect.h, iselect.c, coop.c, coop-threads.c, coop-threads.h,
...
coop-defs.h, throw.c, backtrace.c: Added new copyright year 1998.
1998-02-06 18:55:29 +00:00
Mikael Djurfeldt
492960a4f4
* throw.h: Removed jmpbuf arg in scm_catch_body_t.
...
* backtrace.c (display_error_body, display_backtrace_body),
coop-threads.c (scheme_body_bootstrip, c_body_bootstrip),
gh_eval.c (eval_str_wrapper, eval_file_wrapper), init.c
(invoke_main_func), root.c (cwdr_body), throw.c (cwss_body,
scm_body_thunk, hbpca_body): Removed the second jmpbuf arg on body
functions.
* throw.c (scm_internal_catch, scm_internal_lazy_catch): Bodies
don't receive the jmpbuf arg anylonger.
(scm_catch): Don't accept a #f tag.
(scm_throw): Check that key is a symbol.
(scm_ithrow): Don't take a jmpbuf as key. Don't check key arg.
1998-02-02 15:00:59 +00:00
Mikael Djurfeldt
79a85e3b62
* async.c (async_pending): Removed declaration.
1998-01-31 13:30:10 +00:00
Mikael Djurfeldt
c69dfa6575
* coop.c, iselect.c: Since thread switches are now performed with
...
interrupts masked, we can't use the old mechanism of delivering
signals immediately when they arrive. Signals must instead be
delivered when the asyncs run *after* the end of the critical
section in scm_internal_select. But this also means after context
switch so that the signal will be delivered to a different thread.
To avoid this, I have changed the protocol of
coop_wait_for_runnable_thread and friends so that they are allowed
to return the original thread. So, if a signal arrives during
scm_internal_select, we won't any longer be forced do a context
switch, but can remain in the same thread and deliver the signal
to it.
* iselect.c: Small fixes.
1998-01-30 21:08:26 +00:00
Mikael Djurfeldt
6905611f41
*** empty log message ***
1998-01-26 01:43:43 +00:00
Mikael Djurfeldt
3d9352fb80
* error.c (scm_wta): Added support for SCM_ARG6 and SCM_ARG7.
1998-01-25 12:00:47 +00:00
Mikael Djurfeldt
a48b6916e2
* iselect.c: Now several threads can wait on the same file
...
descriptor. The behaviour is compatible with OS select: All
threads waiting for the fd return with the same status.
1998-01-24 01:50:43 +00:00
Mikael Djurfeldt
df366c2615
* coop-threads.c, threads.h (scm_spawn_thread): New function.
...
Can spawn a thread from application C code.
1998-01-23 20:51:47 +00:00
Mikael Djurfeldt
f3a2c4cfe6
* gh.h, gh_data.c (gh_doubles2scm, gh_doubles2dvect,
...
gh_doubles2scm): New functions.
1998-01-20 17:57:01 +00:00
Mark Galassi
770827b0f0
some trivial cleanup
1998-01-16 00:32:28 +00:00
Gary Houston
ef9ff3fd0a
* socket.c (scm_bind): free soka after use.
...
* stime.c (tzvar): new variable.
(setzone, restorezone, scm_localtime, scm_mktime, scm_strftime):
avoid memory leaks when allocating.
1998-01-04 02:50:12 +00:00
Jim Blandy
7a35faf841
*** empty log message ***
1998-01-04 00:31:25 +00:00
Mikael Djurfeldt
b971e6c65c
* eval.c (macro-eval!): Removed. This function was a design bug.
...
It allowed memoized code to leak out to the scheme level. Most
things that you could do with `macro-eval!' can be done with
`local-eval'.
1998-01-02 16:44:05 +00:00
Tim Pierce
377474477c
* fports.c (scm_pipob): Use scm_generic_fgets for line i/o, since
...
scm_fgets now depends on ftell(3) to know how many bytes were
read. Sigh.
1997-12-20 13:52:09 +00:00