home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gawk213s.lzh / GAWK213S / CHANGES < prev    next >
Text File  |  1993-07-29  |  32KB  |  1,048 lines

  1. Changes from 2.13.1 to 2.13.2
  2. -----------------------------
  3.  
  4. Toward conformity with GNU standards, configure is a link to mkconf, the latter
  5.   to disappear in the next major release.
  6.  
  7. Update to config/bsd43.
  8.  
  9. Added config/apollo, config/msc60, config/cray2-50, config/interactive2.2
  10.  
  11. sgi33.cc added for compilation using cc ratther than gcc.
  12.  
  13. Ultrix41 now propagates to config.h properly -- as part of a general
  14.   mechanism in configure for kludges -- #define anything from a config file
  15.   just gets tacked onto the end of config.h -- to be used sparingly.
  16.  
  17. Got rid of an unnecessary and troublesome declaration of vprintf().
  18.  
  19. Small improvement in locality of error messages.
  20.  
  21. Try to diagnose use of array as scalar and vice versa -- to be improved in
  22.   the future.
  23.  
  24. Fix for last bug fix for Cray division code--sigh.
  25.  
  26. More changes to test suite to explicitly use sh.  Also get rid of 
  27.   a few generated files.
  28.  
  29. Fixed off-by-one bug in string concatenation code.
  30.  
  31. Fix for use of array that is passed in from a previous function parameter.
  32.   Addition to test suite for above.
  33.  
  34. A number of changes associated with changing NF and access to fields
  35.   beyond the end of the current record.
  36.  
  37. Change to missing/memcmp.c to avoid seg. fault on zero length input.
  38.  
  39. Updates to test suite (including some inadvertently left out of the last patch)
  40.   to invoke sh explicitly (rather than rely on #!/bin/sh) and remove some
  41.   junk files.  test/chem/good updated to correspond to bug fixes.
  42.  
  43. Changes from 2.13.0 to 2.13.1
  44. -----------------------------
  45.  
  46. More configs and PORTS.
  47.  
  48. Fixed bug wherein a simple division produced an erroneous FPE, caused by
  49.   the Cray division workaround -- that code is now #ifdef'd only for
  50.   Cray *and* fixed.
  51.  
  52. Fixed bug in modulus implementation -- it was very close to the above
  53.   code, so I noticed it.
  54.  
  55. Fixed portability problem with limits.h in missing.c
  56.  
  57. Fixed portability problem with tzname and daylight -- define TZNAME_MISSING
  58.   if strftime() is missing and tzname is also.
  59.  
  60. Better support for Latin-1 character set.
  61.  
  62. Fixed portability problem in test Makefile.
  63.  
  64. Updated PROBLEMS file.
  65.  
  66. =============================== gawk-2.13 released =========================
  67. Changes from 2.12.42 to 2.12.43
  68. -------------------------------
  69.  
  70. Typo in awk.y
  71.  
  72. Fixed up strftime.3 and added doc. for %V.
  73.  
  74. Changes from 2.12.41 to 2.12.42
  75. -------------------------------
  76.  
  77. Fixed bug in devopen() -- if you had write permission in /dev,
  78.   it would just create /dev/stdout etc.!!
  79.  
  80. Final (?) VMS update.
  81.  
  82. Make NeXT use GFMT_WORKAROUND
  83.  
  84. Fixed bug in sub_common() for substitute on zero-length match.  Improved the
  85.   code a bit while I was at it.
  86.  
  87. Fixed grammar so that $i++ parses as ($i)++
  88.  
  89. Put support/* back in the distribution (didn't I already do this?!)
  90.  
  91. Changes from 2.12.40 to 2.12.41
  92. -------------------------------
  93.  
  94. VMS workaround for broken %g format.
  95.  
  96. Changes from 2.12.39 to 2.12.40
  97. -------------------------------
  98.  
  99. Minor man page update.
  100.  
  101. Fixed latent bug in redirect().
  102.  
  103. Changes from 2.12.38 to 2.12.39
  104. -------------------------------
  105.  
  106. Updates to test suite -- remove dependence on changing gawk.1 man page.
  107.  
  108. Changes from 2.12.37 to 2.12.38
  109. -------------------------------
  110.  
  111. Fixed bug in use of *= without whitespace following.
  112.  
  113. VMS update.
  114.  
  115. Updates to man page.
  116.  
  117. Option handling updates in main.c
  118.  
  119. test/manyfiles redone and added to bigtest.
  120.  
  121. Fixed latent (on Sun) bug in handling of save_fs.
  122.  
  123. Changes from 2.12.35 to 2.12.36
  124. -------------------------------
  125.  
  126. Release takes on dual personality -- 2.12.36 and 2.13.0 -- any further
  127.   patches before public release won't count for 2.13, although they will for
  128.   2.12 -- be careful to avoid confusion!  patchlevel.h will be the last thing
  129.   to change.
  130.  
  131. Cray updates to deal with arithmetic problems.
  132.  
  133. Minor test suite updates.
  134.  
  135. Fixed latent bug in parser (freeing memory).
  136.  
  137. Changes from 2.12.34 to 2.12.35
  138. -------------------------------
  139.  
  140. VMS updates.
  141.  
  142. Flush stdout at top of err() and stderr at bottom.
  143.  
  144. Fixed bug in eval_condition() -- it wasn't testing for MAYBE_NUM and
  145.   doing the force_number().
  146.  
  147. Included the missing manyfiles.awk and a new test to catch the above bug which
  148.   I am amazed wasn't already caught by the test suite -- it's pretty basic.
  149.  
  150. Changes from 2.12.33 to 2.12.34
  151. -------------------------------
  152.  
  153. Atari updates -- including bug fix.
  154.  
  155. More VMS updates -- also nuke vms/version.com.
  156.  
  157. Fixed bug in handling of large numbers of redirections -- it was probably never
  158.   tested before (blush!).
  159.  
  160. Minor rearrangement of code in r_force_number().
  161.  
  162. Made chem and regtest tests a bit more portable (Ultrix again).
  163.  
  164. Added another test -- manyfiles -- not invoked under any other test -- very Unix
  165.   specific.
  166.  
  167. Rough beginning of LIMITATIONS file -- need my AWK book to complete it.
  168.  
  169. Changes from 2.12.32 to 2.12.33
  170. -------------------------------
  171.  
  172. Expunge debug.? from various files.
  173.  
  174. Remove vestiges of Floor and Ceil kludge.
  175.  
  176. Special case integer division -- mainly for Cray, but maybe someone else
  177.   will benefit.
  178.  
  179. Workaround for iop_close closing an output pipe descriptor on Cray --
  180.   not conditional since I think it may fix a bug on SGI as well and I don't
  181.   think it can hurt elsewhere.
  182.  
  183. Fixed memory leak in assoc_lookup().
  184.  
  185. Small cleanup in test suite.
  186.  
  187. Changes from 2.12.31 to 2.12.32
  188. -------------------------------
  189.  
  190. Nuked debug.c and debugging flag -- there are better ways.
  191.  
  192. Nuked version.sh and version.c in subdirectories.
  193.  
  194. Fixed bug in handling of IGNORECASE.
  195.  
  196. Fixed bug when FIELDWIDTHS was set via -v option.
  197.  
  198. Fixed (obscure) bug when $0 is assigned a numerical value.
  199.  
  200. Fixed so that escape sequences in command-line assignments work (as it already
  201.   said in the comment).
  202.  
  203. Added a few cases to test suite.
  204.  
  205. Moved support/* back into distribution.
  206.  
  207. VMS updates.
  208.  
  209. Changes from 2.12.30 to 2.12.31
  210. -------------------------------
  211.  
  212. Cosmetic manual page changes.
  213.  
  214. Updated sunos3 config.
  215.  
  216. Small changes in test suite including renaming files over 14 chars. in length.
  217.  
  218. Changes from 2.12.29 to 2.12.30
  219. -------------------------------
  220.  
  221. Bug fix for many string concatenations in a row.
  222.  
  223. Changes from 2.12.28 to 2.12.29
  224. -------------------------------
  225.  
  226. Minor cleanup in awk.y
  227.  
  228. Minor VMS update.
  229.  
  230. Minor atari update.
  231.  
  232. Changes from 2.12.27 to 2.12.28
  233. -------------------------------
  234.  
  235. Got rid of the debugging goop in eval.c -- there are better ways.
  236.  
  237. Sequent port.
  238.  
  239. VMS changes left out of the last patch -- sigh!  config/vms.h renamed
  240.   to config/vms-conf.h.
  241.  
  242. Fixed missing/tzset.c
  243.  
  244. Removed use of gcvt() and GCVT_MISSING -- turns out it was no faster than
  245.   sprintf("%g") and caused all sorts of portability headaches.
  246.  
  247. Tuned get_field() -- it was unnecessarily parsing the whole record on reference
  248.   to $0.
  249.  
  250. Tuned interpret() a bit in the rule_node loop.
  251.  
  252. In r_force_number(), worked around bug in Uglix strtod() and got rid of 
  253.   ugly do{}while(0) at Michal's urging.
  254.  
  255. Replaced do_deref() and deref with unref(node) -- much cleaner and a bit faster.
  256.  
  257. Got rid of assign_number() -- contrary to comment, it was no faster than
  258.   just making a new node and freeing the old one.
  259.  
  260. Replaced make_number() and tmp_number() with macros that call mk_number().
  261.  
  262. Changed freenode() and newnode() into macros -- the latter is getnode()
  263.   which calls more_nodes() as necessary.
  264.  
  265. Changes from 2.12.26 to 2.12.27
  266. -------------------------------
  267.  
  268. Completion of Cray 2 port (includes a kludge for floor() and ceil()
  269.   that may go or be changed -- I think that it may just be working around
  270.   a bug in chem that is being tweaked on the Cray).
  271.  
  272. More VMS updates.
  273.  
  274. Moved kludge over yacc's insertion of malloc and realloc declarations
  275.   from protos.h to the Makefile.
  276.  
  277. Added a lisp interpreter in awk to the test suite.  (Invoked under
  278.   bigtest.)
  279.  
  280. Cleanup in r_force_number() -- I had never gotten around to a thorough
  281.   profile of the cache code and it turns out to be not worth it.
  282.  
  283. Performance boost -- do lazy force_number()'ing for fields etc. i.e.
  284.   flag them (MAYBE_NUM) and call force_number only as necessary.
  285.  
  286. Changes from 2.12.25 to 2.12.26
  287. -------------------------------
  288.  
  289. Rework of regexp stuff so that dynamic regexps have reasonable
  290.   performance -- string used for compiled regexp is stored and
  291.   compared to new string -- if same, no recompilation is necessary.
  292.   Also, very dynamic regexps cause dfa-based searching to be turned
  293.   off.
  294.  
  295. Code in dev_open() is back to returning fileno(std*) rather than
  296.   dup()ing it.  This will be documented.  Sorry for the run-around
  297.   on this.
  298.  
  299. Minor atari updates.
  300.  
  301. Minor vms update.
  302.  
  303. Missing file from MSDOS port.
  304.  
  305. Added warning (under lint) if third arg. of [g]sub is a constant and
  306.   handle it properly in the code (i.e. return how many matches).
  307.  
  308. Changes from 2.12.24 to 2.12.25
  309. -------------------------------
  310.  
  311. MSDOS port.
  312.  
  313. Non-consequential changes to regexp variables in preparation for
  314.   a more serious change to fix a serious performance problem.
  315.  
  316. Changes from 2.12.23 to 2.12.24
  317. -------------------------------
  318.  
  319. Fixed bug in output flushing introduced a few patches back.  This caused
  320.   serious performance losses.
  321.  
  322. Changes from 2.12.22 to 2.12.23
  323. -------------------------------
  324.  
  325. Accidently left config/cray2-60 out of last patch.
  326.  
  327. Added some missing dependencies to Makefile.
  328.  
  329. Cleaned up mkconf a bit; made yacc the default parser (no alloca needed,
  330.   right?); added rs6000 hook for signed characters.
  331.  
  332. Made regex.c with NO_ALLOCA undefined work.
  333.  
  334. Fixed bug in dfa.c for systems where free(NULL) bombs.
  335.  
  336. Deleted a few cant_happen()'s that *really* can't hapen.
  337.  
  338. Changes from 2.12.21 to 2.12.22
  339. -------------------------------
  340.  
  341. Added to config stuff the ability to choose YACC rather than bison.
  342.  
  343. Fixed CHAR_UNSIGNED in config.h-dist.
  344.  
  345. Second arg. of strtod() is char ** rather than const char **. 
  346.  
  347. stackb is now initially malloc()'ed since it may be realloc()'ed.
  348.  
  349. VMS updates.
  350.  
  351. Added SIZE_T_MISSING to config stuff and a default typedef to awk.h.
  352.   (Maybe it is not needed on any current systems??)
  353.  
  354. re_compile_pattern()'s size is now size_t unconditionally.
  355.  
  356. Changes from 2.12.20 to 2.12.21
  357. -------------------------------
  358.  
  359. Corrected missing/gcvt.c.
  360.  
  361. Got rid of use of dup2() and thus DUP_MISSING.
  362.  
  363. Updated config/sgi33.
  364.  
  365. Turned on (and fixed) in cmp_nodes() the behaviour that I *hope* will be in
  366.   POSIX 1003.2 for relational comparisons.
  367.  
  368. Small updates to test suite.
  369.  
  370. Changes from 2.12.19 to 2.12.20
  371. -------------------------------
  372.  
  373. Sloppy, sloppy, sloppy!!  I didn't even try to compile the last two
  374.   patches.  This one fixes goofs in regex.c.
  375.  
  376. Changes from 2.12.18 to 2.12.19
  377. -------------------------------
  378.  
  379. Cleanup of last patch.
  380.  
  381. Changes from 2.12.17 to 2.12.18
  382. -------------------------------
  383.  
  384. Makefile renamed to Makefile-dist.
  385.  
  386. Added alloca() configuration to mkconf.  (A bit kludgey.)  Just
  387.   add a single line containing ALLOCA_PW, ALLOCA_S or ALLOCA_C
  388.   to the appropriate config file to have Makefile-dist edited
  389.   accordingly.
  390.  
  391. Reorganized output flushing to correspond with new semantics of
  392.   devopen() on "/dev/std*" etc.
  393.  
  394. Fixed rest of last goof!!
  395.  
  396. Save and restore errno in do_pathopen().
  397.  
  398. Miscellaneous atari updates.
  399.  
  400. Get rid of the trailing comma in the NODETYPE definition (Cray
  401.   compiler won't take it).
  402.  
  403. Try  to make the use of `const' consistent since Cray compiler is
  404.   fussy about that.  See the changes to `basename' and `myname'.
  405.  
  406. It turns out that, according to section 3.8.3 (Macro Replacement)
  407.   of the ANSI Standard:  ``If there are sequences of preprocessing
  408.   tokens within the list of arguments that would otherwise act as
  409.   preprocessing directives, the behavior is undefined.''  That means
  410.   that you cannot count on the behavior of the declaration of
  411.   re_compile_pattern in awk.h, and indeed the Cray compiler chokes on it.
  412.  
  413. Replaced alloca with malloc/realloc/free in regex.c.  It was much simpler
  414.   than expected.  (Inside NO_ALLOCA for now -- by default no alloca.)
  415.  
  416. Added a configuration file, config/cray60, for Unicos-6.0.
  417.  
  418. Changes from 2.12.16 to 2.12.17
  419. -------------------------------
  420.  
  421. Ooops.  Goofed signal use in last patch.
  422.  
  423. Changes from 2.12.15 to 2.12.16
  424. -------------------------------
  425.  
  426. RENAMED *_dir to just * (e.g. missing_dir).
  427. Numerous VMS changes.
  428. Proper inclusion of atari and vms files.
  429. Added experimental (ifdef'd out) RELAXED_CONTINUATION and DEFAULT_FILETYPE
  430.  -- please comment on these!
  431. Moved pathopen() to io.c (sigh).
  432. Put local directory ahead in default AWKPATH.
  433. Added facility in mkconf to echo comments on stdout:  lines beginning
  434.   with "#echo " will have the remainder of the line echoed when mkconf is run.
  435.   Any lines starting with "#" will otherwise be treated as comments.  The
  436.   intent is to be able to say:
  437.   "#echo Make sure you uncomment alloca.c in the Makefile"
  438.   or the like.
  439. Prototype fix for V.4
  440. Fixed version_string to not print leading @(#).
  441. Fixed FIELDWIDTHS to work with strict (turned out to be easy).
  442. Fixed conf for V.2.
  443. Changed semantics of /dev/fd/n to be like on real /dev/fd.
  444. Several configuration and updates in the makefile.
  445. Updated manpage.
  446. Include tzset.c and system.c from missing_dir that were accidently left out of
  447.   the last patch.
  448. Fixed bug in cmdline variable assignment -- arg was getting freed(!) in
  449.   call to variable.
  450. Backed out of parse-time constant folding for now, until I can figure out
  451.   how to do it right.
  452. Fixed devopen() so that getline <"-" works.
  453. Changes from 2.12.15 to 2.12.16
  454. ------------------------------
  455.  
  456. RENAMED *_dir to just * (e.g. missing_dir).
  457.  
  458. Numerous VMS changes.
  459.  
  460. Proper inclusion of atari and vms files.
  461.  
  462. Added experimental (ifdef'd out) RELAXED_CONTINUATION and DEFAULT_FILETYPE
  463.  -- please comment on these!
  464.  
  465. Moved pathopen() to io.c (sigh).
  466.  
  467. Put local directory ahead in default AWKPATH.
  468.  
  469. Added facility in mkconf to echo comments on stdout:  lines beginning
  470.   with "#echo " will have the remainder of the line echoed when mkconf is run.
  471.   Any lines starting with "#" will otherwise be treated as comments.  The
  472.   intent is to be able to say:
  473.   "#echo Make sure you uncomment alloca.c in the Makefile"
  474.   or the like.
  475.  
  476. Prototype fix for V.4
  477.  
  478. Fixed version_string to not print leading @(#).
  479.  
  480. Fixed FIELDWIDTHS to work with strict (turned out to be easy).
  481.  
  482. Fixed conf for V.2.
  483.  
  484. Changed semantics of /dev/fd/n to be like on real /dev/fd.
  485.  
  486. Several configuration and updates in the makefile.
  487.  
  488. Updated manpage.
  489.  
  490. Include tzset.c and system.c from missing_dir that were accidently left out of
  491.   the last patch.
  492.  
  493. Fixed bug in cmdline variable assignment -- arg was getting freed(!) in
  494.   call to variable.
  495.  
  496. Backed out of parse-time constant folding for now, until I can figure out
  497.   how to do it right.
  498.  
  499. Fixed devopen() so that getline <"-" works.
  500.  
  501. Changes from 2.12.14 to 2.12.15
  502. -------------------------------
  503.  
  504. Changed config/* to a condensed form that can be used with mkconf to generate
  505.   a config.h from config.h-dist -- much easier to maintain.  Please chaeck
  506.   carefully against what you had before for a particular system and report
  507.   any problems.  vms.h remains separate since the stuff at the bottom
  508.   didn't quite fit the mkconf model -- hopefully cleared up later.
  509.  
  510. Fixed bug in grammar -- didn't allow function definition to be separated from 
  511.   other rules by a semi-colon.
  512.  
  513. VMS fix to #includes in missing.c -- should we just be including awk.h?
  514.  
  515. Updated README for texinfo.tex version.
  516.  
  517. Updating of copyright in all .[chy] files.
  518.  
  519. Added but commented out Michal's fix to strftime.
  520.  
  521. Added tzset() emulation based on Rick Adams' code.  Added TZSET_MISSING to
  522.     config.h-dist.
  523.  
  524. Added strftime.3 man page for missing_dir
  525.  
  526. More posix:    func, **, **= don't work in -W posix
  527.  
  528. More lint:    ^, ^= not in old awk
  529.  
  530. gawk.1:        removed ref to -DNO_DEV_FD, other minor updating.
  531.  
  532. Style change:  pushbak becomes pushback() in yylex().
  533.  
  534. Changes from 2.12.13 to 2.12.14
  535. -------------------------------
  536.  
  537. Better (?) organization of awk.h -- attempt to keep all system dependencies
  538.   near the top and move some of the non-general things out of the config.h
  539.   files.
  540.  
  541. Change to handling of SYSTEM_MISSING.
  542.  
  543. Small change to ultrix config.
  544.  
  545. Do "/dev/fd/*" etc. checking at runtime.
  546.  
  547. First pass at VMS port.
  548.  
  549. Improvements to error handling (when lexeme spans buffers).
  550.  
  551. Fixed backslash handling -- why didn't I notice this sooner?
  552.  
  553. Added programs from book to test suite and new target "bigtest" to Makefile.
  554.  
  555. Changes from 2.12.12 to 2.12.13
  556. -------------------------------
  557.  
  558. Recognize OFS and ORS specially so that OFS = 9 works without efficiency hit.
  559.   Took advantage of opportunity to tune do_print*() for about 10% win on a
  560.   print with 5 args (i.e. small but significant).
  561.  
  562. Somewhat pervasive changes to reconcile CONVFMT vs. OFMT.
  563.  
  564. Better initialization of builtin vars.
  565.  
  566. Make config/* consistent wrt STRTOL_MISSING.
  567.  
  568. Small portability improvement to alloca.s
  569.  
  570. Improvements to lint code in awk.y
  571.  
  572. Replaced strtol() with a better one by Chris Torek.
  573.  
  574. Changes from 2.12.11 to 2.12.12
  575. -------------------------------
  576.  
  577. Added PORTS file to record successful ports.
  578.  
  579. Added #define const to nothing if not STDC and added const to strtod() header.
  580.  
  581. Added * to printf capabilities and partially implemented ' ' and '+' (has an
  582.   effect for %d only, silently ignored for other formats).  I'm afraid that's
  583.   as far as I want to go before I look at a complete replacement for
  584.   do_sprintf().
  585.  
  586. Added warning for /regexp/ on LHS of MATCHOP.
  587.  
  588. Changes from 2.12.10 to 2.12.11
  589. -------------------------------
  590.  
  591. Small Makefile improvements.
  592.  
  593. Some remaining nits from the NeXT port.
  594.  
  595. Got rid of bcopy() define in awk.h -- not needed anymore (??)
  596.  
  597. Changed private in builtin.c -- it is special on Sequent.
  598.  
  599. Added subset implementation of strtol() and STRTOL_MISSING.
  600.  
  601. A little bit of cleanup in debug.c, dfa.c.
  602.  
  603. Changes from 2.12.9 to 2.12.10
  604. ------------------------------
  605.  
  606. Redid compatability checking and checking for # of args.
  607.  
  608. Removed all references to variables[] from outside awk.y, in preparation
  609.   for a more abstract interface to the symbol table.
  610.  
  611. Got rid of a remaining use of bcopy() in regex.c.
  612.  
  613. Changes from 2.12.8 to 2.12.9
  614. -----------------------------
  615.  
  616. Portability improvements for atari, next and decstation.
  617.  
  618. Bug fix in substr() -- wasn't handling 3rd arg. of -1 properly.
  619.  
  620. Manpage updates.
  621.  
  622. Moved support from src release to doc release.
  623.  
  624. Updated FUTURES file.
  625.  
  626. Added some "lint" warnings.
  627.  
  628. Changes from 2.12.7 to 2.12.8
  629. -----------------------------
  630.  
  631. Changed time() to systime().
  632.  
  633. Changed warning() in snode() to fatal().
  634.  
  635. strftime() now defaults second arg. to current time.
  636.  
  637. Changes from 2.12.6 to 2.12.7
  638. -----------------------------
  639.  
  640. Fixed bug in sub_common() involving inadequate allocation of a buffer.
  641.  
  642. Added some missing files to the Makefile.
  643.  
  644. Changes from 2.12.5 to 2.12.6
  645. -----------------------------
  646.  
  647. Fixed bug wherein non-redirected getline could call iop_close() just
  648.   prior to a call from do_input().
  649.  
  650. Fixed bug in handling of /dev/stdout and /dev/stderr.
  651.  
  652. Changes from 2.12.4 to 2.12.5
  653. -----------------------------
  654.  
  655. Updated README and support directory.
  656.  
  657. Changes from 2.12.3 to 2.12.4
  658. -----------------------------
  659.  
  660. Updated CHANGES and TODO (should have been done in previous 2 patches).
  661.  
  662. Changes from 2.12.2 to 2.12.3
  663. -----------------------------
  664.  
  665. Brought regex.c and alloca.s into line with current FSF versions.
  666.  
  667. Changes from 2.12.1 to 2.12.2
  668. -----------------------------
  669.  
  670. Portability improvements; mostly moving system prototypes out of awk.h
  671.  
  672. Introduction of strftime.
  673.  
  674. Use of CONVFMT.
  675.  
  676. Changes from 2.12 to 2.12.1
  677. -----------------------------
  678.  
  679. Consolidated treatment of command-line assignments (thus correcting the
  680. -v treatment).
  681.  
  682. Rationalized builtin-variable handling into a table-driven process, thus
  683. simplifying variable() and eliminating spc_var().
  684.  
  685. Fixed bug in handling of command-line source that ended in a newline.
  686.  
  687. Simplified install() and lookup().
  688.  
  689. Did away with double-mallocing of identifiers and now free second and later
  690. instances of a name, after the first gets installed into the symbol table.
  691.  
  692. Treat IGNORECASE specially, simplifying a lot of code, and allowing
  693. checking against strict conformance only on setting it, rather than on each
  694. pattern match.
  695.  
  696. Fixed regexp matching when IGNORECASE is non-zero (broken when dfa.c was 
  697. added).
  698.  
  699. Fixed bug where $0 was not being marked as valid, even after it was rebuilt.
  700. This caused mangling of $0.
  701.  
  702.  
  703. Changes from 2.11.1 to 2.12
  704. -----------------------------
  705.  
  706. Makefile:
  707.  
  708. Portability improvements in Makefile.
  709. Move configuration stuff into config.h
  710.  
  711. FSF files:
  712.  
  713. Synchronized alloca.[cs] and regex.[ch] with FSF.
  714.  
  715. array.c:
  716.  
  717. Rationalized hash routines into one with a different algorithm.
  718. delete() now works if the array is a local variable.
  719. Changed interface of assoc_next() and avoided dereferencing past the end of the
  720.   array.
  721.  
  722. awk.h:
  723.  
  724. Merged non-prototype and prototype declarations in awk.h.
  725. Expanded tree_eval #define to short-circuit more calls of r_tree_eval().
  726.  
  727. awk.y:
  728.  
  729. Delinted some of the code in the grammar.
  730. Fixed and improved some of the error message printing.
  731. Changed to accomodate unlimited length source lines.
  732. Line continuation now works as advertised.
  733. Source lines can be arbitrarily long.
  734. Refined grammar hacks so that /= assignment works.  Regular expressions
  735.   starting with /= are recognized at the beginning of a line, after && or ||
  736.   and after ~ or !~.  More contexts can be added if necessary.
  737. Fixed IGNORECASE (multiple scans for backslash).
  738. Condensed expression_lists in array references.
  739. Detect and warn for correct # args in builtin functions -- call most of them
  740.   with a fixed number (i.e. fill in defaults at parse-time rather than at
  741.   run-time).
  742. Load ENVIRON only if it is referenced (detected at parse-time).
  743. Treat NF, FS, RS, NR, FNR specially at parse time, to improve run time.
  744. Fold constant expressions at parse time.
  745. Do make_regexp() on third arg. of split() at parse tiem if it is a constant.
  746.  
  747. builtin.c:
  748.  
  749. srand() returns 0 the first time called.
  750. Replaced alloca() with malloc() in do_sprintf().
  751. Fixed setting of RSTART and RLENGTH in do_match().
  752. Got rid of get_{one,two,three} and allowance for variable # of args. at
  753.   run-time -- this is now done at parse-time.
  754. Fixed latent bug in [g]sub whereby changes to $0 would never get made.
  755. Rewrote much of sub_common() for simplicity and performance.
  756. Added ctime() and time() builtin functions (unless -DSTRICT).  ctime() returns
  757.   a time string like the C function, given the number of seconds since the epoch
  758.   and time() returns the current time in seconds.
  759. do_sprintf() now checks for mismatch between format string and number of
  760.   arguments supplied.
  761.  
  762. dfa.c
  763.  
  764. This is borrowed (almost unmodified) from GNU grep to provide faster searches.
  765.  
  766. eval.c
  767.  
  768. Node_var, Node_var_array and Node_param_list handled from macro rather
  769.   than in r_tree_eval().
  770. Changed cmp_nodes() to not do a force_number() -- this, combined with a 
  771.     force_number() on ARGV[] and ENVIRON[] brings it into line with other awks
  772. Greatly simplified cmp_nodes().
  773. Separated out Node_NF, Node_FS, Node_RS, Node_NR and Node_FNR in get_lhs().
  774. All adjacent string concatenations now done at once.
  775.  
  776. field.c
  777.  
  778. Added support for FIELDWIDTHS.
  779. Fixed bug in get_field() whereby changes to a field were not always
  780.   properly reflected in $0.
  781. Reordered tests in parse_field() so that reference off the end of the buffer
  782.   doesn't happen.
  783. set_FS() now sets *parse_field i.e. routine to call depending on type of FS.
  784. It also does make_regexp() for FS if needed.  get_field() passes FS_regexp
  785.   to re_parse_field(), as does do_split().
  786. Changes to set_field() and set_record() to avoid malloc'ing and free'ing the
  787.   field nodes repeatedly.  The fields now just point into $0 unless they are
  788.   assigned to another variable or changed.  force_number() on the field is
  789.   *only* done when the field is needed.
  790.  
  791. gawk.1
  792.  
  793. Fixed troff formatting problem on .TP lines.
  794.  
  795. io.c
  796.  
  797. Moved some code out into iop.c.
  798. Output from pipes and system() calls is properly synchronized.
  799. Status from pipe close properly returned.
  800. Bug in getline with no redirect fixed.
  801.  
  802. iop.c
  803.  
  804. This file contains a totally revamped get_a_record and associated code.
  805.  
  806. main.c
  807.  
  808. Command line programs no longer use a temporary file.
  809. Therefore, tmpnam() no longer required.
  810. Deprecated -a and -e options -- they will go away in the next release,
  811.   but for now they cause a warning.
  812. Moved -C, -V, -c options to -W ala posix.
  813. Added -W posix option: throw out \x
  814. Added -W lint option.
  815.  
  816.  
  817. node.c
  818.  
  819. force_number() now allows pure numerics to have leading whitespace.
  820. Added make_string facility to optimize case of adding an already malloc'd
  821.   string.
  822. Cleaned up and simplified do_deref().
  823. Fixed bug in handling of stref==255 in do_deref().
  824.  
  825. re.c
  826.  
  827. contains the interface to regexp code
  828.  
  829. Changes from 2.11.1 to FSF version of same
  830. ------------------------------------------
  831. Thu Jan  4 14:19:30 1990  Jim Kingdon  (kingdon at albert)
  832.  
  833.     * Makefile (YACC): Add -y to bison part.
  834.  
  835.     * missing.c: Add #include <stdio.h>.
  836.  
  837. Sun Dec 24 16:16:05 1989  David J. MacKenzie  (djm at hobbes.ai.mit.edu)
  838.  
  839.     * * Makefile: Add (commented out) default defines for Sony News.
  840.  
  841.     * awk.h: Move declaration of vprintf so it will compile when
  842.     -DVPRINTF_MISSING is defined.
  843.  
  844. Mon Nov 13 18:54:08 1989  Robert J. Chassell  (bob at apple-gunkies.ai.mit.edu)
  845.  
  846.         * gawk.texinfo: changed @-commands that are not part of the
  847.           standard, currently released texinfmt.el to those that are.
  848.           Otherwise, only people with the as-yet unreleased makeinfo.c can
  849.           format this file.
  850.  
  851. Changes from 2.11beta to 2.11.1 (production)
  852. --------------------------------------------
  853.  
  854. Went from "beta" to production status!!!
  855.  
  856. Now flushes stdout before closing pipes or redirected files to
  857. synchonize output.
  858.  
  859. MS-DOS changes added in.
  860.  
  861. Signal handler return type parameterized in Makefile and awk.h and
  862. some lint removed.  debug.c cleaned up.
  863.  
  864. Fixed FS splitting to never match null strings, per book.
  865.  
  866. Correction to the manual's description of FS.
  867.  
  868. Some compilers break on char *foo = "string" + 4 so fixed version.sh and
  869. main.c.
  870.  
  871. Changes from 2.10beta to 2.11beta
  872. ---------------------------------
  873.  
  874. This release fixes all reported bugs that we could reproduce.  Probably
  875. some of the changes are not documented here.
  876.  
  877. The next release will probably not be a beta release!
  878.  
  879. The most important change is the addition of the -nostalgia option. :-)
  880.  
  881. The documentation has been improved and brought up-to-date.
  882.  
  883. There has been a lot of general cleaning up of the code that is not otherwise
  884. documented here.  There has been a movement toward using standard-conforming
  885. library routines and providing them (in missing.d) for systems lacking them.
  886. Improved (hopefully) configuration through Makfile modifications and missing.c.
  887. In particular, straightened out confusion over vprintf #defines, declarations
  888. etc.
  889.  
  890. Deleted RCS log comments from source, to reduce source size by about one third.
  891. Most of them were horribly out-of-date, anyway.
  892.  
  893. Renamed source files to reflect (for the most part) their contents.
  894.  
  895. More and improved error messages.  Cleanup and fixes to yyerror().
  896. String constants are not altered in input buffer, so error messages come out 
  897. better.  Fixed usage message.  Make use of ANSI C strerror() function
  898. (provided).
  899.  
  900. Plugged many more memory leaks.  The memory consumption is now quite
  901. reasonable over a wide range of programs.
  902.  
  903. Uses volatile declaration if STDC > 0 to avoid problems due to longjmp.
  904.  
  905. New -a and -e options to use awk or egrep style regexps, respectively,
  906. since POSIX says awk should use egrep regexps.  Default is -a.
  907.  
  908. Added -v option for setting variables before the first file is encountered.
  909. Version information now uses -V and copyleft uses -C.
  910.  
  911. Added a patchlevel.h file and its use for -V and -C.
  912.  
  913. Append_right() optimized for major improvement to programs with a *lot*
  914. of statements.
  915.  
  916. Operator precedence has been corrected to match draft Posix.
  917.  
  918. Tightened up grammar for builtin functions so that only length
  919. may be called without arguments or parentheses.
  920.  
  921. /regex/ is now a normal expression that can appear in any expression
  922. context.
  923.  
  924. Allow /= to begin a regexp.  Allow ..[../..].. in a regexp.
  925.  
  926. Allow empty compound statements ({}).
  927.  
  928. Made return and next illegal outside a function and in BEGIN/END respectively.
  929.  
  930. Division by zero is now illegal and causes a fatal error.
  931.  
  932. Fixed exponentiation so that x ^ 0 and x ^= 0 both return 1.
  933.  
  934. Fixed do_sqrt, do_log, and do_exp to do argument/return checking and
  935. print an error message, per the manual.
  936.  
  937. Fixed main to catch SIGSEGV to get source and data file line numbers.
  938.  
  939. Fixed yyerror to print the ^ at the beginning of the bad token, not the end.
  940.  
  941. Fix to substr() builtin:  it was failing if the arguments
  942. weren't already strings.
  943.  
  944. Added new node value flag NUMERIC to indicate that a variable is
  945. purely a number as opposed to type NUM which indicates that
  946. the node's numeric value is valid.  This is set in make_number(),
  947. tmp_number and r_force_number() when appropriate and used in
  948. cmp_nodes().  This fixed a bug in comparison of variables that had
  949. numeric prefixes.  The new code uses strtod() and eliminates is_a_number().
  950. A simple strtod() is provided for systems lacking one.  It does no
  951. overflow checking, so could be improved.
  952.  
  953. Simplification and efficiency improvement in force_string.
  954.  
  955. Added performance tweak in r_force_number().
  956.  
  957. Fixed a bug with nested loops and break/continue in functions.
  958.  
  959. Fixed inconsistency in handling of empty fields when $0 has to be rebuilt.
  960. Happens to simplify rebuild_record().
  961.  
  962. Cleaned up the code associated with opening a pipe for reading.  Gawk
  963. now has its own popen routine (gawk_popen) that allocates an IOBUF
  964. and keeps track of the pid of the child process.  gawk_pclose
  965. marks the appropriate child as defunct in the right struct redirect.
  966.  
  967. Cleaned up and fixed close_redir().
  968.  
  969. Fixed an obscure bug to do with redirection.  Intermingled ">" and ">>"
  970. redirects did not output in a predictable order.
  971.  
  972. Improved handling of output bufferring:  now all print[f]s redirected to a tty
  973. or pipe are flushed immediately and non-redirected output to a tty is flushed
  974. before the next input record is read.
  975.  
  976. Fixed a bug in get_a_record() where bcopy() could have copied over
  977. a random pointer.
  978.  
  979. Fixed a bug when RS="" and records separated by multiple blank lines.
  980.  
  981. Got rid of SLOWIO code which was out-of-date anyway.
  982.  
  983. Fix in get_field() for case where $0 is changed and then $(n) are
  984. changed and then $0 is used.
  985.  
  986. Fixed infinite loop on failure to open file for reading from getline.
  987. Now handles redirect file open failures properly.
  988.  
  989. Filenames such as /dev/stdin now allowed on the command line as well as
  990. in redirects.
  991.  
  992. Fixed so that gawk '$1' where $1 is a zero tests false.
  993.  
  994. Fixed parsing so that `RLENGTH -1' parses the same as `RLENGTH - 1',
  995. for example.
  996.  
  997. The return from a user-defined function now defaults to the Null node.
  998. This fixes a core-dump-causing bug when the return value  of a function
  999. is used and that function returns no value.
  1000.  
  1001. Now catches floating point exceptions to avoid core dumps.
  1002.  
  1003. Bug fix for deleting elements of an array -- under some conditions, it was
  1004. deleting more than one element at a time.
  1005.  
  1006. Fix in AWKPATH code for running off the end of the string.
  1007.  
  1008. Fixed handling of precision in *printf calls.  %0.2d now works properly,
  1009. as does %c.  [s]printf now recognizes %i and %X.
  1010.  
  1011. Fixed a bug in printing of very large (>240) strings.
  1012.  
  1013. Cleaned up erroneous behaviour for RS == "".
  1014.  
  1015. Added IGNORECASE support to index().
  1016.  
  1017. Simplified and fixed newnode/freenode.
  1018.  
  1019. Fixed reference to $(anything) in a BEGIN block.
  1020.  
  1021. Eliminated use of USG rand48().
  1022.  
  1023. Bug fix in force_string for machines with 16-bit ints.
  1024.  
  1025. Replaced use of mktemp() with tmpnam() and provided a partial implementation of
  1026. the latter for systems that don't have it.
  1027.  
  1028. Added a portability check for includes in io.c.
  1029.  
  1030. Minor portability fix in alloc.c plus addition of xmalloc().
  1031.  
  1032. Portability fix:  on UMAX4.2, st_blksize is zero for a pipe, thus breaking
  1033. iop_alloc() -- fixed.
  1034.  
  1035. Workaround for compiler bug on Sun386i in do_sprintf.
  1036.  
  1037. More and improved prototypes in awk.h.
  1038.  
  1039. Consolidated C escape parsing code into one place.
  1040.  
  1041. strict flag is now turned on only when invoked with compatability option.
  1042. It now applies to fewer things.
  1043.  
  1044. Changed cast of f._ptr in vprintf.c from (unsigned char *) to (char *).
  1045. Hopefully this is right for the systems that use this code (I don't).
  1046.  
  1047. Support for pipes under MSDOS added.
  1048.