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