Commit | Line | Data |
---|---|---|
d95c0b76 NJ |
1 | 2001-06-26 Neil Jerram <neil@ossau.uklinux.net> |
2 | ||
3 | * eval.h, eval.c (scm_call_4): New function. | |
4 | ||
5 | * eval.c (SCM_APPLY, SCM_CEVAL, ENTER_APPLY): Call trap handlers | |
6 | directly rather than dispatching to them via scm_ithrow and a lazy | |
7 | catch. | |
8 | ||
9 | * eval.c (scm_evaluator_trap_table), eval.h (SCM_ENTER_FRAME_HDLR, | |
10 | SCM_APPLY_FRAME_HDLR, SCM_EXIT_FRAME_HDLR): Add three new options | |
11 | for trap handler procedures. | |
12 | ||
13 | * debug.h (SCM_RESET_DEBUG_MODE): Add checks for trap handler | |
14 | procedures not being #f. | |
15 | ||
30e3be5a ML |
16 | 2001-06-27 Michael Livshin <mlivshin@bigfoot.com> |
17 | ||
18 | * Makefile.am (c-tokenize.c): add rule to generate it. | |
19 | (EXTRA_DIST): add c-tokenize.lex, so it gets distributed. | |
20 | ||
21 | filter-doc-snarfage.c: remove. | |
22 | ||
82893676 MG |
23 | 2001-06-26 Martin Grabmueller <mgrabmue@cs.tu-berlin.de> |
24 | ||
25 | * ports.c (scm_output_port_p): Use result of SCM_COERCE_OUTPORT. | |
26 | ||
27 | The following set of changes makes compiling Guile under various | |
28 | Windows compilers easier. Compilation under GNU systems should | |
29 | not be affected at all. | |
30 | ||
31 | Thanks to Stefan Jahn for all necessary information, patches and | |
32 | testing. | |
33 | ||
34 | * posix.c: Conditialize getpwent, getgrent, kill, getppid, getuid, | |
35 | getpgrp, ttyname, primitive-fork and some header inclusion for | |
36 | Windows. | |
37 | ||
38 | * random.c: Define M_PI, if not predefined and use __int64 for | |
39 | LONG64 under Windows. | |
40 | ||
41 | * scmsigs.c: Emulate some functions (alarm, sleep, kill) under | |
42 | Windows and conditionalize some signal names. | |
43 | ||
44 | * socket.c (scm_getsockopt): Added missing comma. | |
45 | Include socket library header under Windows. | |
46 | ||
47 | * stime.c (CLKTCK): Add cast to int, to make it compile under | |
48 | Windows. | |
49 | ||
50 | * ports.c (truncate): New function, compiled only under Windows. | |
51 | ||
52 | * net_db.c: Do not declare errno under Windows. | |
53 | ||
54 | * iselect.h, inet_aton.c: Include socket library headers under | |
55 | Windows. | |
56 | ||
57 | * guile.c (inner_main): Under Windows, initialize socket library | |
58 | and initialize gdb_interface data structures. | |
59 | ||
60 | * gdb_interface.h: Under Windows, gdb_interface cannot be | |
61 | initialized statically. Initialize at runtime instead. | |
62 | ||
63 | * fports.c (write_all): ssize_t -> size_t. | |
64 | (fport_print): Conditionalize call to ttyname(). | |
65 | (getflags): New function, compiled only under Windows. | |
66 | ||
67 | * filesys.c: Conditionalize inclusion of <pwd.h>. Conditionalize | |
68 | primitives chown, link, fcntl. | |
69 | (scm_basename, scm_dirname): Under Windows, handle \ as well as / | |
70 | as path seperator. | |
71 | ||
72 | * backtrace.c: Include <io.h> under Windows. | |
73 | ||
74 | * async.h (ASYNCH, SCM_ASYNC_H): Rename <foo>H to SCM_<foo>_H. | |
75 | ||
76 | * _scm.h: Added preprocessor conditional for __MINGW32__ for errno | |
77 | declaration. | |
78 | ||
fdc28395 KN |
79 | 2001-06-27 Keisuke Nishida <kxn30@po.cwru.edu> |
80 | ||
81 | * eval.c (scm_call_0, scm_call_1, scm_call_2, scm_call_3, | |
82 | scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): New functions. | |
83 | * eval.h (scm_call_0, scm_call_1, scm_call_2, scm_call_3, | |
84 | scm_apply_0, scm_apply_1, scm_apply_2, scm_apply_3): Declared. | |
85 | * async.c (scm_run_asyncs), coop-threads.c (scheme_body_bootstrip, | |
86 | scheme_handler_bootstrip), debug.c (with_traps_inner), dynwind.c | |
87 | (scm_dynamic_wind, scm_dowinds), environments.c | |
88 | (import_environment_conflict), eval.c (scm_macroexp, scm_force, | |
89 | scm_primitive_eval_x, scm_primitive_eval), fluids.c (apply_thunk), | |
90 | goops.c (GETVAR, purgatory, make_class_from_template, | |
91 | scm_ensure_accessor), hashtab.c (scm_ihashx, scm_sloppy_assx, | |
92 | scm_delx_x, fold_proc), hooks.c (scm_c_run_hook), load.c | |
93 | (scm_primitive_load), modules.c (scm_resolve_module, | |
94 | scm_c_define_module, scm_c_use_module, scm_c_export, | |
95 | module_variable, scm_eval_closure_lookup, scm_sym2var, | |
96 | scm_make_module, scm_ensure_user_module, scm_load_scheme_module), | |
97 | ports.c (scm_port_for_each), print.c (scm_printer_apply), | |
98 | properties.c (scm_primitive_property_ref), ramap.c (ramap, | |
99 | ramap_cxr, rafe, scm_array_index_map_x, read.c (scm_lreadr), | |
100 | scmsigs.c (sys_deliver_signals), sort.c (applyless), strports.c | |
101 | (scm_object_to_string, scm_call_with_output_string, | |
102 | scm_call_with_input_string), throw.c (scm_body_thunk, | |
103 | scm_handle_by_proc, hbpca_body), unif.c (scm_make_shared_array, | |
104 | scm_make_shared_array), vports.c (sf_flush, sf_write, | |
105 | sf_fill_input, sf_close): Use one of the above functions. | |
106 | * goops.c, hashtab.c, scmsigs.c, sort.c: #include "libguile/root.h". | |
107 | ||
36284627 DH |
108 | 2001-06-26 Dirk Herrmann <D.Herrmann@tu-bs.de> |
109 | ||
110 | * filesys.c (scm_close), ports.c (scm_close_port, | |
111 | scm_port_closed_p), strop.c (scm_string_null_p): Use SCM_BOOL | |
112 | instead of SCM_NEGATE_BOOL. | |
113 | ||
114 | * filesys.c (scm_stat): Clean up type dispatch. | |
115 | ||
116 | * filesys.c (scm_stat), ports.c (scm_input_port_p, | |
117 | scm_output_port_p): Get rid of redundant IM type check. | |
118 | ||
119 | * filesys.c (scm_readdir, scm_getcwd, scm_readlink), gh_data.c | |
120 | (gh_str2scm), load.c (scm_primitive_load, scm_internal_parse_path, | |
121 | scm_search_path), net_db.c (scm_gethost, scm_getnet, scm_getproto, | |
122 | scm_return_entry), numbers.c (scm_number_to_string), objects.c | |
123 | (scm_make_subclass_object), ports.c (scm_port_mode), read.c | |
124 | (scm_lreadr), simpos.c (scm_getenv), socket.c (scm_inet_ntoa, | |
125 | scm_addr_vector), stime.c (scm_strftime), strings.c | |
126 | (scm_makfromstrs, scm_makfrom0str, scm_substring), strings.h | |
127 | (SCM_STRING_COERCE_0TERMINATION_X), strop.c (string_copy, | |
128 | scm_string_split), strports.c (scm_strport_to_string), symbols.c | |
129 | (scm_symbol_to_string), vports.c (sf_write): Use scm_mem2string | |
130 | instead of scm_makfromstr. | |
131 | ||
132 | * net_db.c (scm_sethost, scm_setnet, scm_setproto, scm_setserv), | |
133 | ports.c (scm_close_all_ports_except), read.c (scm_lreadr, | |
134 | scm_read_hash_extend), stime.c (scm_strftime), strings.c | |
135 | (scm_string_append, scm_string), strings.h (SCM_STRINGP, | |
136 | SCM_STRING_COERCE_0TERMINATION_X, SCM_RWSTRINGP), strop.c | |
137 | (string_capitalize_x): Prefer explicit type check over SCM_N?IMP, | |
138 | !SCM_<pred> over SCM_N<pred>. | |
139 | ||
140 | * strings.[ch] (scm_makfromstr): Deprecated. | |
141 | ||
142 | (scm_mem2string): New function, replaces scm_makfromstr. | |
143 | ||
144 | * strings.c (scm_substring), strop.c (string_copy, | |
145 | scm_string_split), strports.c (scm_strport_to_string), symbols.c | |
146 | (scm_symbol_to_string): Fix gc problem. | |
147 | ||
148 | * strings.h (STRINGSH, SCM_STRINGS_H): Rename <foo>H to | |
149 | SCM_<foo>_H. | |
150 | ||
151 | * validate.h (SCM_VALIDATE_SUBSTRING_SPEC_COPY): Eliminate | |
152 | warning about comparing signed and unsigned values. This fix is | |
153 | not optimal, since it won't work reliably if sizeof (c_start) > | |
154 | sizeof (size_t) or sizeof (c_end) > sizeof (size_t). A better | |
155 | solution is to define this macro as an inline function, thus | |
156 | allowing to specifiy the types of c_start and c_end. | |
157 | ||
13dcb666 DH |
158 | 2001-06-25 Dirk Herrmann <D.Herrmann@tu-bs.de> |
159 | ||
160 | * debug.h (SCM_DEBUGOBJ_FRAME): Deliver result as a | |
161 | scm_t_debug_frame*. | |
162 | ||
163 | * debug.h (DEBUGH, SCM_DEBUG_H), stacks.h (STACKSH, SCM_STACKSH): | |
164 | Rename <foo>H to SCM_<foo>_H. | |
165 | ||
166 | * stacks.c (NEXT_FRAME, narrow_stack): Prefer explicit type check | |
167 | over SCM_N?IMP, !SCM_<pred> over SCM_N<pred>. | |
168 | ||
169 | (narrow_stack): Make i unsigned. Don't use side-effecting | |
170 | operations in conditions. | |
171 | ||
172 | (narrow_stack, scm_make_stack, scm_stack_id, | |
173 | scm_last_stack_frame): Get rid of redundant SCM_N?IMP checks. | |
174 | ||
175 | (scm_make_stack, scm_stack_id, scm_last_stack_frame): Clean up | |
176 | type dispatch. No need to cast result of SCM_DEBUGOBJ_FRAME any | |
177 | more. | |
178 | ||
179 | (scm_stack_ref, scm_frame_previous, scm_frame_next): Fix | |
180 | signedness. | |
181 | ||
182 |