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