svn commit: r224772 - vendor/one-true-awk/dist
Ruslan Ermilov
ru at FreeBSD.org
Thu Aug 11 04:58:21 UTC 2011
Author: ru
Date: Thu Aug 11 04:58:20 2011
New Revision: 224772
URL: http://svn.freebsd.org/changeset/base/224772
Log:
Vendor import of bwk's 10-Aug-2011 release.
Modified:
vendor/one-true-awk/dist/FIXES
vendor/one-true-awk/dist/lib.c
vendor/one-true-awk/dist/main.c
Modified: vendor/one-true-awk/dist/FIXES
==============================================================================
--- vendor/one-true-awk/dist/FIXES Thu Aug 11 02:50:18 2011 (r224771)
+++ vendor/one-true-awk/dist/FIXES Thu Aug 11 04:58:20 2011 (r224772)
@@ -25,6 +25,10 @@ THIS SOFTWARE.
This file lists all bug fixes, changes, etc., made since the AWK book
was sent to the printers in August, 1987.
+Aug 10, 2011:
+ another fix to avoid core dump with -v; again, many thanks
+ to ruslan ermilov.
+
Aug 7, 2011:
split(s, a, //) now behaves the same as split(s, a, "")
Modified: vendor/one-true-awk/dist/lib.c
==============================================================================
--- vendor/one-true-awk/dist/lib.c Thu Aug 11 02:50:18 2011 (r224771)
+++ vendor/one-true-awk/dist/lib.c Thu Aug 11 04:58:20 2011 (r224772)
@@ -89,8 +89,13 @@ void initgetrec(void)
char *p;
for (i = 1; i < *ARGC; i++) {
- if (!isclvar(p = getargv(i))) { /* find 1st real filename */
- setsval(lookup("FILENAME", symtab), getargv(i));
+ p = getargv(i); /* find 1st real filename */
+ if (p == NULL || *p == '\0') { /* deleted or zapped */
+ argno++;
+ continue;
+ }
+ if (!isclvar(p)) {
+ setsval(lookup("FILENAME", symtab), p);
return;
}
setclvar(p); /* a commandline assignment before filename */
Modified: vendor/one-true-awk/dist/main.c
==============================================================================
--- vendor/one-true-awk/dist/main.c Thu Aug 11 02:50:18 2011 (r224771)
+++ vendor/one-true-awk/dist/main.c Thu Aug 11 04:58:20 2011 (r224772)
@@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE
THIS SOFTWARE.
****************************************************************/
-const char *version = "version 20110807";
+const char *version = "version 20110810";
#define DEBUG
#include <stdio.h>
More information about the svn-src-vendor
mailing list