Mikael Djurfeldt
67da6c5715
* Makefile.am (ice9_sources): Add emacs.scm.
1998-05-19 19:48:11 +00:00
Mikael Djurfeldt
56600c45d8
Fixed.
1998-05-13 00:34:36 +00:00
Mikael Djurfeldt
a5587d03f6
Updated
1998-05-13 00:27:23 +00:00
Mikael Djurfeldt
3d4981fad9
Some further fixes.
1998-05-13 00:01:04 +00:00
Mikael Djurfeldt
1b558afda9
*** empty log message ***
1998-05-13 00:00:19 +00:00
Mikael Djurfeldt
b05d0b94d6
* readline.scm: Use the new readline facilities: Add the
...
possibility to control input and output ports; Add apropos
completion.
1998-05-13 00:00:02 +00:00
Mikael Djurfeldt
dc5c203863
* boot-9.scm: Antirevert Jim's readline code which he reverted
...
19971027 and adapt it to the current readline interface.
* boot-9.scm (top-repl): Only enable readline if not using the
Emacs interface; Only use repl prompt when using the readline port
from repl-read. (We don't want to see it when calling `read'.)
* boot-9.scm (remove-hook!): Parenthesis bug.
1998-05-12 23:59:21 +00:00
Mikael Djurfeldt
9c5d232c82
Bugfixes for yesterdays revision.
1998-05-12 21:41:44 +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
d40c16dadf
Updated
1998-05-12 00:49:26 +00:00
Mikael Djurfeldt
dd15c21058
* init.c (scm_boot_guile_1), readline.c: Test for
...
HAVE_RL_GETC_FUNCTION instead of HAVE_LIBREADLINE. (Need to
assure that we have version >= 2.1.)
1998-05-12 00:48:58 +00:00
Mikael Djurfeldt
dd07fb6654
*** empty log message ***
1998-05-12 00:48:38 +00:00
Mikael Djurfeldt
c700db4f8f
* configure.in: Added test for rl_getc_function. Warn if
...
libreadline is found but not this function.
1998-05-12 00:48:15 +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
5e334bd3a0
scm_usleep: Don't define j if not used.
1998-05-11 01:17:10 +00:00
Mikael Djurfeldt
0d7588d20a
* readline.c (scm_add_history): Bugfix: Do strdup before giving
...
away the string to add_history.
(completion_function): Do completion for readline.
(scm_filename_completion_function): New procedure: Filename
completer.
(current_input_getc): New function. Use this one instead of
standard getc from readline.
1998-05-11 01:16:15 +00:00
Mikael Djurfeldt
f246e585bb
* boot-9.scm: Load readline module if readline is present.
...
* readline.scm (apropos-completion-function): New procedure:
Symbolic completion. (Thanks to Andrew Archibald!)
1998-05-11 01:15:26 +00:00
Mikael Djurfeldt
95bdd85dc6
Added Andrew Archibald
1998-05-11 01:14:23 +00:00
Mikael Djurfeldt
4c787b5283
* configure.in: Replaced some AC_CHECK_FUNC --> AC_CHECK_FUNCS so
...
that suitable HAVE_<function name> symbols get defined.
1998-05-06 14:45:11 +00:00
Mikael Djurfeldt
3b7284cd0e
Fix
1998-05-04 12:05:37 +00:00
Mikael Djurfeldt
f714ca8e67
* boot-9.scm (process-define-module): Added keyword use-syntax.
1998-05-04 11:44:13 +00:00
Mikael Djurfeldt
8bb51def7d
*** empty log message ***
1998-05-04 11:33:35 +00:00
Mikael Djurfeldt
eb545bd9b9
* procprop.h (scm_sym_arity): New symbol.
1998-05-04 11:33:14 +00:00
Mikael Djurfeldt
67e6065510
* procprop.c (scm_i_procedure_arity): New function. Returns arity
...
of procedure.
(scm_procedure_properties): Modified to return arity together with
other properties.
(scm_procedure_property): Added the read-only property `arity'.
(scm_set_procedure_property_x): It is an error to set the `arity'
property.
1998-05-04 11:32:58 +00:00
Mikael Djurfeldt
b6d850ad9c
* objects.h (SCM_METACLASS_OPERATOR_LAYOUT, SCM_ENTITY_LAYOUT):
...
Made procedure slots read-only.
1998-05-04 11:32:44 +00:00
Mikael Djurfeldt
47b210500b
* objects.c (scm_set_object_procedure_x): New procedure: Use this
...
to set the dispatch procedure of an operator or entity object.
1998-05-04 11:32:30 +00:00
Mikael Djurfeldt
dc0938d8a4
* gsubr.h, gsubr.c: Moved macros from gsubr.c to gsubr.h and added
...
prefix SCM_; Made f_gsubr_apply global and added prefix scm_.
1998-05-04 11:32:05 +00:00
Mikael Djurfeldt
65e417214c
* eval.c (SCM_CEVAL): Moved scm_tc7_contin case above
...
scm_tcs_cons_gloc case in zero args switch; Fixed args
construction for operators in scm_tcs_cons_gloc case in two args
switch.
1998-05-04 11:31:45 +00:00
Mikael Djurfeldt
c716d9fcf2
Updated
1998-05-02 22:27:11 +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
c153090d62
Updated
1998-05-02 16:25:31 +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
ce874f2db7
* scmsigs.c (scm_usleep): New procedure; Declare usleep if it
...
isn't found in the OS.
1998-04-20 00:40:09 +00:00
Mikael Djurfeldt
7105a806ee
Updated
1998-04-20 00:39:59 +00:00
Mikael Djurfeldt
6d8d2debd7
* iselect.h: #define scm_internal_select select if GUILE_ISELECT
...
isn't enabled. (Thought that I had made this change ages ago...)
1998-04-20 00:39:45 +00:00
Mikael Djurfeldt
b8ff5fe924
* iselect.c: Declare bzero if not defined by OS.
1998-04-20 00:39:31 +00:00
Mikael Djurfeldt
2c4e1a3484
* coop.c: Changed return type of usleep to int.
1998-04-20 00:39:15 +00:00
Mikael Djurfeldt
64e121dca3
* configure.in: Check for usleep; Define DECLARE_BZERO and
...
DECLARE_USLEEP on Solaris 2.5 since it supplies those functions
without declaring them.
1998-04-20 00:38:46 +00:00
Mikael Djurfeldt
17f3270548
* acconfig.h: Added DECLARE_BZERO, DECLARE_USLEEP
1998-04-20 00:38:18 +00:00
Mikael Djurfeldt
f83e27370c
* continuations.c (scm_make_cont), debug.c (scm_make_memoized,
...
scm_make_debugobj), eval.c (scm_makprom): SCM_DEFER/ALLOW_INTS -->
A section.
* __scm.h: Start the long-term project of moving to POSIX threads.
Phase 1: Classification of all critical sections.
(SCM_ENTER_A_SECTION, SCM_EXIT_A_SECTION): New macros: Delimiters
for A sections. (See comments in __scm.h for details.)
1998-04-19 20:16:36 +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
3ede541d15
* nonblocking.scm: Removed. libguile is now inherently
...
nonblocking through the use of scm_internal_select.
* emacs.scm: Removed use of nonblocking.scm.
* gwish.scm, gtcl.scm: Removed. tcltk.scm has made these
obsolete.
1998-04-19 01:22:44 +00:00
Mikael Djurfeldt
9dca3959bd
* 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 01:17:26 +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
90ff3ec5f6
* Makefile.am (Makefile.am): Replaced THREAD_LIBS --> GUILE_LIBS
...
in generation of libpath.h.
1998-04-18 21:58:24 +00:00
Mikael Djurfeldt
3822dd6102
*** empty log message ***
1998-04-18 21:57:51 +00:00