* debug.h, debug.c (scm_start_stack): New function. Implements
[bpt/guile.git] / libguile / ChangeLog
CommitLineData
daca2816
MD
11998-05-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2
3 * readline.c (rl_cleanup_after_signals, rl_free_line_state): New
4 readline functions to come in release 2.3. (Thanks to Chet
5 Ramey.)
6 (handle_errors): Use the above functions.
7
be0ea988
MD
81998-05-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
9
10 * readline.c: Improvements for readline support: Handle errors
11 better; Implement before-read-hook.
12
131998-05-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
14
15 * init.c (scm_boot_guile_1), readline.c: Test for
16 HAVE_RL_GETC_FUNCTION instead of HAVE_LIBREADLINE. (Need to
17 assure that we have version >= 2.1.)
18
e158e4f4
MD
191998-05-11 Mikael Djurfeldt <mdj@kenneth>
20
21 * readline.c (scm_add_history): Bugfix: Do strdup before giving
22 away the string to add_history.
56600c45
MD
23 (completion_function): Do completion for readline. (Thanks to
24 Andrew Archibald.)
e158e4f4
MD
25 (scm_filename_completion_function): New procedure: Filename
26 completer.
27 (current_input_getc): New function. Use this one instead of
28 standard getc from readline.
29
30 * throw.c, throw.h (scm_handle_by_throw): New function: This
31 handler throws errors to next handler on the dynwind chain.
32
331998-05-09 Mikael Djurfeldt <mdj@kenneth>
34
35 * scmsigs.c (scm_usleep): Bugfix: Don't define j if it isn't
36 used.
37
8bb51def
MD
381998-05-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
39
40 * procprop.c (scm_i_procedure_arity): New function. Returns arity
41 of procedure.
42 (scm_procedure_properties): Modified to return arity together with
43 other properties.
44 (scm_procedure_property): Added the read-only property `arity'.
45 (scm_set_procedure_property_x): It is an error to set the `arity'
46 property.
47
48 * gsubr.h, gsubr.c: Moved macros from gsubr.c to gsubr.h and added
49 prefix SCM_; Made f_gsubr_apply global and added prefix scm_.
50
51 * procprop.h (scm_sym_arity): New symbol.
52
53 * objects.c (scm_set_object_procedure_x): New procedure: Use this
54 to set the dispatch procedure of an operator or entity object.
55
56 * objects.h (SCM_METACLASS_OPERATOR_LAYOUT, SCM_ENTITY_LAYOUT):
57 Made procedure slots read-only.
58
59 * eval.c (SCM_CEVAL): Moved scm_tc7_contin case above
60 scm_tcs_cons_gloc case in zero args switch; Fixed args
61 construction for operators in scm_tcs_cons_gloc case in two args
62 switch.
63
680ed4a8
MD
641998-05-02 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
65
104d4533
MD
66 * fluids.c: Removed use of assert.h (in order to avoid
67 __eprintf).
68
69 * Makefile.am (libguile_la_LDFLAGS): Added -export-dynamic.
70
71 * dynl.c (maybe_drag_in_eprintf): Disabled through #ifdef 0.
72
680ed4a8
MD
73 * eval.c (SCM_CEVAL): Do more thorough argument checking. This
74 change makes the evaluator safer at the cost of evaluation speed.
75 It handles the case when the user has added a non-immediate
76 improper end of the application form, e.g., `(+ 0 . x)'.
77 (Earlier only cases like `(+ 0 . 0)' were handled.) I've tried to
78 minimize the extra cost as much as possible. The new code is
79 enclosed in #ifdef CAUTIOUS regions. NOTE: This also fixes the
80 problem with structs planted directly in the code (e.g. by a
81 macro). This no longer causes segmentation fault. (Thanks to
82 Eric Hanchrow.)
83
84 * eval.c, eval.h (scm_eval_args, scm_deval_args): Take one extra
85 arg `proc' in order to be able to throw errors; New argument
86 checking code.
87
88 * Removed extra #include "debug.h"
89
0935d604
MD
901998-04-25 Mikael Djurfeldt <mdj@kenneth>
91
92 * scmsigs.c: Declare usleep as returning void on some systems.
2c36126d
MD
93 (scm_usleep): Return SCM_INUM0 on those systems. (Thanks to Julian
94 Satchell.)
0935d604
MD
95
96 * coop.c (usleep): Return void on some systems.
97
f1a5fa3c
MD
981998-04-20 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
99
100 * Makefile.am (libguile_la_LDFLAGS): Removed redundant -rpath.
101
102 * coop.c: Changed return type of usleep to int.
103
104 * scmsigs.c (scm_usleep): New procedure; Declare usleep if it
105 isn't found in the OS.
106
107 * iselect.h: #define scm_internal_select select if GUILE_ISELECT
108 isn't enabled. (Thought that I had made this change ages ago...)
109
110 * iselect.c: Declare bzero if not defined by OS.
111
26c41b99
MD
1121998-04-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
113
c3e09ef9
MD
114 * dynl.c (scm_must_free_argv): Fixed memory leak due to negated
115 condition. (Thanks to John Tobey.)
116
117 * continuations.c (scm_make_cont), debug.c (scm_make_memoized,
118 scm_make_debugobj), eval.c (scm_makprom): SCM_DEFER/ALLOW_INTS -->
119 A section.
120
121 * __scm.h: Start the long-term project of moving to POSIX threads.
122 Phase 1: Classification of all critical sections.
123 (SCM_ENTER_A_SECTION, SCM_EXIT_A_SECTION): New macros: Delimiters
124 for A sections. (See comments in __scm.h for details.)
125
26c41b99
MD
126 * dynl.c: Only check that HAVE_DLOPEN is defined before loading
127 dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
128
28795b1f
MD
1291998-04-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
130
131 * Makefile.am (BUILT_SOURCES): Added cpp_err_symbols.c,
132 cpp_sig_symbols.c, libpath.h and versiondat.h to BUILT_SOURCES
133 (libpath.h, versiondat.h): Replaced dependency on Makefile with
134 dependencies on $(srcdir)/Makefile.in
135 $(top_builddir)/config.status in order to avoid circularity.
136
137 * script.c (scm_compile_shell_switches): Bugfix: Don't discount i
138 from argc if argc was 0 initially.
139
140 * Makefile.am (Makefile.am): Replaced THREAD_LIBS --> GUILE_LIBS
141 in generation of libpath.h.
142
f2e5c92c
MD
1431998-04-15 Mikael Djurfeldt <mdj@nada.kth.se>
144
145 * Makefile.am (libguile_la_LDFLAGS): Bumped version number of
146 libguile from 2 to 3.
147
a3365d47
MD
1481998-04-14 Mikael Djurfeldt <mdj@nada.kth.se>
149
150 * Makefile.am: Added .x-dependencies to variable BUILT_SOURCES.
151
fc1d67c4
MD
1521998-04-13 Mikael Djurfeldt <mdj@kenneth>
153
154 * ports.c (scm_port_line, scm_set_port_line_x, scm_port_column,
155 scm_set_port_column_x, scm_port_filename,
156 scm_set_port_filename_x): Removed optional arguments. Added
157 proper argument checking.
158
159 * eval.c, eval.h, coop.c (scm_eval_stack, SCM_EVAL_STACK): Measure
160 stack size in machine words.
161
162 * unif.c (scm_uniform_vector_ref, scm_cvref, scm_array_set_x,
163 rapr1): Use SCM_UCHARS instead of SCM_CHARS for strings. (Thanks
164