1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
2012-07-25 Arnold D. Robbins <arnold@skeeve.com>
* readdir.c: New file.
* Makefile.am (readdir): New extension.
2012-07-20 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am:
new files.
2012-07-16 Arnold D. Robbins <arnold@skeeve.com>
* fnmatch.c: Simplify flag table.
2012-07-15 Arnold D. Robbins <arnold@skeeve.com>
* testext.c (test_scalar): New function and new tests.
(init_testext): Add a new variable.
2012-07-13 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (fill_stat_array): New function to do the work
for stat.
(do_stat): Call it.
2012-07-12 Arnold D. Robbins <arnold@skeeve.com>
* fnmatch.c: New file.
* Makefile.am: Build fnmatch extension.
* configure.ac: Look for fnmatch.h and fnmatch function.
* fnmatch.c (init_fnmatch): Use sym_constant for FNM_NOMATCH.
* testext.c (dl_load): Use sym_constant for answer_num.
* testext.c (init_testext): Move extra code to here.
(init_func): Change to point to init_testext.
(dl_load): Deleted.
(dl_load_func): Use the macro.
2012-07-11 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (array_set, do_stat): Use make_const_string.
* fork.c (array_set_numeric): Ditto.
* ordchr.c (do_chr): Ditto.
* readfile.c (do_readfile): Use make_null_string, make_malloced_string.
* rwarray.c (read_elem): Ditto.
* testext.c (valrep2str): Add case for AWK_SCALAR.
(test_array_elem): Duplicate strings coming from gawk before passing
them back in.
All files: Add null 'init_func' file pointer for dl_load_func
to work.
2012-07-09 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (do_readfile): Return "" and set ERRNO on error
instead of returning -1. Per suggestion from Andrew Schorr.
2012-07-08 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (array_set): Adjust for change in set_array_element API.
* fork.c (array_set_numeric): Ditto.
* rwarray.c (read_array): Use set_array_element_by_elem.
(read_value): Add a cast to silence a compiler warning.
* testext.c (test_array_elem): Adjust for change in set_array_element
API.
(fill_in_array): Ditto. Change parameter name to new_array.
2012-06-29 Arnold D. Robbins <arnold@skeeve.com>
* ordchr.c (do_ord, do_chr): Improve argument checking and
lint messages.
2012-06-25 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXTRA_DIST): Remove *.awk.
* rwarray.awk: Moved to test directory.
2012-06-24 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am: Enable rwarray extension.
* rwarray.c: Redone to use new API.
* rwarray.awk: Revamped for new version.
2012-06-21 Arnold D. Robbins <arnold@skeeve.com>
* testext.c (test_array_elem): Add a subarray.
(test_array_flatten): Removed: Tests done elsewhere.
2012-06-20 Arnold D. Robbins <arnold@skeeve.com>
* testext.c (fill_in_array): New function.
(create_new_array): Most code moved into fill_in_array.
(test_array_param): New function.
2012-06-19 Arnold D. Robbins <arnold@skeeve.com>
* testext.c (dump_array_and_delete): Renamed from dump_array.
Get second parameter which is index to delete. Update awk test.
2012-06-18 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (do_chdir): Change element use to match change types.
* fork.c (array_set_numeric): Ditto.
* testext.c (valrep2str): New function.
(test_array_elem): Add AWK_UNDEFINED for `wanted'. Use valrep2str.
Adjust use of element index.
(dump_array): Renamed from `dump_procinfo' and implemented.
(func_table): Updated.
2012-06-17 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (do_chdir, do_stat): Add assert(result != NULL).
* fork.c (do_fork, do_waitpid, do_wait): Ditto.
* ordchr.c (do_ord, do_chr): Ditto.
* readfile.c (do_readfile): Ditto.
* time.c (do_gettimeofday, do_sleep): Ditto.
* testext.c (All functions): Ditto. Clean up initial testing and use
make_number to make default return value up front.
(create_new_array, test_array_flatten): New functions.
(test_array_elem): Implemented.
(at_exit1): Don't printa actual pointer value: not portable.
(dl_load): Load up an array also.
2012-06-14 Andrew J. Schorr <aschorr@telemetry-investments.com>
* time.c (RETURN): Remove obsolete define.
(do_sleep): Change update_ERRNO_str argument to request translation.
2012-06-12 Arnold D. Robbins <arnold@skeeve.com>
Revise API:
* filefuncs.c (do_chdir): Replace get_curfunc_param with get_argument.
(format_mode): Use unsigned masks.
(do_stat): Replace get_curfunc_param with get_argument.
* fork.c (do_fork): Rearrange arg order in call to sym_lookup
(do_waitpid): Replace get_curfunc_param with get_argument.
* ordchr.c (do_ord, do_chr): Replace get_curfunc_param with get_argument.
* readfile.c (do_readfile): Replace get_curfunc_param with get_argument.
* time.c (do_sleep): Replace get_curfunc_param with get_argument.
Replace set_ERRNO with update_ERRNO_str for no way to sleep case.
Work on testext.c:
* Makefile.am: Add stuff to make testext. Remove doit and steps
from EXTRA_DIST.
* testext.c: Fill in many of the test routines. Still more to do.
Fix up test scripts for each routine.
* time.c (do_sleep): Fix use of get_argument to be boolean.
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am: Add time extension.
* configure.ac: To support time extension, check for some headers
and functions that are needed.
* time.c: New file implementing sleep and gettimeofday.
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am: Remove comment referring to deleted test extensions
arrayparm, dl (zaxxon) and testarg.
2012-06-10 Andrew J. Schorr <aschorr@telemetry-investments.com>
* arrayparm.c, dl.c, doit, foo.awk, steps, testarg.awk, testarg.c,
testarrayparm.awk, testff.awk, testfork.awk, testordchr.awk: Remove
unused (obsolete) files.
2012-06-06 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (do_stat): Make `type' const char *.
* testext.c: Functions renamed, some of them filled in. Corresponding
awk code for each test added inline.
2012-05-30 Arnold D. Robbins <arnold@skeeve.com>
* testext.c: New file. Outline of tests for extension API.
2012-05-29 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c: Further cleanup and condensation of code into tables.
* fork.c, ordchr.c, readfile.c: Update copyright, general cleanup.
2012-05-25 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs.c (array_set_numeric): Don't return a value from
a void function.
2012-05-24 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am (AM_CPPFLAGS): Use $(srcdir) to work properly when
built outside the source directory.
* configure.ac (INSTALL): Set location manually since autoconf was
not specifying the proper path for install-sh.
* filefuncs2.c, ordchr2.c, readfile2.c: Deleted.
* filefuncs.c: Install filefuncs2.c and patch for recent API changes.
* ordchr.c: Install ordchr2.c and patch for recent API changes.
* readfile.c: Install readfile2.c and patch for recent API changes.
* fork.c: Port to new API.
2012-05-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
* configure.ac: New file to run configure with libtool support
in this subdirectory.
* Makefile.am: Some changes related to running automake in this
directory.
* AUTHORS, COPYING, INSTALL, NEWS, README: Added files to make automake
happy.
* aclocal.m4, configure, configh.in: Added autoconf files.
* build-aux, m4: New subdirectories for autoconf stuff.
2012-05-15 Arnold D. Robbins <arnold@skeeve.com>
* filefuncs2.c: New file implementing chdir and stat using the
new interface.
Everything else is temporarily broken.
2012-05-13 Andrew J. Schorr <aschorr@telemetry-investments.com>
* filefuncs.c (array_set): Add a comment discussing the use of unref
on the value returned by assoc_lookup.
2012-05-13 Andrew J. Schorr <aschorr@telemetry-investments.com>
* xreadlink.[ch]: Remove unused files.
2012-05-11 Arnold D. Robbins <arnold@skeeve.com>
Sweeping change: Use `bool', `true', and `false' everywhere.
2012-04-11 Andrew J. Schorr <aschorr@telemetry-investments.com>
* filefuncs.c (array_set): New function to set an array element.
(do_set): Use new array_set function to reduce code duplication and
to make sure the memory management is handled properly.
2012-04-07 Andrew J. Schorr <aschorr@telemetry-investments.com>
* filefuncs.c: Remove unnecessary #include <sys/sysmacros.h>.
(read_symlink): New function to read symbolic links more robustly.
(do_stat): Use read_symlink instead of readlink.
* fork.c (do_wait): new function.
(dlload): Call make_builtin to add "wait" function.
2012-04-02 Andrew J. Schorr <aschorr@telemetry-investments.com>
* fork.c (do_fork): Test whether PROCINFO_node exists before updating
the pid values. And do so properly using make_number.
* readfile.c (do_readfile): Function should be static.
2012-04-01 Andrew J. Schorr <aschorr@telemetry-investments.com>
* filefuncs.c (do_chdir, do_stat): Replace update_ERRNO() with
update_ERRNO_int(errno).
* fork.c (do_fork, do_waitpid): Ditto.
* readfile.c (do_readfile): Ditto.
* rwarray.c (do_writea, do_reada): Ditto.
2012-03-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am: Major cleanup. Use libtool options -module and
-avoid-version to create the modules properly without my local hack
to override the default behavior.
2012-03-25 Andrew J. Schorr <aschorr@telemetry-investments.com>
* .gitignore: New file to ignore files created by libtool (including
binaries and associated metadata).
2012-03-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am (INCLUDES): Remove -I$(top_srcdir)/intl.
2012-03-20 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am: New file to build and install shared libraries.
* arrayparm.c (do_mkarray): Get it to compile by removing 2nd arg
to assoc_clear.
* filefuncs.c (do_stat): Ditto.
2011-08-31 John Haque <j.eh@mchsi.com>
* arrayparm.c, filefuncs.c, fork.c, ordchr.c, readfile.c,
rwarray.c, testarg.c: Updated.
2012-03-28 Arnold D. Robbins <arnold@skeeve.com>
* 4.0.1: Release tar ball made.
2011-06-23 Arnold D. Robbins <arnold@skeeve.com>
* ChangeLog.0: Rotated ChangeLog into this file.
* ChangeLog: Created anew for gawk 4.0.0 and on.
* 4.0.0: Release tar ball made.
|