gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1474-gf7cd8a


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1474-gf7cd8a0
Date: Fri, 19 Jun 2015 09:41:12 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, master has been updated
       via  f7cd8a03c09a00c4cb520f881bbe838cf76e718f (commit)
       via  20037f36ee350ee64699d311e4296be1f0367dd2 (commit)
       via  3581537e852069e9a8851311a3132625a5a178b8 (commit)
       via  13792702809271ab92f67bb71cc3f10731f35047 (commit)
       via  13127e20909b2ef212f5e467c8f3bb447091e4ef (commit)
       via  9f7253c0300de05d6d001a82f8cf8b4040a0ae15 (commit)
       via  1362f223522450a6395623b97000bc70464566ab (commit)
       via  5c7385d36987e4eaad95a4ff3a7d735014833f90 (commit)
       via  43c3c20780092e1e214520a02897eaeb5cda15f9 (commit)
       via  1966bd9cd849c3d83dbb0fcb547684b17c2cd61e (commit)
       via  c5bc34ad1537ceaba4962d1639f61ca4b4d50e94 (commit)
       via  33f3d625bdfb7d2d37eb3838eff4df247654f3b9 (commit)
       via  5603143c58035b91f91ee31ab548b9b996156760 (commit)
       via  09a8c02267be95caca8efe5b930b0b8bae4d4084 (commit)
       via  3ac8984c62b6a89e86e18376b75e32f0a60bfe9f (commit)
       via  4ab78d60892f19f1cae1e85771a396b50eb591c6 (commit)
       via  8916089795a175cfd08541b67fdcf506d1ed5a1c (commit)
       via  ecf875a23050b7e3b64805674e9ce3cac4199cb8 (commit)
       via  8f79856a02dd3e3ba8fc00a6e3086a367ca0cdf4 (commit)
       via  a95aad26e785335f6cca2d9009388f4a74ae3635 (commit)
       via  09c533438cd709076c29bb61585833e2c4d67f97 (commit)
       via  6853b3e94c03194200c5a7c4450820a8eaa0920f (commit)
       via  020be4cb81b519a597acbf85e683cfb95993c2b9 (commit)
       via  6f250fa2a01864e07c1e9022f36eab740a2793c5 (commit)
       via  340c6b9945fcf57666648939bb8702a6f64c8e8e (commit)
       via  aca30f7d82ec4fa002c6ab5ea4a2d9d77d28c2cd (commit)
       via  c187863b95bed5f750b08df898fdfb611a4bdb54 (commit)
       via  82ef375e5236341b6550c1c365ec87bd23c049bf (commit)
       via  c94c41be952af8be29166fca886bbb11b3fe3330 (commit)
       via  10602a79c47b0bf6ef53b7308355ef2d4312003e (commit)
       via  f8b283eeed514287482d3bb56103c34ab9ae133b (commit)
       via  7b6df8af60bfe3e90be216952510a8f7bf2745aa (commit)
       via  448c45412600cd9844caf2336f5bf6c459145d08 (commit)
       via  8d0b9648204d05537828e70ee1816834dc3b1d34 (commit)
       via  a899726e00426379e74b13732b2b6bf094f47cd9 (commit)
       via  bbeeb351c73fb1ee4ff20c3774e0477e9e8a7513 (commit)
       via  eb53fb0398911202d4361b869eefa6c1449ebec8 (commit)
       via  b062ba39d52c7e9dee06ac73030aba248ee81168 (commit)
       via  e29498dcb6a94edadf3d3ad3f631331c7ee40a33 (commit)
       via  69b9c6bec08738933d79010ad8c9347e36d19bed (commit)
       via  8fc0c719fc910d6931d267b5437cef9048e5a9b0 (commit)
       via  9bd02dc1cc61e195374d3bf83febb724fb08d739 (commit)
      from  aea3b72891e7bcfeef094ff5039838c18e7ebbab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=f7cd8a03c09a00c4cb520f881bbe838cf76e718f

commit f7cd8a03c09a00c4cb520f881bbe838cf76e718f
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Jun 19 12:40:38 2015 +0300

    Cleanup files and fix up tests for typed regexes and typeof.

diff --git a/a.awk b/a.awk
deleted file mode 100644
index daed9d9..0000000
--- a/a.awk
+++ /dev/null
@@ -1,7 +0,0 @@
-BEGIN {
-       f = "foo"
-       p = "o+"
-       fun = "match"
-       @fun(f, p)
-       print RSTART, RLENGTH
-}
diff --git a/test/ChangeLog b/test/ChangeLog
index 59b9fd4..b57a756 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2015-06-19         Arnold D. Robbins     <address@hidden>
+
+       * Makefile.am (gsubind, typedregex1, typeof1): New tests.
+       * gsubind.awk, gsubind.ok, typedregex1.awk, typedregex1.ok,
+       typeof1.awk, typeof1.ok: New files.
+
 2015-06-17         Andrew J. Schorr     <address@hidden>
 
        * inplace1.ok, inplace2.ok, inplace3.ok: Update line number in error
diff --git a/test/Makefile.am b/test/Makefile.am
index f13fa2f..537a565 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -381,6 +381,8 @@ EXTRA_DIST = \
        gnureops.ok \
        gsubasgn.awk \
        gsubasgn.ok \
+       gsubind.awk \
+       gsubind.ok \
        gsubtest.awk \
        gsubtest.ok \
        gsubtst2.awk \
@@ -979,6 +981,10 @@ EXTRA_DIST = \
        tweakfld.awk \
        tweakfld.in \
        tweakfld.ok \
+       typedregex1.awk \
+       typedregex1.ok \
+       typeof1.awk \
+       typeof1.ok \
        uninit2.awk \
        uninit2.ok \
        uninit3.awk \
@@ -1076,7 +1082,7 @@ GAWK_EXT_TESTS = \
        colonwarn clos1way crlf dbugeval delsub devfd devfd1 devfd2 dumpvars 
errno exit \
        fieldwdth fpat1 fpat2 fpat3 fpat4 fpatnull fsfwfs funlen \
        functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
-       genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops \
+       genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
        icasefs icasers id igncdym igncfs ignrcas2 ignrcase \
        incdupe incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 \
        include include2 indirectbuiltin indirectcall indirectcall2 \
@@ -1093,6 +1099,7 @@ GAWK_EXT_TESTS = \
        splitarg4 strftime \
        strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
        symtab7 symtab8 symtab9 \
+       typedregex1 typeof1
        timeout
 
 EXTRA_TESTS = inftest regtest
diff --git a/test/Makefile.in b/test/Makefile.in
index 08c04a0..a8895ed 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -638,6 +638,8 @@ EXTRA_DIST = \
        gnureops.ok \
        gsubasgn.awk \
        gsubasgn.ok \
+       gsubind.awk \
+       gsubind.ok \
        gsubtest.awk \
        gsubtest.ok \
        gsubtst2.awk \
@@ -1236,6 +1238,10 @@ EXTRA_DIST = \
        tweakfld.awk \
        tweakfld.in \
        tweakfld.ok \
+       typedregex1.awk \
+       typedregex1.ok \
+       typeof1.awk \
+       typeof1.ok \
        uninit2.awk \
        uninit2.ok \
        uninit3.awk \
@@ -1332,7 +1338,7 @@ GAWK_EXT_TESTS = \
        colonwarn clos1way crlf dbugeval delsub devfd devfd1 devfd2 dumpvars 
errno exit \
        fieldwdth fpat1 fpat2 fpat3 fpat4 fpatnull fsfwfs funlen \
        functab1 functab2 functab3 fwtest fwtest2 fwtest3 \
-       genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops \
+       genpot gensub gensub2 getlndir gnuops2 gnuops3 gnureops gsubind \
        icasefs icasers id igncdym igncfs ignrcas2 ignrcase \
        incdupe incdupe2 incdupe3 incdupe4 incdupe5 incdupe6 incdupe7 \
        include include2 indirectbuiltin indirectcall indirectcall2 \
@@ -1349,7 +1355,7 @@ GAWK_EXT_TESTS = \
        splitarg4 strftime \
        strtonum switch2 symtab1 symtab2 symtab3 symtab4 symtab5 symtab6 \
        symtab7 symtab8 symtab9 \
-       timeout
+       typedregex1 typeof1
 
 EXTRA_TESTS = inftest regtest
 INET_TESTS = inetdayu inetdayt inetechu inetecht
@@ -1591,6 +1597,7 @@ uninstall-am:
 
 .PRECIOUS: Makefile
 
+       timeout
 
 # Message stuff is to make it a little easier to follow.
 # Make the pass-fail last and dependent on others to avoid
@@ -3648,6 +3655,11 @@ gnureops:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+gsubind:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 icasefs:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
@@ -3883,7 +3895,12 @@ symtab7:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
-timeout:
+typedregex1:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+typeof1:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
diff --git a/test/Maketests b/test/Maketests
index 017caa7..a674d5d 100644
--- a/test/Maketests
+++ b/test/Maketests
@@ -1092,6 +1092,11 @@ gnureops:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
+gsubind:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
 icasefs:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
@@ -1327,7 +1332,12 @@ symtab7:
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  < 
"$(srcdir)"/address@hidden >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
 
-timeout:
+typedregex1:
+       @echo $@
+       @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
+       @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
+
+typeof1:
        @echo $@
        @AWKPATH="$(srcdir)" $(AWK) -f address@hidden  >_$@ 2>&1 || echo EXIT 
CODE: $$? >>_$@
        @-$(CMP) "$(srcdir)"/address@hidden _$@ && rm -f _$@
diff --git a/z2.awk b/test/gsubind.awk
similarity index 73%
rename from z2.awk
rename to test/gsubind.awk
index 0a597b2..fce0d81 100644
--- a/z2.awk
+++ b/test/gsubind.awk
@@ -1,7 +1,8 @@
 BEGIN {
        f = "foo"
        p = @/o/
-//     gsub(p, "q", f)
+       gsub(p, "q", f)
+       print f
        fun = "gsub"
        @fun(p, "q", f)
        print f
diff --git a/test/gsubind.ok b/test/gsubind.ok
new file mode 100644
index 0000000..d25f018
--- /dev/null
+++ b/test/gsubind.ok
@@ -0,0 +1,3 @@
+fqq
+gawk: gsubind.awk:7: fatal: gsub: can be called indirectly only with two 
arguments
+EXIT CODE: 2
diff --git a/hardregex-semantics.awk b/test/typedregex1.awk
similarity index 100%
rename from hardregex-semantics.awk
rename to test/typedregex1.awk
diff --git a/test/typedregex1.ok b/test/typedregex1.ok
new file mode 100644
index 0000000..03ef7cf
--- /dev/null
+++ b/test/typedregex1.ok
@@ -0,0 +1,37 @@
+switch-case: ok
+match ~: ok
+match !~: ok
+variable match ~: ok
+variable match !~: ok
+variable as numeric value: ok
+variable as string value: ok
+typeof constant: ok
+typeof variable: ok
+conversion to number: ok
+typeof variable after conversion: ok
+match(constant): ok
+match(variable): ok
+match(constant) indirect: ok
+match(variable) indirect: ok
+sub(constant): ok
+sub(variable): ok
+sub(constant) indirect: ok
+sub(variable) indirect: ok
+gsub(constant): ok
+gsub(variable): ok
+gsub(constant) indirect: ok
+gsub(variable) indirect: ok
+gensub(constant): ok
+gensub(variable): ok
+gensub(constant) indirect: ok
+gensub(variable) indirect: ok
+gensub(constant) indirect 2: ok
+gensub(variable) indirect 2: ok
+split(constant): ok
+split(variable): ok
+split(constant) indirect: ok
+split(variable) indirect: ok
+patsplit(constant): ok
+patsplit(variable): ok
+patsplit(constant) indirect: ok
+patsplit(variable) indirect: ok
diff --git a/x.awk b/test/typeof1.awk
similarity index 100%
rename from x.awk
rename to test/typeof1.awk
diff --git a/test/typeof1.ok b/test/typeof1.ok
new file mode 100644
index 0000000..3a2f6a9
--- /dev/null
+++ b/test/typeof1.ok
@@ -0,0 +1,7 @@
+scalar_n
+untyped
+regexp
+scalar_s
+array scalar_n
+regexp
+regexp
diff --git a/y.awk b/y.awk
deleted file mode 100644
index 820e321..0000000
--- a/y.awk
+++ /dev/null
@@ -1 +0,0 @@
-BEGIN { f = "foo" ; sub(@/f/, "q", f); print f }
diff --git a/z.awk b/z.awk
deleted file mode 100644
index 5df943c..0000000
--- a/z.awk
+++ /dev/null
@@ -1 +0,0 @@
-BEGIN { f = "foo" ; p = @/o/ ; gsub(p, "q", f); print f }
diff --git a/z3.awk b/z3.awk
deleted file mode 100644
index 408f525..0000000
--- a/z3.awk
+++ /dev/null
@@ -1,19 +0,0 @@
-function testit(count, re, repl,       fun, bi, n1, n2)
-{
-       $0 = "foo"
-       n1 = gsub(re, repl)
-       bi = $0
-
-       $0 = "foo"
-       fun = "gsub"
-       n2 = @fun(re, repl)
-       printf("%d: n1 = %d, bi -> %s, n2 = %d, indirect -> %s\n",
-               count, n1, bi, n2, $0)
-}
-
-BEGIN {
-       testit(1, @/o/, "q")
-       p = @/o/
-stopme()
-       testit(2, p, "q")
-}

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |   71 ++
 NEWS                 |   11 +-
 awk.h                |    8 +
 awkgram.c            | 2129 +++++++++++++++++++++++++++-----------------------
 awkgram.y            |  125 +++-
 builtin.c            |   56 ++-
 doc/ChangeLog        |   10 +
 doc/gawk.info        | 1231 ++++++++++++++++-------------
 doc/gawk.texi        |  129 +++-
 doc/gawktexi.in      |  129 +++-
 eval.c               |    6 +
 hardregex.txt        |   24 +
 profile.c            |   38 +-
 re.c                 |   15 +-
 test/ChangeLog       |    7 +
 test/Makefile.am     |    9 +-
 test/Makefile.in     |   23 +-
 test/Maketests       |   12 +-
 test/gsubind.awk     |    9 +
 test/gsubind.ok      |    3 +
 test/id.ok           |    1 +
 test/typedregex1.awk |  296 +++++++
 test/typedregex1.ok  |   37 +
 test/typeof1.awk     |    9 +
 test/typeof1.ok      |    7 +
 25 files changed, 2836 insertions(+), 1559 deletions(-)
 create mode 100644 hardregex.txt
 create mode 100644 test/gsubind.awk
 create mode 100644 test/gsubind.ok
 create mode 100644 test/typedregex1.awk
 create mode 100644 test/typedregex1.ok
 create mode 100644 test/typeof1.awk
 create mode 100644 test/typeof1.ok


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]