From c011806606188670bdc1c78f054ed9c6144b425a Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 26 Oct 2015 07:56:56 +0200 Subject: Sort id test output, should help on z/OS. --- test/ChangeLog | 5 +++ test/id.awk | 3 +- test/id.ok | 114 ++++++++++++++++++++++++++++----------------------------- 3 files changed, 64 insertions(+), 58 deletions(-) diff --git a/test/ChangeLog b/test/ChangeLog index 8792af95..6a888496 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2015-10-26 Arnold D. Robbins + + * id.awk: Sort the output. Helps on z/OS. + * id.ok: Adjust. + 2015-10-11 Arnold D. Robbins * Makefile.am (readbuf): New test. diff --git a/test/id.awk b/test/id.awk index 2a35e42c..9c2ae2d4 100644 --- a/test/id.awk +++ b/test/id.awk @@ -7,5 +7,6 @@ BEGIN { an_array[1] = 1 for (i in PROCINFO["identifiers"]) - printf("%s -> %s\n", i, PROCINFO["identifiers"][i]) + printf("%s -> %s\n", i, PROCINFO["identifiers"][i]) | "sort" + close("sort") } diff --git a/test/id.ok b/test/id.ok index 011d6cf2..ab9f6392 100644 --- a/test/id.ok +++ b/test/id.ok @@ -1,74 +1,74 @@ -OFS -> scalar -rand -> builtin ARGC -> scalar -dcgettext -> builtin -gsub -> builtin -PREC -> scalar -match -> builtin ARGIND -> scalar -int -> builtin -ERRNO -> scalar ARGV -> array -log -> builtin -sprintf -> builtin +BINMODE -> scalar +CONVFMT -> scalar +ENVIRON -> array +ERRNO -> scalar +FIELDWIDTHS -> scalar +FILENAME -> scalar +FNR -> scalar +FPAT -> scalar +FS -> scalar +FUNCTAB -> array +IGNORECASE -> scalar +LINT -> scalar +NF -> scalar +NR -> scalar +OFMT -> scalar +OFS -> scalar +ORS -> scalar +PREC -> scalar +PROCINFO -> array +RLENGTH -> scalar ROUNDMODE -> scalar -strftime -> builtin -systime -> builtin -length -> builtin +RS -> scalar +RSTART -> scalar +RT -> scalar +SUBSEP -> scalar +SYMTAB -> array +TEXTDOMAIN -> scalar +an_array -> untyped and -> builtin -srand -> builtin -FNR -> scalar asort -> builtin +asorti -> builtin atan2 -> builtin -cos -> builtin -TEXTDOMAIN -> scalar -ORS -> scalar -split -> builtin -RSTART -> scalar -compl -> builtin bindtextdomain -> builtin +close -> builtin +compl -> builtin +cos -> builtin +dcgettext -> builtin +dcngettext -> builtin exp -> builtin -or -> builtin +extension -> builtin fflush -> builtin +function1 -> user gensub -> builtin -LINT -> scalar -dcngettext -> builtin +gsub -> builtin +i -> untyped index -> builtin -IGNORECASE -> scalar -system -> builtin -CONVFMT -> scalar -sqrt -> builtin -rshift -> builtin -tolower -> builtin -FS -> scalar -BINMODE -> scalar -sin -> builtin -asorti -> builtin -FIELDWIDTHS -> scalar -function1 -> user -FILENAME -> scalar -close -> builtin -mktime -> builtin -FUNCTAB -> array -NF -> scalar +int -> builtin isarray -> builtin -an_array -> untyped +length -> builtin +log -> builtin +lshift -> builtin +match -> builtin +mktime -> builtin +or -> builtin patsplit -> builtin -NR -> scalar -SUBSEP -> scalar -extension -> builtin -i -> untyped +rand -> builtin +rshift -> builtin +sin -> builtin +split -> builtin +sprintf -> builtin +sqrt -> builtin +srand -> builtin +strftime -> builtin +strtonum -> builtin sub -> builtin -OFMT -> scalar -RLENGTH -> scalar substr -> builtin -FPAT -> scalar -RS -> scalar -xor -> builtin -RT -> scalar -PROCINFO -> array -lshift -> builtin -SYMTAB -> array -strtonum -> builtin +system -> builtin +systime -> builtin +tolower -> builtin toupper -> builtin -ENVIRON -> array +xor -> builtin -- cgit v1.2.3 From bd782f22c4c64b6c71274e93499161eaac5a2fc0 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 26 Oct 2015 07:57:25 +0200 Subject: Improve extension/configh.in for recent GLIBC. --- extension/ChangeLog | 6 ++++++ extension/configh.in | 3 +++ 2 files changed, 9 insertions(+) diff --git a/extension/ChangeLog b/extension/ChangeLog index e0089cc5..a2193740 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,9 @@ +2015-10-26 Arnold D. Robbins + + * config.h.in: Turn on _DEFAULT_SOURCE for very recent + GLIBC. Thanks to Michal Jaegermann + for the report. + 2015-08-28 Daniel Richard G. * rwarray.c: Removed z/OS-specific code that is no longer needed due diff --git a/extension/configh.in b/extension/configh.in index d3f7361e..a52f609d 100644 --- a/extension/configh.in +++ b/extension/configh.in @@ -147,6 +147,9 @@ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif +#if defined _GNU_SOURCE && !defined _DEFAULT_SOURCE +# define _DEFAULT_SOURCE +#endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS -- cgit v1.2.3 From 49f7063d1efbba3f7a1c8d3e35b4a0f2f3395978 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 26 Oct 2015 07:57:46 +0200 Subject: Minor improvement in man page. --- doc/ChangeLog | 5 +++++ doc/gawk.1 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/ChangeLog b/doc/ChangeLog index 72f97100..e424c80f 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-26 Arnold D. Robbins + + * gawk.1: Put commas outside quoting in regexps to avoid + confusion. Thanks to Mike Frysinger . + 2015-10-07 Arnold D. Robbins * texinfo.tex: Updated to a working version. diff --git a/doc/gawk.1 b/doc/gawk.1 index 0a37d5a8..0c00f3bd 100644 --- a/doc/gawk.1 +++ b/doc/gawk.1 @@ -1936,7 +1936,7 @@ and For example, the name .B e might be used to represent all of -\*(lqe,\*(rq \*(lqe\h'-\w:e:u'\',\*(rq and \*(lqe\h'-\w:e:u'\`.\*(rq +\*(lqe\*(rq, \*(lqe\h'-\w:e:u'\'\*(rq, and \*(lqe\h'-\w:e:u'\`\*(rq. In this case, .B [[=e=]] is a regular expression -- cgit v1.2.3