2012-07-25 Arnold D. Robbins * readdir.c: New file. * Makefile.am (readdir): New extension. 2012-07-20 Arnold D. Robbins * filefuncs.3am, fnmatch.3am, ordchr.3am, readfile.3am: new files. 2012-07-16 Arnold D. Robbins * fnmatch.c: Simplify flag table. 2012-07-15 Arnold D. Robbins * testext.c (test_scalar): New function and new tests. (init_testext): Add a new variable. 2012-07-13 Arnold D. Robbins * filefuncs.c (fill_stat_array): New function to do the work for stat. (do_stat): Call it. 2012-07-12 Arnold D. Robbins * 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 * 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 * 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 * 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 * ordchr.c (do_ord, do_chr): Improve argument checking and lint messages. 2012-06-25 Arnold D. Robbins * Makefile.am (EXTRA_DIST): Remove *.awk. * rwarray.awk: Moved to test directory. 2012-06-24 Arnold D. Robbins * Makefile.am: Enable rwarray extension. * rwarray.c: Redone to use new API. * rwarray.awk: Revamped for new version. 2012-06-21 Arnold D. Robbins * testext.c (test_array_elem): Add a subarray. (test_array_flatten): Removed: Tests done elsewhere. 2012-06-20 Arnold D. Robbins * 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 * 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 * 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 * 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 * time.c (RETURN): Remove obsolete define. (do_sleep): Change update_ERRNO_str argument to request translation. 2012-06-12 Arnold D. Robbins 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 * 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 * Makefile.am: Remove comment referring to deleted test extensions arrayparm, dl (zaxxon) and testarg. 2012-06-10 Andrew J. Schorr * 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 * 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 * testext.c: New file. Outline of tests for extension API. 2012-05-29 Arnold D. Robbins * 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 * filefuncs.c (array_set_numeric): Don't return a value from a void function. 2012-05-24 Andrew J. Schorr * 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 * 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 * filefuncs2.c: New file implementing chdir and stat using the new interface. Everything else is temporarily broken. 2012-05-13 Andrew J. Schorr * 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 * xreadlink.[ch]: Remove unused files. 2012-05-11 Arnold D. Robbins Sweeping change: Use `bool', `true', and `false' everywhere. 2012-04-11 Andrew J. Schorr * 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 * filefuncs.c: Remove unnecessary #include . (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 * 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 * 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 * 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 * .gitignore: New file to ignore files created by libtool (including binaries and associated metadata). 2012-03-21 Andrew J. Schorr * Makefile.am (INCLUDES): Remove -I$(top_srcdir)/intl. 2012-03-20 Andrew J. Schorr * 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 * arrayparm.c, filefuncs.c, fork.c, ordchr.c, readfile.c, rwarray.c, testarg.c: Updated. 2012-03-28 Arnold D. Robbins * 4.0.1: Release tar ball made. 2011-06-23 Arnold D. Robbins * ChangeLog.0: Rotated ChangeLog into this file. * ChangeLog: Created anew for gawk 4.0.0 and on. * 4.0.0: Release tar ball made.