From f1a5edb33fd82cad02770040415ca0ddead64799 Mon Sep 17 00:00:00 2001 From: jschauma Date: Thu, 26 Sep 2002 17:12:43 +0000 Subject: According to BWK's homepage, the "the one true awk" was updated on June 28, 2002 so update this to version nawk-20020628. Changes: (note credit to jdolecek :) Jun 28, 2002: modified run/format() and tran/getsval() to do a slightly better job on using OFMT for output from print and CONVFMT for other number->string conversions, as promised by posix and done by gawk and mawk. there are still places where it doesn't work right if CONVFMT is changed; by then the STR attribute of the variable has been irrevocably set. thanks to arnold robbins for code and examples. fixed subtle bug in format that could get core dump. thanks to Jaromir Dolecek for finding and fixing. minor cleanup in run.c / format() at the same time. added some tests for null pointers to debugging printf's, which were never intended for external consumption. thanks to dave kerns (dkerns@lucent.com) for pointing this out. GNU compatibility: an empty regexp matches anything (thanks to dag-erling smorgrav, des@ofug.org). subject to reversion if this does more harm than good. pervasive small changes to make things more const-correct, as reported by gcc's -Wwrite-strings. as it says in the gcc manual, may be more nuisance than useful. provoked by a suggestion and code from arnaud desitter, arnaud@nimbus.geog.ox.ac.uk minor documentation changes to note that this now compiles out of the box on Mac OS X. Feb 10, 2002: changed types in posix chars structure to quiet solaris cc. Jan 1, 2002: fflush() or fflush("") flushes all files and pipes. length(arrayname) returns number of elements; thanks to arnold robbins for suggestion. added a makefile.win to make it easier to build on windows. based on dan allen's buildwin.bat. Nov 16, 2001: added support for posix character class names like [:digit:], which are not exactly shorter than [0-9] and perhaps no more portable. thanks to dag-erling smorgrav for code. Feb 16, 2001: removed -m option; no longer needed, and it was actually broken (noted thanks to volker kiefel). Feb 10, 2001: fixed an appalling bug in gettok: any sequence of digits, +,-, E, e, and period was accepted as a valid number if it started with a period. this would never have happened with the lex version. other 1-character botches, now fixed, include a bare $ and a bare " at the end of the input. Feb 7, 2001: more (const char *) casts in b.c and tran.c to silence warnings. --- lang/nawk/Makefile | 4 ++-- lang/nawk/distinfo | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lang/nawk') diff --git a/lang/nawk/Makefile b/lang/nawk/Makefile index 6ab4be0b139..f72252ab7ea 100644 --- a/lang/nawk/Makefile +++ b/lang/nawk/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2001/09/09 20:36:32 agc Exp $ +# $NetBSD: Makefile,v 1.6 2002/09/26 17:12:43 jschauma Exp $ # DISTNAME= awk -PKGNAME= nawk-20001115 +PKGNAME= nawk-20020628 CATEGORIES= lang MASTER_SITES= http://cm.bell-labs.com/who/bwk/ diff --git a/lang/nawk/distinfo b/lang/nawk/distinfo index 8efcca1dc45..ebd48f0d748 100644 --- a/lang/nawk/distinfo +++ b/lang/nawk/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.2 2001/04/19 15:00:54 agc Exp $ +$NetBSD: distinfo,v 1.3 2002/09/26 17:12:43 jschauma Exp $ -SHA1 (nawk-20001115/awk.tar.gz) = 7c4ca5cd5477b38d76365625eaa49bda00d35282 -Size (nawk-20001115/awk.tar.gz) = 80865 bytes +SHA1 (nawk-20020628/awk.tar.gz) = 54d3a52f0b0e1e40bb74aa714d24306ca8b2be24 +Size (nawk-20020628/awk.tar.gz) = 83400 bytes -- cgit v1.2.3