--- - branch: MAIN date: Fri Feb 24 20:57:50 UTC 2023 files: - new: '1.44' old: '1.43' path: pkgsrc/lang/nawk/Makefile pathrev: pkgsrc/lang/nawk/Makefile@1.44 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/FIXES pathrev: pkgsrc/lang/nawk/files/FIXES@1.3 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/README pathrev: pkgsrc/lang/nawk/files/README@1.3 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/awkgram.y pathrev: pkgsrc/lang/nawk/files/awkgram.y@1.3 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/lex.c pathrev: pkgsrc/lang/nawk/files/lex.c@1.3 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/main.c pathrev: pkgsrc/lang/nawk/files/main.c@1.3 type: modified - new: '1.3' old: '1.2' path: pkgsrc/lang/nawk/files/maketab.c pathrev: pkgsrc/lang/nawk/files/maketab.c@1.3 type: modified - new: '1.1' old: '0' path: pkgsrc/lang/nawk/files/LICENSE pathrev: pkgsrc/lang/nawk/files/LICENSE@1.1 type: added - new: '1.1' old: '0' path: pkgsrc/lang/nawk/files/awkgram.tab.c pathrev: pkgsrc/lang/nawk/files/awkgram.tab.c@1.1 type: added - new: '1.1' old: '0' path: pkgsrc/lang/nawk/files/awkgram.tab.h pathrev: pkgsrc/lang/nawk/files/awkgram.tab.h@1.1 type: added - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/Makefile pathrev: pkgsrc/lang/nawk/files/Makefile@1.4 type: modified - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/README.pkgsrc pathrev: pkgsrc/lang/nawk/files/README.pkgsrc@1.4 type: modified - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/awk.h pathrev: pkgsrc/lang/nawk/files/awk.h@1.4 type: modified - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/b.c pathrev: pkgsrc/lang/nawk/files/b.c@1.4 type: modified - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/proctab.c pathrev: pkgsrc/lang/nawk/files/proctab.c@1.4 type: modified - new: '1.4' old: '1.3' path: pkgsrc/lang/nawk/files/run.c pathrev: pkgsrc/lang/nawk/files/run.c@1.4 type: modified - new: '0' old: '1.1' path: pkgsrc/lang/nawk/files/awk.1 pathrev: pkgsrc/lang/nawk/files/awk.1@0 type: deleted - new: '1.5' old: '1.4' path: pkgsrc/lang/nawk/files/lib.c pathrev: pkgsrc/lang/nawk/files/lib.c@1.5 type: modified - new: '1.5' old: '1.4' path: pkgsrc/lang/nawk/files/proto.h pathrev: pkgsrc/lang/nawk/files/proto.h@1.5 type: modified - new: '1.5' old: '1.4' path: pkgsrc/lang/nawk/files/tran.c pathrev: pkgsrc/lang/nawk/files/tran.c@1.5 type: modified - new: '1.2' old: '1.1' path: pkgsrc/lang/nawk/files/nawk.1 pathrev: pkgsrc/lang/nawk/files/nawk.1@1.2 type: modified - new: '1.2' old: '1.1' path: pkgsrc/lang/nawk/files/parse.c pathrev: pkgsrc/lang/nawk/files/parse.c@1.2 type: modified - new: '0' old: '1.2' path: pkgsrc/lang/nawk/files/ytab.c pathrev: pkgsrc/lang/nawk/files/ytab.c@0 type: deleted - new: '0' old: '1.2' path: pkgsrc/lang/nawk/files/ytab.h pathrev: pkgsrc/lang/nawk/files/ytab.h@0 type: deleted id: 20230224T205750Z.9cad9c0f33a962671bbca1763fd293d7c9118584 log: "lang/nawk: update to release 20220122.\n\n## CHANGES\n\n2020-07-30 Arnold D. Robbins \n\n\tBy fiat, we use bison for $(YACC). Trying to accommodate\n\tdifferent versions didn't work.\n\n\t* makefile: Significant cleanup. Replace all ytab* references\n\twith awkgram.tab.* and simplify definition of YACC.\n\t* .gitignore: Remove ytab* references.\n\t* b.c, lex.c, maketab.c, parse.c, run.c: Replace include of ytab.h\n\twith awkgram.tab.h.\n\t* lib.c, main.c, tran.c: Remove include of ytab.h, wasn't needed.\n\n2020-01-20 Arnold D. Robbins \n\n\t* run.c (openfile): Set the close-on-exec flag for file\n\tand pipe redirections that aren't stdin/stdout/stderr.\n\n2020-01-06 \ Arnold D. Robbins \n\n\tMinor fixes.\n\t* b.c (replace_repeat): Turn init_q back into an int.\n\t* lex.c (string): Use \\a instead of \\007.\n\t* tran.c (catstr): Use snprintf instead of sprintf.\n\n2020-01-01 \ Arnold D. Robbins \n\n\t* tran.c (syminit, arginit, envinit): Free sval member before\n\tsetting it. Thanks to valgrind.\n\t* b.c: Small formatting cleanups in several routines.\n\n2019-12-27 Arnold D. Robbins \n\n\t* b.c (replace_repeat): Fix a bug whereby a{0,3} could match\n\tfour a's. Thanks to Anonymous AWK fan \n\tfor the report. Also, minor code formatting cleanups.\n\t* testdir/T.int-expr: New file.\n\n2019-12-11 Arnold D. Robbins \n\n\t* README: Renamed to ...\n\t* README.md: ... this. Cleaned up some as well,\n\tincluding moving to Markdown.\n\n2019-11-08 Arnold D. Robbins \n\n\t* test/T.chem: Use $oldawk instead of hardwiring 'awk'.\n\t* test/T.lilly: Remove gawk warnings from output, improves\n\tportability.\n\n2019-10-07 Arnold D. Robbins \n\n\t* b.c (fnematch): Change type of pbuf from unsigned char to char.\n\t* proto.h (fnematch): Ditto.\n\n2019-10-06 Arnold D. Robbins \n\n\t* lib.c (readrec): Allow RS a regular expression. Imported\n\tthe code from the NetBSD awk.\n\t* b.c (fnematch): New function for implementing the feature.\n\t* awk.1: Updated.\n\t* main.c (version): Updated.\n\n2019-06-24 Arnold D. Robbins \n\n\t* makefile: Revise to take into account there is no more awktest.tar,\n\tadd targets 'check' and 'test', and also 'testclean' to clean up\n\tafter test run. Have 'clean' and 'cleaner' depend upon 'testclean'.\n\n2019-06-23 Arnold D. Robbins \n\n\t* testdir: Extracted from awktest.tar and added to Git.\n\t* awktest.tar: Removed.\n\n2019-06-06 Arnold D. Robbins \ \n\n\t* awk.1: Fix a typo, minor edits.\n\n2019-06-05 \ Arnold D. Robbins \n\n\t* b.c (relex): Count parentheses and treat umatched right paren\n\tas a literal character.\n\t* awktest.tar (testdir/T.re): Added a test case.\n\t* main.c (version): Updated.\n\n2019-05-29 Arnold D. Robbins \n\n\t* lib.c (isclvar): Remove check for additional '=' after\n\tfirst one. No longer needed.\n\n2019-01-26 Arnold D. Robbins \ \n\n\t* main.c (version): Updated.\n\n2019-01-25 Arnold D. Robbins \n\n\t* run.c (awkgetline): Check for numeric value in all getline\n\tvariants. See the numeric-getline.* files in bugs-fixed directory.\n\n2018-08-29 Arnold D. Robbins \n\n\t* REGRESS: Check for existence of a.out. If not there, run\n\tmake. Enable core dumps for T.arnold system status test\n\tto work on MacOS X.\n\n2018-08-22 Arnold D. Robbins \n\n\t* awktest.tar (testdir/T.expr): Fix test for unary plus.\n\n2018-08-22 Arnold D. Robbins \n\n\t* REGRESS: Extract tests if necessary, set PATH to include '.'.\n\t* regdir/beebe.tar (Makefile): Fix longwrds test to prefix\n\tsort with LC_ALL=C.\n\t* awktest.tar: Updated from fixed test suite, directory\n\tit extracts is now called 'testdir' to match what's in top-level\n\tREGRESS script.\n\t* regdir: Removed, as Brian wants to keep the test suite in\n\tthe tar file.\n\n2018-08-22 Arnold D. Robbins \n\n\t* FIXES, lib.c, run.c, makefile, main.c: Merge from Brian's tree.\n\t* REGRESS: New file, from Brian.\n\t* awktest.tar: Restored from Brian's tree.\n\n2018-08-22 Arnold D. Robbins \n\n\t* awkgram.y (UPLUS): New token. In the grammar, call op1()\n\twith it.\n\t* maketab.c (proc): Add entry for UPLUS.\n\t* run.c (arith): Handle UPLUS.\n\t* main.c (version): Updated.\n\t* bugs-fixed/unary-plus.awk, bugs-fixed/unary-plus.bad,\n\tbugs-fixed/unary-plus.ok: New files.\n\n2018-08-10 Arnold D. Robbins \n\n\t* TODO: Updated.\n\t* awk.1: Improve use of macros, add some additional explanation\n\tin a few places, alphabetize list of variables.\n\n2018-08-08 Arnold D. Robbins \ \n\n\t* awk.h (Cell): Add new field `fmt' to track xFMT value used\n\tfor a string conversion.\n\t[CONVC, CONVO]: New flag macros.\n\t* bugs-fixed/README: Updated.\n\t* bugs-fixed/string-conv.awk, bugs-fixed/string-conv.bad,\n\tbugs-fixed/string-conv.ok: New files.\n\t* main.c (version): Updated.\n\t* proto.h (flags2str): Add declaration.\n\t* tran.c (setfval): Clear CONVC and CONVO flags and set vp->fmt\n\tto NULL.\n\t(setsval): Ditto. Add large comment and new code to manage\n\tcorrect conversion of number to string based on various flags\n\tand the value of vp->fmt. The idea is to not convert again\n\tif xFMT is the same as before and we're doing the same conversion.\n\tOtherwise, clear the old flags, set the new, and reconvert.\n\t(flags2str): New function. For debug prints and for use from a debugger.\n\n2018-08-05 Arnold D. Robbins \n\n\tFix filename conflicts in regdir where the only difference was\n\tin letter case. This caused problems on Windows systems.\n\n\t* regdir/Compare.T1: Renamed from regdir/Compare.T.\n\t* regdir/t.delete0: Renamed from regdir/t.delete.\n\t* regdir/t.getline1: Renamed from regdir/t.getline.\n\t* regdir/t.redir1: Renamed from regdir/t.redir.\n\t* regdir/t.split1: Renamed from regdir/t.split.\n\t* regdir/t.sub0: Renamed from regdir/t.sub.\n\t* regdir/REGRESS: Adjusted.\n\n2018-08-04 Arnold D. Robbins \n\n\tWith scalpel, tweasers, magnifying glass and bated breath,\n\tborrow code from the NetBSD version of nawk to fix the years-old\n\tbug whereby decrementing the value of NF did not change the\n\trecord.\n\n\t* lib.c (fldbld): Set donerec to 1 when done.\n\t(setlastfld): New function.\n\t* proto.h (setlastfld): Add declaration.\n\t* run.c (copycell): Make code smarter about flags (from NetBSD code).\n\t* tran.c (setfree): New function.\n\t* tran.c (setfval): Normalize negative zero to positive zero.\n\tIf setting NF, clear donerec and call setlastfld().\n\t(setsval): Remove call to save_old_OFS(). If setting OFS, call\n\trecbld(). If setting NF, clear donerec and call setlastfld().\n\n\tAs part of the process, revert OFS-related changes of 2018-05-22:\n\n\t* awk.h (saveOFS, saveOFSlen, save_old_OFS): Remove declarations.\n\t* lib.c (recbld): Use *OFS instead of saveOFS.\n\t* run.c (saveOFS, saveOFSlen, save_old_OFS): Remove.\n\t* tran.c (syminit): Remove initialization of saveOFS and saveOFSlen.\n\n\tGeneral stuff that goes along with all this:\n\n\t* bugs-fixed/README: Updated.\n\t* bugs-fixed/decr-NF.awk, bugs-fixed/decr-NF.bad,\n\tbugs-fixed/decr-NF.ok: New files.\n\t* main.c (version): Updated.\n\t* regdir/README.TESTS: Fix awk book title.\n\t* regdir/T.misc: Revise test to match fixed code.\n\t* run.c (format): Increase size of buffer used for %a test. (Unrelated\n\tto NF or OFS, but fixes a compiler complaint.)\n\n2018-06-07 Arnold D. Robbins \n\n\t* regdir/beebe.tar: Fix longwrds.ok so that the test will pass.\n\tThe file was incorrectly sorted.\n\n2018-06-06 Arnold D. Robbins \n\n\t* regdir/T.lilly: Fix the bug again in the second instance\n\tof the code. Thanks to BWK for pointing this out.\n\n2018-05-31 Arnold D. Robbins \n\n\t* regdir/T.lilly: Fix a syntax error and ordering bug\n\tin creating the 'foo' file.\n\n2018-05-23 \ Arnold D. Robbins \n\n\t* awk.1: Remove standalone 'awk' at the top of file, it messed up\n\tthe formatting. Arrange built-in variable list in alphabetical\n\torder.\n\n2018-05-23 Arnold D. Robbins \n\n\t* main.c (version): Add my email address and a date so that\n\tusers can tell this isn't straight BWK awk.\n\t* README.md: Minor updates.\n\t* TODO: Updated.\n\n2018-05-22 \ Arnold D. Robbins \n\n\tAdd POSIX-required formats %a and %A.\n\n\t* run.c (format): Check for %a support in C library. If there,\n\tallow %a and %A as valid formats.\n\t* TODO: Updated.\n\t* bugs-fixed/README: Updated.\n\t* bugs-fixed/a-format.awk, bugs-fixed/a-format.bad,\n\tbugs-fixed/a-format.ok: New files.\n\n2018-05-22 Arnold D. Robbins \n\n\t* FIXES: Restored a line from a much earlier version that\n\tapparently got lost when the dates were reordered.\n\t* TODO: Updated.\n\n2018-05-22 Arnold D. Robbins \n\n\t* README.md: New file.\n\n2018-05-22 Arnold D. Robbins \n\n\t* regdir/echo.c, regdir/time.c: Minor fixes to compile without\n\twarning on current GCC / Linux.\n\n2018-05-22 Arnold D. Robbins \n\n\t* TODO: New file.\n\n2018-05-22 Arnold D. Robbins \n\n\t* makefile (gitadd, gitpush): Remove these targets. They\n\tshould not be automated and were incorrect for things that\n\twould be done regularly.\n\n2018-05-22 Arnold D. Robbins \n\n\tFix nawk so that [[:blank:]] only matches space and tab instead\n\tof any whitespace character, originally made May 10, 2018.\n\tSee bugs-fixed/space.awk.\n\n\tThis appears to have been a thinko on Brian's part.\n\n\t* b.c (charclasses): Use xisblank() function for [[:blank:]].\n\t* bugs-fixed/README: Updated.\n\t* bugs-fixed/space.awk, bugs-fixed/space.bad,\n\tbugs-fixed/space.ok: New files.\n\n2018-05-22 Arnold D. Robbins \n\n\t* .gitignore: New file.\n\n2018-05-22 \ Arnold D. Robbins \n\n\tFix nawk to provide reasonable exit status for system(),\n\ta la gawk, originally made March 12, 2016. See\n\tbugs-fixed/system-status.awk.\n\n\t* run.c (bltin): For FSYSTEM, use the macros defined for wait(2)\n\tto produce a reasonable exit value, instead of doing a floating-point\n\tdivision by 256.\n\t* awk.1: Document the return status values.\n\t* bugs-fixed/README: Updated.\n\t* bugs-fixed/system-status.awk, bugs-fixed/system-status.bad,\n\tbugs-fixed/system-status.ok: New files.\n\n2018-05-22 Arnold D. Robbins \n\n\tBug fix with respect to rebuilding a record, originally\n\tmade August 19, 2014. See bugs-fixed/ofs-rebuild.awk.\n\n\t* awk.h (saveOFS, saveOFSlen): Declare new variables.\n\t* lib.c (recbld): Use them when rebuilding the record.\n\t* run.c (saveOFS, saveOFSlen): Define new variables.\n\t(save_old_OFS): New function to save OFS aside.\n\t* tran.c (syminit): Initialize saveOFS and saveOFSlen.\n\t(setsval): If setting a field, call save_old_OFS().\n\t* bugs-fixed/README, bugs-fixed/ofs-rebuild.awk,\n\tbugs-fixed/ofs-rebuild.bad, bugs-fixed/ofs-rebuild.ok: New files.\n\n2018-05-22 Arnold D. Robbins \ \n\n\t* makefile (YACC): Use bison.\n\n2018-05-22 Arnold D. Robbins \n\n\t* ChangeLog: Created.\n\t* regdir: Created. Based on contents of awktest.a.\n\t* .gitattributes: Created, to preserve CR LF in regdir/t.crlf.\n\t* awktest.a: Removed.\n\t* regdir/T.gawk, regdir/T.latin1: Updated from awktest.tar.\n\t* awktest.tar: Removed.\n" module: pkgsrc subject: 'CVS commit: pkgsrc/lang/nawk' unixtime: '1677272270' user: vins