home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuawk.zip / ChangeLog < prev    next >
Text File  |  1997-05-15  |  33KB  |  827 lines

  1. Thu May 15 12:49:08 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  2.  
  3.     * Release 3.0.3: Release tar file made.
  4.  
  5. Wed May 14 08:06:08 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  6.  
  7.     * io.c (do_close): add lint warning if closing something that
  8.       isn't open.
  9.  
  10. Tue May 13 12:14:12 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  11.  
  12.     * random.c, builtin.c: remove __GLIBC__ tests, since it breaks
  13.       `make test'. I prefer consistency across platforms.
  14.     * Makefile.in (gawk): undid April 25 changes and added comment.
  15.       Putting COMPLAGS in breaks with -g on VMS POSIX.
  16.  
  17. Sun May 11 14:48:04 1997  Darrell Hankerson  <hankedr@mail.auburn.edu>
  18.  
  19.     * io.c [MSC_VER]: add cases for WIN32.
  20.     * regex.c [MSC_VER]: add cases for WIN32.
  21.  
  22. Sun May 11 07:04:01 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  23.  
  24.     * builtin.c (do_print): in the loop that evaluates each expression
  25.       to be printed, do a dupnode to avoid bizarre output. Thanks to
  26.       Michal for finding this problem.
  27.     * awk.y (yylex): fix scanning of hexadecimal constants.
  28.  
  29. Wed May  7 15:09:25 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  30.  
  31.     * io.c (get_a_record): fix casetable indexing with cast to int.
  32.       Keeps Michal happy.
  33.  
  34. Tue May  6 16:40:19 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  35.  
  36.     * eval.c (func_call): removed unneeded variables.
  37.  
  38. Mon May  5 21:17:37 1997  Pat Rankin  <rankin@eql.caltech.edu>
  39.  
  40.     * missing/strftime.c [case 'v', VMS_EXT]: for VMS date format, two
  41.       digit day of month should not be zero padded on the 1st through
  42.       the 9th.
  43.  
  44. Mon May  5 06:33:47 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  45.  
  46.     * regex.h, regex.c: merge with current GLIBC version.
  47.  
  48. Mon May  5 06:33:47 1997  Pat Rankin  <rankin@eql.caltech.edu>
  49.  
  50.     * io.c (nextfile): move the check for null return from iop_open
  51.       in the normal case and add one for the "no args" case.
  52.  
  53. Fri Apr 25 16:52:33 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  54.  
  55.     * array.c (grow_table): add a bunch more large primes so arrays
  56.       can get really big. Thanks to christos@deshaw.com.
  57.     * all files: remove ifdef'ed out code and update copyrights.
  58.     * Makefile.in (gawk): add $(COMPFLAGS) to command line.
  59.     * eval.c (flags2str): added case for FIELD.
  60.  
  61. Thu Apr 24 22:39:23 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  62.  
  63.     * COPYING: changed to current official version from FSF.
  64.     * regex.c: merge with GLIBC version.
  65.     * awk.h [_GNU_SOURCE]: bracket definition inside ifdef.
  66.       (NODE.source_line): move name member out of `x' union and
  67.       into `nodep'; avoids problems doing diagnostics.
  68.       (nondec2num): put decl into #if BITOPS || NONDECDATA
  69.     * posix/gawkmisc.c, missing/system.c, missing/strtod.c,
  70.       missing/strerror.c: move to generic GPL statement at top.
  71.     * builtin.c (nondec2num): put into #if BITOPS || NONDECDATA
  72.  
  73. Wed Apr 23 22:14:14 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  74.  
  75.     * dfa.c: misc changes for really pedantic SGI compilers.
  76.     * builtin.c: bracket defs of random() etc for GLIBC.
  77.     * random.c: bracket whole file for GLIBC.
  78.     * configure.in: extra goop for GETPGRP test for VMS POSIX.
  79.     * custom.h [VMS]: remove hard definition of GETPGRP_VOID.
  80.  
  81. Fri Apr 18 07:55:47 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  82.  
  83.     * BETA Release 3.0.34: Release tar file made.
  84.  
  85. Tue Apr 15 21:35:45 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  86.  
  87.     NEW UNDOCUMENTED FEATURE. USE THE SOURCE LUKE!
  88.     * acconfig.h [NONDECDATA]: new macro.
  89.     * awk.h: add decl of do_strtonum.
  90.     * awk.y (tokentab): add entry for strtonum function.
  91.     * builtin.c (do_strtonum): new function.
  92.     * configure.in (non-decimal-data): new --enable-* option.
  93.     * node.c (r_force_number): change to allow non-decimal data inside
  94.       ifdef NONDECDATA.
  95.  
  96. Tue Apr 15 06:32:50 1997  Pat Rankin  <rankin@eql.caltech.edu>
  97.  
  98.     * missing/strftime.c (malloc, realloc, getenv, strchr): only
  99.       declare these when STDC_HEADERS is not defined.
  100.       <stdlib.h, string.h>: include these when STDC_HEADERS is defined.
  101.     * awk.h (freenode, tree_eval, m_tree_eval): reorganize definitions.
  102.     * alloca.c (malloc): if malloc is already defined as a macro,
  103.       presumeably by config.h, don't define or declare it.
  104.  
  105. Wed Apr  9 22:45:27 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  106.  
  107.     * Makefile.in [COMPFLAGS]: per suggestion from Karl Berry, put
  108.       $(CFLAGS) last.
  109.  
  110. Tue Apr  8 23:54:46 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  111.  
  112.     * eval.c (interpret): For Node_K_break and Node_K_continue, if
  113.       treating them like `next', also check the function call stack
  114.       and pop it if necessary.
  115.  
  116. Mon Apr  7 18:22:37 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  117.  
  118.     * awk.h: Add decls of new routines do_compl() and set_loc().
  119.     * awk.y (tokentab): add entry for "compl" function.
  120.     * builtin.c (do_compl): new functionto do ones complement.
  121.       (do_substr): rationalized yet again, now notices negative start
  122.       and length parameters.
  123.     * eval.c (push_args): fix if call_list gets realloc'ed in the
  124.       middle of things. Avoids crash for deeply nested function calls.
  125.     * main.c (catch_sig): add call to set_loc().
  126.     * msg.c (set_loc, srcfile, srcline): new function and private
  127.       variables to help out in tracing down source of error messages.
  128.  
  129. Fri Mar 28 08:42:27 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  130.  
  131.     * io.c (iop_alloc, iop_close): Undo changes of Feb 11, apparently
  132.       other cleanups in io.c made mmap stuff start working again.
  133.       BAH! It's a mess, the test suite still fails. I'm leaving the
  134.       mmap stuff undefined for now. It'll probably get ripped out in 3.1.
  135.  
  136. Thu Mar 27 08:48:57 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  137.  
  138.     * custom.h [_SEQUENT_]: undef HAVE_MMAP.
  139.  
  140. Wed Mar 26 09:08:16 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  141.  
  142.     * io.c (iop_alloc): fix definition to make it static.
  143.  
  144. Mon Mar 24 23:09:07 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  145.  
  146.     * field.c (init_fields, etc..): more clean up use of Null_field
  147.       and the various flags.
  148.     * node.c (unref): if a field, free the node itself. Fixes
  149.       memory leak problems.
  150.  
  151. Sun Mar 23 22:51:09 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  152.  
  153.     * awk.h [FIELD]: new flag for node->flags field.
  154.     * builtin.c (sub_common): if FIELD is set, dup the string.
  155.     * field.c (init_fields): set up a new Null_field global var.
  156.       (init_fields, set_field, set_record) use the FIELD flag.
  157.       (getfield): use Null_field instead of private variable.
  158.     * io.c (wait_any): comment out calls to pclose and iop_close,
  159.       caused weird race conditions. See test/pipeio1.awk. Thanks
  160.       to Darrell Hankerson for tracing this one down.
  161.  
  162. Tue Mar 18 20:57:18 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  163.  
  164.     * dfa.c (inboth): free templist; plugs memory leak.
  165.     * field.c (init_fields, grow_fields_arr, set_field, rebuild_record,
  166.       set_record): remove PERM flag from entries in fields_arr[]. Fixes
  167.       nasty memory leak.
  168.  
  169. Tue Mar 18 06:33:00 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  170.  
  171.     * awk.y (dup_parms): robustified against parameter errors.
  172.  
  173. Sun Mar 16 21:31:40 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  174.  
  175.     NEW UNDOCUMENTED FEATURE. USE THE SOURCE LUKE!
  176.     * acconfig.h [BITOPS]: new macro. If set, do octal & hex and bit ops.
  177.     * awk.h [isnondecimal]: new macro, and decl of new functions.
  178.     * awk.y (yylex): add recognition of octal and hex constants.
  179.     * builtin.c (do_and, do_or, do_xor, do_lshift, do_rshift): new
  180.       functions that do bit operations.
  181.       (nondec2awknum): new function to convert octal or hex to double.
  182.     * configure.in: Add AC_ARG_ENABLE for bit operations.
  183.     * node.c (r_force_number): add octal and hex conversion.
  184.  
  185. Sun Mar 16 21:28:56 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  186.  
  187.     * awk.h [IOP_NOFREE_OBJ]: new macro.
  188.     * io.c (iop_open, iop_alloc): add new third parameter, which is
  189.       either NULL, meaning allocate a new IOP, or the address of one
  190.       already allocated.  Have a static one in the `nextfile'
  191.       routine, and use the IOP_NOFREE_OBJ flag for it.  All of this
  192.       keeps us from reading freed memory. The `swaplns' test fails
  193.       otherwise.
  194.       (iop_close): if IOP_NOFREE_OBJ is set, don't free the IOBUF.
  195.  
  196. Wed Feb 26 06:21:02 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  197.  
  198.     * eval.c (in_function, pop_fcall_stack, pop_fcall, push_args):
  199.       new functions. These manage "frames" of awk function call arguments.
  200.       The problem is that a `next' or a `nextfile' from a function
  201.       leaks memory. These changes allow us to free up that memory.
  202.       (interpret): for Node_K_next and Node_K_nextfile, check if in
  203.       a function call and free all function call frames.
  204.  
  205. Fri Feb 21 06:23:19 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  206.  
  207.     * Misc changes from Katsuyuki Okabe <HGC02147@niftyserve.or.jp>:
  208.     * builtin.c (do_substr): change a %d to %ld in warning message.
  209.     * eval.c (op_assign): fix format string for warning about %=.
  210.     
  211. Wed Feb 19 23:29:02 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  212.  
  213.     * main.c (main): add do_intervals to condition that causes
  214.       resetup() to be called again. Makes the --re-interval option
  215.       actually work. What a concept.
  216.  
  217. Fri Feb 14 09:47:31 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  218.  
  219.     * io.c [#include "awk.h"]: undef HAVE_MMAP to just use thoe old code.
  220.       Something is causing a file descriptor leak, and this is getting to
  221.       be just too much hair. I reserve the right to rip out the mmap
  222.       code entirely at a future date.
  223.  
  224. Tue Feb 11 06:28:29 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  225.  
  226.     * io.c (iop_alloc): for an mmap'ed file, close the file descriptor,
  227.       and then touch each page to get a private copy. Fixes nasty case
  228.       of truncating our input file.
  229.       (iop_close): don't call close on mmap'ed file.
  230.  
  231. Wed Feb  5 17:59:04 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  232.  
  233.     * eval.c (interpret): For Node_K_delete, just call do_delete; let
  234.       it handle the case of `delete array'.
  235.     * array.c (do_delete): Changed to handle case of `delete array',
  236.       and made smarter if the array is actually an uninitialized
  237.       parameter.
  238.  
  239. Sun Jan 26 22:58:29 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  240.  
  241.     * getopt.h, getopt.c, getopt1.c: replaced with new versions from
  242.       GLIBC 2.
  243.  
  244. Sun Jan 19 23:37:03 1997  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  245.  
  246.     * eval.c (nodetype2str): not static, for debugging.
  247.       (flags2str) new function: for debugging.
  248.     * field.c (get_field): add new var that is like Nnull_string but
  249.       does not have numeric attributes, so that new fields are strings.
  250.       (set_record): turn off PERM flag before unrefing fields and field 0.
  251.     * array.c (in_array): always evaluate subscript, could have
  252.       side effects.
  253.     * builtin.c (do_strftime): way increase size of buffer to make sure
  254.       we don't have overflow problem. Keeps Paul Eggert happy.
  255.     * custom.h [__amigaos__]: define fork to vfork. From Fred Fish.
  256.     * dfa.c: move include of config.h to top, for RSXNT. From Kai
  257.       Uwe Rommel.
  258.       (ISALPHA, etc): change from Jacob Engelbrecht (jaen@novo.dk)
  259.       to better handle non-ascii environments.
  260.     * gawkmisc.c: remove amigados case, posix should now work fine.
  261.     * amiga/*: nuked per previous entry.
  262.     * Makefile.in: removed all references to amiga
  263.     * io.c [HAVE_SYS_PARAM_H]: Add #undef RE_DUP_MAX to avoid
  264.       spurious conflict with regex.h.
  265.       (flush_io): remove amiga ifdefs, not needed anymore.
  266.       (spec_setup): set getrec field for special files. Fix from
  267.       Mark Gray (markgray@pdt.net).
  268.     * node.c (more_nodes): fix to get the last entry in the array.
  269.  
  270. Wed Jan  8 17:42:37 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
  271.  
  272.     * io.c (mmap_get_record): Fix return value if file ends without
  273.       record separator.
  274.  
  275. Fri Jan  3 19:57:16 1997  Pat Rankin  <rankin@eql.caltech.edu>
  276.  
  277.     * awk.y (get_src_buf):  Test for an empty source file by detecting
  278.       an initial read of 0 bytes rather than by relying on info from
  279.       stat().
  280.  
  281. Wed Dec 25 11:25:22 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  282.  
  283.     * Release 3.0.2: Release tar file made.
  284.  
  285. Wed Dec 25 11:17:32 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  286.  
  287.     * Makefile.in (install, uninstall): use $(srcdir)/patchlevel.h.
  288.       Thanks to Richard Levitte, LeViMS@stacken.kth.se.
  289.       (install): remove chmod command; let $(INSTALL_PROGRAM) use -m.
  290.  
  291. Mon Dec 23 20:36:59 1996  Pat Rankin  <rankin@eql.caltech.edu>
  292.  
  293.     * custom.h (#if VMS_POSIX):  Define GETPGRP_VOID.
  294.  
  295. Fri Dec 20 08:59:55 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  296.  
  297.     * getopt.c, getopt1.c: comment out the `#if defined (_LIBC) ||
  298.       !defined (__GNU_LIBRARY__)' and `#endif' to force use of this
  299.       getopt, even on systems like linux.  This will be handled
  300.       better in 3.1 / glibc 2.
  301.  
  302. Thu Dec 19 22:52:39 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  303.  
  304.     * awk.y (yylex): In several places, after yyerror(), add call to
  305.       exit(). Otherwise, infinite messages. This should probably
  306.       be handled better.
  307.  
  308. Wed Dec 18 22:42:10 1996  Darrel Hankerson  <hankedr@mail.auburn.edu>
  309.  
  310.     * getopt.c (_getopt_internal): if 'W' and ';', if optind == argc,
  311.       return c, don't fall through.
  312.  
  313. Wed Dec 18 10:09:44 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  314.  
  315.     * configure.in [AC_PREREQ]: Update to 2.12 in order to switch to
  316.       autoconf 2.12. Lots of other files will be rebuilt automatically.
  317.       [AM_SANITY_CHECK_CC]: Removed, autoconf does it now.
  318.     * alocal.m4 [AM_SANITY_CHECK_CC]: Removed, autoconf does it now.
  319.  
  320. Tue Dec 17 22:23:16 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  321.  
  322.     * builtin.c (do_strftime): fix case if format string is "".
  323.       Also fix it if format is not "" but result of strftime is "".
  324.       See comments in code.
  325.  
  326. Tue Dec 10 23:09:26 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  327.  
  328.     * Release 3.0.1: Release tar file made.
  329.  
  330. Tue Dec 10 22:39:41 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  331.  
  332.     * Makefile.in (dist): add dependency on `info'. Remove line that
  333.       does makeinfo.
  334.       (install): use $(LN) not $(LN_S) to link gawk gawk-version.
  335.  
  336. Sun Dec  8 07:53:44 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  337.  
  338.     * Makefile.in (gawk): took COMPFLAGS out of link line for help
  339.       on VMS posix. Shouldn't (I hope) affect anything else.
  340.  
  341. Thu Nov 28 11:52:24 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  342.  
  343.     * configure.in (AC_PROG_INSTALL): Set INSTALL to install-sh.
  344.  
  345. Tue Nov 26 22:42:00 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  346.  
  347.     * PORTS: Updated list of systems.
  348.     * Makefile.in (install): Fix some typos and add some improvements
  349.       for Ultrix.
  350.  
  351. Sun Nov 24 22:16:26 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  352.  
  353.     * builtin.c (do_printf): if no args, fatal error. Return silently
  354.       if --traditional.
  355.  
  356. Thu Nov  7 20:54:43 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  357.  
  358.     * io.c (inrec): make sure EOF hasn't already happened before
  359.       trying to read; prevents accessing freed buffer. Thanks to
  360.       Michal Jaegermann.
  361.     * Makefile.in [AWKSRC]: add random.h.
  362.       random.h: new file, redefines names of the `random' functions.
  363.       random.c, builtin.c: add include of random.h.
  364.  
  365. Thu Nov  7 09:06:21 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  366.  
  367.     * awk.y (snode): undo 4 Oct change, put do_split code back.
  368.       field.c (do_split): restore old code; add test for CONST, so
  369.       that re_parse_field is used if third arg to split is a regexp
  370.       constant.
  371.  
  372. Mon Nov  4 12:57:11 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  373.  
  374.     * main.c (main): Research -m[fr] options don't need literal '='
  375.       characters. Brian's documentation was confusing.  Fixed, not
  376.       that anyone actually uses these options with gawk.
  377.  
  378. Sun Nov  3 11:23:21 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  379.  
  380.     * field.c (def_parse_field): add \n to list of acceptable white space.
  381.       (posix_def_parse_field): new routine, just like def_parse_field(),
  382.       but only allows space and tab as separators.
  383.       (do_split, set_FS): make appropriate choice between the two
  384.       *def_parse_field() routines.
  385.  
  386. Fri Oct 25 10:13:06 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  387.  
  388.     * configure.in: remove test for random.
  389.     * Makefile.in: add random.c to list of files always compiled.
  390.     * missing.c: remove HAVE_RANDOM test.
  391.     * builtin.c: remove ifdef's for HAVE_RANDOM.
  392.       [GAWK_RAND_MAX]: use constant we know works with our random().
  393.     * random.c: new file - moved from missing/ directory.
  394.  
  395. Wed Oct 23 19:46:01 1996  Pat Rankin  <rankin@eql.caltech.edu>
  396.  
  397.     * builtin.c (do_tolower, do_toupper): Add `unsigned char *' casts.
  398.  
  399. Tue Oct 22 21:27:52 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  400.  
  401.     * builtin.c [GAWK_RANDOM_MAX]: Try to make definition a bit
  402.       smarter; don't use RAND_MAX if it's equal to SHRT_MAX, blows
  403.       things up.
  404.  
  405. Tue Oct 22 08:49:20 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  406.  
  407.     * main.c (copyleft): update copyright date to 1996.
  408.       too many files to list: update copyright date to 1996.
  409.  
  410. Sun Oct 20 12:21:09 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  411.  
  412.     * awk.y, dfa.c, eval.c, io.c, re.c: added various FIXME comments.
  413.  
  414. Sat Oct 19 22:06:42 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  415.  
  416.     * eval.c (nodetype2str): make static, add prototype.
  417.     * field.c (sc_parse_field): cast array subscripts to int to
  418.       shut up gcc warnings.
  419.     * gawkmisc.c: add prototype for xmalloc.
  420.     * awk.h: add prototype for getredirect.
  421.     * builtin.c (do_fflush): remove extern decl of getredirect.
  422.     * io.c (get_a_record, mmap_get_record): change decl of rs to int,
  423.       to shut up gcc warnings.
  424.     * awk.y (isassignable): add a default to switch to quiet gcc.
  425.     * getopt.c (_getopt_internal): give default value to `indfound'.
  426.  
  427. Fri Oct 18 09:00:49 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  428.  
  429.     * regex.h [RE_SYNTAX_AWK]: add RE_CONTEXT_INDEP_ANCHORS.
  430.  
  431. Thu Oct 17 22:32:55 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  432.  
  433.     * aclocal.m4 [AM_SANITY_CHECK_CC]: added.
  434.     * configure.in: use it.
  435.  
  436. Thu Oct 17 21:43:25 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  437.  
  438.     * configure.in: add checks for locale.h and setlocale().
  439.       awk.h: include locale.h and define out setlocale() if not available.
  440.       main.c (main): call setlocale().
  441.       builtin.c (do_tolower, do_toupper): use unsigned char pointers,
  442.       to get other charsets right in different locales.
  443.  
  444. Wed Oct 16 21:32:53 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  445.  
  446.     * builtin.c (format_tree): Change initial buffer size to 512
  447.       and use a constant. Allows large values of %f per bug report
  448.       from sheyn@cs.bu.edu.
  449.  
  450. Wed Oct 16 21:22:08 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  451.  
  452.     * Makefile.in [MISC]: removed TAGS and tags
  453.       (local-distclean): added TAGS and tags
  454.       (maintainer-clean): removed TAGS and tags
  455.  
  456. Wed Oct 16 12:28:43 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  457.  
  458.     * main.c (version): Add call to copyleft(), per new standards.
  459.       version.c: Fix text of version string to match new standards.
  460.  
  461. Sun Oct  6 22:19:45 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  462.  
  463.     * regex.c: updated to Emacs 19.34b base.
  464.  
  465. Sun Oct  6 21:57:34 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  466.  
  467.     * re.c (make_regexp): fixed to handle \8 and \9 in the middle
  468.       of a regexp.
  469.  
  470. Fri Oct  4 10:26:16 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  471.  
  472.     * awk.y (snode): remove case for do_split; always making the
  473.       third arg a Node_regex is wrong.
  474.       field.c (do_split): rationalized to distinguish `/ /' from `" "'.
  475.       Generally fixed up.
  476.     * node.c (parse_escape): Allow single digit \x escapes.
  477.  
  478. 1996-10-02  Paul Eggert  <eggert@twinsun.com>
  479.  
  480.     * builtin.c (format_tree):
  481.     Fix bug in %d and %i format: NaNs, and values
  482.     in the range LONG_MAX+1 .. ULONG_MAX, were mishandled.
  483.     Don't assume that double values <= -1 are converted to unsigned
  484.     long in the expected way; the C Standard doesn't guarantee this.
  485.  
  486. 1996-10-02  Paul Eggert  <eggert@twinsun.com>
  487.  
  488.     * awk.h (INT_MAX): Remove unused symbol.
  489.  
  490. Mon Sep 30 22:19:11 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  491.  
  492.     * getopt.c (_getopt_internal): If 'W' is in the optstring followed
  493.       by a ';' then search through the long opts table. This makes
  494.       `-W foo=bar' same as `--foo=bar'.
  495.     * main.c (main): 'W' now prints an error message.
  496.       (gawk_option): deleted the routine.
  497.  
  498. Sun Sep 29 23:04:54 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  499.  
  500.     * builtin.c (sub_common): fix several bugs with gsub when
  501.       matching null strings. See test/gsubtest.awk.
  502.  
  503. Fri Sep 20 17:35:54 1996  Pat Rankin  <rankin@eql.caltech.edu>
  504.  
  505.     * alloca.c (NULL): don't define if <config.h> has already done so.
  506.  
  507. Fri Sep 20 11:54:31 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  508.  
  509.     * builtin.c (do_print): evaluate all the expressions first and
  510.       then print them. Avoids suprising behavior. See test/prtoeval.awk
  511.       for an example.
  512.  
  513. Tue Sep 10 06:21:40 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  514.  
  515.     * awk.h [FUNC]: new flag, marks a Node_parameter_list as really
  516.       being the function name; allows more checking in awk.y.
  517.     * awk.y (isassignable): now takes a NODE * instead of a type, to
  518.       check if a function parameter is marked FUNC, then it's the function
  519.       name, which is not assignable. Fix call from snode().
  520.       (function_prologue): mark function name as FUNC.
  521.       (yyerror): don't call exit() anymore; gawk will now report
  522.       all syntax errors.
  523.  
  524. Sun Sep  1 19:36:30 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  525.  
  526.     * field.c (rebuild_record): after building new field 0, go through
  527.       all old fields, and if they used to point into the old one,
  528.       have them point into the new one.  Then turn off PERM flag before
  529.       unref-ing field 0.
  530.  
  531. Wed Aug 28 19:13:34 1996  Arnold D. Robbins  <arnold@math.utah.edu>
  532.  
  533.     * eval.c (set_IGNORECASE): Correctly parenthesize bit operations
  534.       in test and fix logic for string value.
  535.  
  536. Wed Aug 28 22:06:33 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  537.  
  538.     * main.c (usage): add email addresses for bug reporting, per
  539.       change in GNU Coding Standards from RMS.
  540.  
  541. Sun Aug 11 23:13:22 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  542.  
  543.     * Makefile.in (install): correct use of $(INSTALL_PROGRAM).
  544.  
  545. Thu Aug  8 23:29:43 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  546.  
  547.     * parse.y (isassignable): new function, checks in type can
  548.       be assigned to.
  549.       (snode): changed checking for 3rd arg of gsub to be more
  550.       general, supersedes earlier change.
  551.  
  552. Thu Aug  8 13:58:26 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  553.  
  554.     * parse.y (snode): If third arg to sub or gsub is builtin
  555.       function, complain, since can't substitute into result.
  556.     * eval.c (r_get_lhs): diagnose Node_builtin as an error, instead
  557.       of falling through into default case and using cant_happen().
  558.  
  559. Thu Aug  1 07:13:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  560.  
  561.     * regex.h [RE_DEBUG]: new macro.
  562.       [RE_SYNTAX_GNU_AWK]: add RE_DEBUG.
  563.       [RE_SYNTAX_POSIX_AWK]: add RE_INTERVALS.
  564.     * regex.c (re_set_syntax): add #ifdef DEBUG code to turn on `debug'
  565.       flag if RE_DEBUG set, and turn off debug if not set and debug
  566.       was on.
  567.     * main.c (main): remove `do_intervals = TRUE' from `if (do_posix)',
  568.       it's now handled in the definition of RE_SYNTAX_POSIX_AWK.
  569.  
  570. Mon Jul 29 17:49:07 1996  Pat Rankin  <rankin@eql.caltech.edu>
  571.  
  572.     * io.c (O_ACCMODE): define it if <fcntl.h> doesn't.
  573.  
  574. Mon Jul 29 12:02:48 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  575.  
  576.     * eval.c (set_IGNORECASE): made somewhat smarter. gawk -v IGNORECASE=0
  577.       was acting the same as -v IGNORECASE=1. Thanks to Darrell Hankerson
  578.       for the bug report.
  579.  
  580. Fri Jul 26 12:04:43 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  581.  
  582.     * awk.h (format_val): add declaration of new routine.
  583.     * node.c (format_val): new routine, abstracts old guts of
  584.       r_forcestring; accepts format string and index as additional params.
  585.       (r_force_string): changed to call format_val.
  586.     * builtin.c (do_print):  don't tree_eval the tree twice in case
  587.       OFMTidx != CONVFMTidx; doing so could cause side effects
  588.       (from bug report by Tobias Rettstadt, xassp@ipds.uni-kiel.de).
  589.       Instead, call format_val.
  590.  
  591. Mon Jul 22 21:59:15 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  592.  
  593.     * io.c (iop_close): change check for "is $0 in the input buffer"
  594.       to use `< (iop->buf + iop->secsiz + iop->size)' instead of
  595.       `< iop->end'. The latter is bogus if EOF has been hit on the
  596.       file.  Fix from Darrel Hankerson based on bug report by
  597.       Charles Howes (howes@grid.direct.ca).  See test/eofsplit.awk.
  598.  
  599. Thu Jul 18 19:43:20 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  600.  
  601.     * builtin.c (sub_common): backed out change of Feb 14 in favor of:
  602.       (do_gensub): Changed to use make_string and then to |= TEMP
  603.       flag, based on bug report and patch from Katsuyuki Okabe,
  604.       hgc02147@niftyserve.or.jp.
  605.  
  606. Thu Jul 18 19:23:53 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  607.  
  608.     * custom.h: added ifdef for QNX, based on bug report from
  609.       Michael Hunter, mphunter@qnx.com.
  610.  
  611. Mon Jul 15 09:31:01 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  612.  
  613.     * io.c (redirect): When finding the rp pointer, if it's not
  614.       NULL, set str = rp->value. This gets the '\0' terminated
  615.       version. Motivated by bug report from John Hawkinson
  616.       (jhawk@bbnplanet.com).
  617.  
  618. Sun Jul 14 18:40:26 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  619.  
  620.     * configure.in: added call to AC_CHECK_LIB(m, fmod), since
  621.       apparently some systems have fmod in the math library.
  622.       Portability: the Holy Grail.  Sigh.
  623.  
  624. Sun Jul 14 18:08:01 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  625.  
  626.     * awk.h: add Jim Meyerings ISASCII etc hacks for ctype macros.
  627.     * builtin.c (do_toupper, do_tolower, sub_common): changed to use
  628.       upper-case versions of ctype macros.
  629.     * main.c (main): ditto.
  630.     * node.c (r_force_number, parse_escape): ditto.
  631.  
  632. Sun Jul 14 06:34:18 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  633.  
  634.     * field.c (set_record): made it always do the PERM flag.
  635.       Fixes cases where $0 is assigned to, e.g. by gsub, keeps
  636.       the fields valid.
  637.       (get_field): removed the call to reset_record in
  638.       case where ! field0_valid. We want to leave the fields alone
  639.       if they've been changed.
  640.  
  641. Thu Jul 11 23:04:20 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  642.  
  643.     * io.c (devopen): change tests of (flag & O_fooONLY) to
  644.       (flag & O_ACCMODE) == O_fooONLY. Per (long standing) bug
  645.       report from Chapman Flack.
  646.       (close_redir): change final conditional to just (status != 0)
  647.       so that ERRNO always set; the warning had its own `if (do_lint)'
  648.       anyway.
  649.     * eval.c (do_split): force type of array to be Node_var_array
  650.       instead of Node_var.  Per (long standing) bug report from
  651.       Chapman Flack.
  652.  
  653. Thu Jul 11 22:17:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  654.  
  655.     * Makefile.in (install): added symlink of gawk to awk if
  656.       no awk in $(bindir).
  657.       (LN_S): new variable for symlinking.
  658.       (uninstall): remove awk if it's the same gawk.
  659.     * Configure.in: Added call to AC_PROG_LN_S for Makefile.in.
  660.  
  661. Sun Jul  7 15:47:13 1996  Arnold D. Robbins  <arnold@infographix.com>
  662.  
  663.     * main.c (main): made `--posix' turn on interval expressions.
  664.       Gawk now matches its documentation. (What a concept!)
  665.  
  666. Wed Jul  3 15:02:48 1996  Arnold D. Robbins  <arnold@infographix.com>
  667.  
  668.     * regex.h, regex.c: upgraded to changes from Emacs 19.31.
  669.  
  670. Fri May 17 08:46:07 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  671.  
  672.     * io.c (get_a_record): added `continued' flag. Fix from
  673.       Darrell Hankerson for when RS = "\n|something".
  674.  
  675. Wed May 15 02:34:55 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  676.  
  677.     * Makefile.in (awklib/all): now depends on gawk, fixes problem
  678.       with parrallel make.
  679.  
  680. Tue May 14 15:02:52 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  681.  
  682.     * builtin.c (format_tree): fix handling of '*' to deal with
  683.       negative value for fieldwidth -- make positive and turn on
  684.       left justify. Per bug report from Michael Brennan.
  685.  
  686. Sun May 12 20:42:06 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  687.  
  688.     * eval.c (r_get_lhs): case Node_subscript. Check if array name
  689.       is actually a function, fatal error if so.
  690.  
  691. Sun May  5 10:11:52 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  692.  
  693.     * io.c (redirect): call flush_io() before creating a new output pipe,
  694.       per bug report from Brian Kernighan (bwk@research.bell-labs.com).
  695.  
  696. Fri Mar 15 06:38:33 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  697.  
  698.     * Makefile.in (install): use $(INSTALL_PROGRAM), not $(INSTALL).
  699.       (local-distclean): add `*~' to list of files to be removed.
  700.       (CFLAGS): now contains just @CFLAGS@.
  701.       (COMPFLAGS): replaces use of CFLAGS, has CFLAGS plus all the
  702.       other stuff.
  703.  
  704. Wed Mar 13 14:19:38 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  705.  
  706.     * io.c (mmap_get_record): fixed to not place sentinel at end
  707.       of mmap'ed object. Won't work if file is exact multiple of
  708.       disk block size. See comments in code for more info.
  709.       Thanks to Rick Adams (rick@uunet.uu.net) for help in testing.
  710.  
  711. Sun Mar 10 22:50:23 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  712.  
  713.     * io.c (do_close): notice if we were called as `close(FILENAME)'
  714.       and arrange to close the current input file. This turns out
  715.       to be easy to do, just call `nextfile(TRUE)'. Based on bug report
  716.       from Pascal A. Dupuis, <dupuis@lei.ucl.ac.be>.
  717.  
  718. Thu Mar  7 08:08:51 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  719.  
  720.     * field.c (init_fields, grow_fields, set_field, rebuild_record):
  721.       Nuke the `nodes' array everywhere.  Anytime a field is unref'ed,
  722.       allocate a new node that is a copy of Nnull_string. This avoids
  723.       subtle memory management problems when doing a lot of assignment
  724.       to fields, and tweaking of NF. Make sure that fields_arr[0] always
  725.       has a type of Node_val!
  726.     * field.c (set_NF): If NF is decremented, clear fields between
  727.       NF and parse_high_water, otherwise if NF incremented, clear
  728.       fields between parse_high_water and NF.
  729.     * eval.c (nodetype2str): new function, used for diganostics.
  730.       eval.c (interpret): use nodetype2str when finding invalid node.
  731.       
  732. Mon Mar  4 09:02:28 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  733.  
  734.     * builtin.c (do_toupper, do_tolower): use isascii along with
  735.       isupper/islower before changing case, in case characters have
  736.       the high bit set. This is a hack.
  737.  
  738. Mon Feb 26 22:24:44 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  739.  
  740.     * builtin.c (sub_common): if no match, and called from gensub,
  741.       don't free the temporary string, since the tmp_number then
  742.       writes over it.
  743.  
  744. Sun Feb 25 23:13:01 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  745.  
  746.     * builtin.c (format_tree): fixed %c to treat user input as
  747.       numeric also by adding test for MAYBE_NUM.
  748.  
  749. Tue Feb 20 12:25:50 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  750.  
  751.     * configure.in: Added AC_FUNC_MMAP call and add madvise to
  752.       list of functions to look for.
  753.     * awk.h [IOP_ISMAPPED]: new flag value for mmap support and new
  754.       `getrec' structure member in struct iobuf.
  755.     * io.c (iop_alloc, iop_close): changed to map/unmap input file
  756.       into memory if possible.
  757.       (mmap_get_record): new function to actually retrieve the
  758.       record from mmaped file.
  759.  
  760. Thu Feb  1 08:56:46 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  761.  
  762.     * builtin.c (do_substr): fixed lint message to use indx+1 when
  763.       start position is past end of string.
  764.  
  765. Sun Jan 28 07:00:56 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  766.  
  767.     * builtin.c (do_substr): rationalized handling of missing length
  768.       argument, as well as various accompagnying lint warnings. Previous
  769.       code was slightly bogus. Talk about your Day 1 bugs.
  770.  
  771. Thu Jan 25 14:09:11 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  772.  
  773.     * builtin.c (do_substr): if length exceeds length of actual
  774.       string, do computation of needed substring length *after*
  775.       the lint warning.
  776.  
  777. Wed Jan 24 10:06:16 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  778.  
  779.     * Makefile.in (gawk): Add $(CFLAGS) to link line.
  780.       (Makefile): target depends on the Makefile.in files.
  781.       (OTHERS): Added TAGS and tags to the distribution.
  782.       (local-distclean): New rule.
  783.       (distclean): Use it.
  784.       (maintainer-clean): Don't `make distclean' before running submakes,
  785.       since that removes makefiles needed for the submakes.
  786.     * builtin.c (do_strftime): Remove hard coded limit on length of result.
  787.       Based on code from Paul Eggert (eggert@twinsun.com).
  788.  
  789. Mon Jan 22 13:16:37 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  790.  
  791.     * main.c (usage): takes new fp parameter which is either
  792.       stdout for `--help' (per the GNU Coding Standards) or stderr
  793.       if an error occurs. Fix all calls.
  794.       (version): prints to stdout per the coding stds.
  795.       (copyleft): prints to stdout now, not stderr, and exits.
  796.  
  797. Fri Jan 19 08:10:29 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  798.  
  799.     * regex.h [RE_GNU_AWK]: added RE_CONTEXT_INDEP_OPS to set of
  800.       bits we turn off for regular operation. Breaks things like
  801.       /^+[0-9]+/ to match a literal `+' at the beginning of, say,
  802.       a phone number.
  803.  
  804. Wed Jan 10 23:19:36 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  805.  
  806.     * 3.0.0 polished up and release tar file made.
  807.  
  808. Wed Dec 27 11:46:16 1995  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  809.  
  810.     * 2.94.0 released to porting group (no, I haven't been good
  811.       about this file; I'll do better once 3.0 is released).
  812.  
  813. Mon Aug 28 23:04:30 1995  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  814.  
  815.     * awk.h updated for NeXT - bracket TRUE/FALSE
  816.     * io.c (get_a_record): removed shadowing of 'start' in
  817.     * Makefile.in and doc/Makefile.in: fixed to use gawk.1 and gawk.texi,
  818.       instead of gawk.1.in and gawk.texi.in.
  819.  
  820. Mon Aug 25 11:04:30 1995  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
  821.  
  822.     * 2.90.0 released to porting group.
  823.  
  824. Fri Aug 18 12:43:31 1995  Arnold D. Robbins  <arnold@puny.ssc.com>
  825.  
  826.     * ChangeLog created.
  827.