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