[Top][All Lists]

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2089-gc2448a

From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-2089-gc2448a5
Date: Fri, 18 Nov 2016 04:02:17 +0000 (UTC)

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  c2448a50be949f5df2da4f7a1baf58358b297970 (commit)
       via  e8b0cf14d975304166c58a2d04a2943ab821367a (commit)
       via  cc04afb329cea035d0d9b67cd3b677e06b2f3996 (commit)
       via  9a31c12053ef715ccb732f456de00b4afc38d888 (commit)
       via  250b5a702471fb3f01244a9e90883d564670a091 (commit)
       via  61daea989c84d97c552ea2daf168e7117d82aae0 (commit)
       via  9ae43a6c83ef1c843072d93216c6267383df9bfa (commit)
       via  55e81e9ae7a16aa3beaadbcb565a4c5ff0b89b76 (commit)
       via  74473a65e66f3bd6fc17f39fda8d1f230e134cf9 (commit)
       via  b0f42533b3b9be43dd7d602890e02fdbb1e91db3 (commit)
       via  ce01568de72d8413edddbe23db14031787667d12 (commit)
       via  4e7f84903580b2bc46946edc93b66b18f1f64e5c (commit)
       via  cb5ce43cf0f95b7691dde8341d8ffc4b2cc4d1bc (commit)
       via  ff67a43d663d1f24a9cd26933e57d33af4a4d7a4 (commit)
       via  24e562f07cb9c6d70f49eeb9a74ffba8101ba834 (commit)
       via  e56b6eabe183ed5fa1352ef0f5f49fb6d894578c (commit)
       via  2c6c33741890ab08659b7c7ef5b8bc91d487f300 (commit)
       via  29acfbef6b126efce263945d0e2c4b707cb8cd4b (commit)
       via  956767af308bbdf4a92f9048a6080c4046a08e03 (commit)
       via  90478dd4c89715ad3e5dd599c1a615df8433db72 (commit)
       via  21da4e0801ad2e54503f0790b328ac81fee5d290 (commit)
       via  66f3b2f25f28d88def287e3b7e958bb504bc4eb1 (commit)
       via  9a1d173658bcaf0987c4b4892d3872e324d94772 (commit)
       via  d64da79c830daee5b0c9e125320f240a22aa4110 (commit)
       via  d6493fae8856653b4eaa866e859f51b7218e4446 (commit)
       via  02eaa0a97d906ebedfb298f6797190606093457c (commit)
       via  ce6abf1336dc249c6a0b0044915cfcd8df50c102 (commit)
       via  a8836b2d712fef5f31088c9ce1509e2bc11ef9a8 (commit)
       via  96f23ecad8027eae6b7cde2b219dc783e6b64814 (commit)
       via  ca45449843f55136af05494ca60760033ae81838 (commit)
       via  0987a787868a1d0772da19766de8a621f3a3be74 (commit)
       via  7585f55d91374fb93725fa2ed53a84c118f14a72 (commit)
       via  49a4b0bc8f15cd8e574c1a5f0ca9301defbb8b35 (commit)
       via  1286aa4eae48d85f2aeda35eb057081b982f8533 (commit)
       via  fdd32f88f56cd7c338cabdcdf40d6500508c5c40 (commit)
       via  da45e63a2d84938408a990d105d927079256b692 (commit)
       via  6a16b54b2718353694d9398430b192e569bc1742 (commit)
       via  448068f27693a7b544dfbcd71980d7473ac12edb (commit)
       via  094a71779f3b35f67c8db363ad4908000d4f391e (commit)
       via  9a0a31ad7fb61e8f85609c6a647feaf5465feed5 (commit)
       via  06d8f4cf720f5399ae32828de8182b34459df664 (commit)
       via  c4dee818eaee376cd19cb56d69d066e29c6eee2b (commit)
       via  5b0b9518e94d4aee27e9b0b0617c2bdd0081592c (commit)
       via  14587bf02200b8f184f19f52bbff83973d9d9197 (commit)
       via  f94d8d12596abd2e48d5131190cb5f643ac03e55 (commit)
       via  b647466e12da8797dae420889b077f7d60531c58 (commit)
       via  adb5491f2c9f49bf3d0e57f52c55bcaa4221e36e (commit)
       via  b7a631b6fa5ed5577520eccb1608956bd40a74e0 (commit)
       via  214771c07d5b6cdcc7c309b3635bc322e19f6762 (commit)
       via  015ef3064c671228262bbaea5a86a675e1b2fa1a (commit)
       via  c8ea9b44e9957c193137b0fdbbc50dd8af63a2cf (commit)
       via  615093c3aff4f248a4136f5030aaa3219fe35f62 (commit)
       via  b91a006f9188fdf5249720329c1960ea9d3f3e19 (commit)
       via  c86137f472fdf876c2c223c8d99f673f477b7554 (commit)
       via  4a0f74139fb702a14c2e6782fb1965245e4f9d2f (commit)
       via  e3de393ff1cbecea875c96294855b230f4779a3a (commit)
       via  d21117ed7769c6c8da3fde6eec39af81cc818577 (commit)
       via  eb261daff5e9a96f294cd806d1fd3e68f06fdbaa (commit)
       via  ce342a04922797cb53557178c54d32c4efafda16 (commit)
       via  f8424b236fabb881cc977b9e8e2e7c8debf56da0 (commit)
       via  5de217ef7d347b8afa6f6f1fbd20cb84a20ae187 (commit)
       via  f4dfa789e973f98aab5e091492dbcf542747c3b4 (commit)
       via  ba9c9d88506e819fae0d9d2b0acd72a88765d0eb (commit)
       via  166a253ca87240fe7ec463223af0b25a3e0f3d8a (commit)
       via  f421a5fbef014040712a7c89e8863c7196f6ab93 (commit)
       via  cedd0829b0075533986fce1e699bc6ae511a891e (commit)
       via  b3fa425feb23dd36e82d4dd71f0bc1e03495a46b (commit)
      from  86068375ed660f898ed5969641c9aa630f9adfd8 (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 -----------------------------------------------------------------

commit c2448a50be949f5df2da4f7a1baf58358b297970
Author: Arnold D. Robbins <address@hidden>
Date:   Fri Nov 18 06:01:58 2016 +0200

    Remove nocopy-doc.diff, not needed anymore.

diff --git a/nocopy-doc.diff b/nocopy-doc.diff
deleted file mode 100644
index bc63cff..0000000
--- a/nocopy-doc.diff
+++ /dev/null
@@ -1,238 +0,0 @@
-diff --git a/doc/ b/doc/
-index efca7b6..76c3a9b 100644
---- a/doc/
-+++ b/doc/
-@@ -11527,17 +11527,93 @@ compares variables.
- @node Variable Typing
- @subsubsection String Type versus Numeric Type
-+Scalar objects in @command{awk} (variables, array elements, and fields)
-+are @emph{dynamically} typed.  This means their type can change as the
-+program runs, from @dfn{untyped} before any use,@address@hidden
-+calls this @dfn{unassigned}, as the following example shows.} to string
-+or number, and then from string to number or number to string, as the
-+program progresses.
-+You can't do much with untyped variables, other than tell that they
-+are untyped. The following program tests @code{a} against @code{""}
-+and @code{0}; the test succeeds when @code{a} has never been assigned
-+a value.  It also uses the built-in @code{typeof()} function
-+(not presented yet; @pxref{Type Functions}) to show @code{a}'s type:
-+$ @kbd{gawk 'BEGIN @{ print (a == "" && a == 0 ?}
-+> @kbd{"a is untyped" : "a has a type!") ; print typeof(a) @}'}
address@hidden a is untyped
address@hidden unassigned
address@hidden example
-+A scalar has numeric type when assigned a numeric value,
-+such as from a numeric constant, or from another scalar
-+with numeric type:
-+$ @kbd{gawk 'BEGIN @{ a = 42 ; print typeof(a)}
-+> @kbd{b = a ; print typeof(b) @}'}
address@hidden example
-+Similarly, a scalar has string type when assigned a string
-+value, such as from a string constant, or from another scalar
-+with string type:
-+$ @kbd{gawk 'BEGIN @{ a = "forty two" ; print typeof(a)}
-+> @kbd{b = a ; print typeof(b) @}'}
address@hidden example
-+So far, this is all simple and straightforward.  What happens, though,
-+when @command{awk} has to process data from a user?  Let's start with
-+field data.  What should the following command produce as output?
-+echo hello | awk '@{ printf("%s %s < 42\n", $1,
-+                           ($1 < 42 ? "is" : "is not")) @}'
address@hidden example
-+Since @samp{hello} is alphabetic data, @command{awk} can only do a string
-+comparison.  Internally, it converts @code{42} into @code{"42"} and compares
-+the two string values @code{"hello"} and @code{"42"}. Here's the result:
-+$ @kbd{echo hello | awk '@{ printf("%s %s < 42\n", $1,}
-+> @kbd{                           ($1 < 42 ? "is" : "is not")) @}'}
address@hidden hello is not < 42
address@hidden example
-+However, what happens when data from a user @emph{looks like} a number?
-+On the one hand, in reality, the input data consists of characters, not
-+binary numeric
-+values.  But, on the other hand, the data looks numeric, and @command{awk}
-+really ought to treat it as such. And indeed, it does:
-+$ @kbd{echo 37 | awk '@{ printf("%s %s < 42\n", $1,}
-+> @kbd{                        ($1 < 42 ? "is" : "is not")) @}'}
address@hidden 37 is < 42
address@hidden example
-+Here are the rules for when @command{awk}
-+treats data as a number, and for when it treats data as a string.
- @cindex numeric, strings
- @cindex strings, numeric
- @cindex POSIX @command{awk}, numeric strings and
--The POSIX standard introduced
--the concept of a @dfn{numeric string}, which is simply a string that looks
--like a number---for example, @address@hidden" +2"}}.  This concept is used
--for determining the type of a variable.
--The type of the variable is important because the types of two variables
--determine how they are compared.
--Variable typing follows these rules:
-+The POSIX standard uses the term @dfn{numeric string} for input data that
-+looks numeric.  The @samp{37} in the previous example is a numeric string.
-+So what is the type of a numeric string? Answer: numeric.
-+The type of a variable is important because the types of two variables
-+determine how they are compared.
-+Variable typing follows these definitions and rules:
- @itemize @value{BULLET}
- @item
-@@ -11552,7 +11628,9 @@ attribute.
- Fields, @code{getline} input, @code{FILENAME}, @code{ARGV} elements,
- @code{ENVIRON} elements, and the elements of an array created by
- @code{match()}, @code{split()}, and @code{patsplit()} that are numeric
--strings have the @dfn{strnum} attribute.  Otherwise, they have
-+strings have the @dfn{strnum} address@hidden, a POSIX
-+numeric string and @command{gawk}'s strnum are the same thing.}
-+Otherwise, they have
- the @dfn{string} attribute.  Uninitialized variables also have the
- @dfn{strnum} attribute.
-@@ -11626,7 +11704,7 @@ STRNUM  &&string       &numeric        &numeric\cr
- @end tex
- @ifnottex
- @ifnotdocbook
-         +----------------------------------------------
-         |       STRING          NUMERIC         STRNUM
- --------+----------------------------------------------
-@@ -11637,7 +11715,7 @@ NUMERIC |       string          numeric         numeric
-         |
- STRNUM  |       string          numeric         numeric
- --------+----------------------------------------------
address@hidden display
address@hidden verbatim
- @end ifnotdocbook
- @end ifnottex
- @docbook
-@@ -11696,10 +11774,14 @@ purposes.
- In short, when one operand is a ``pure'' string, such as a string
- constant, then a string comparison is performed.  Otherwise, a
- numeric comparison is performed.
-+(The primary difference between a number and a strnum is that
-+for strnums @command{gawk} preserves the original string value that
-+the scalar had when it came in.)
-+This point bears additional emphasis:
-+Input that looks numeric @emph{is} numeric.
-+All other input is treated as strings.
--This point bears additional emphasis: All user input is made of characters,
--and so is first and foremost of string type; input strings
--that look numeric are additionally given the strnum attribute.
- Thus, the six-character input string @address@hidden +3.14}} receives the
- strnum attribute. In contrast, the eight characters
- @address@hidden" +3.14"}} appearing in program text comprise a string 
-@@ -11726,6 +11808,14 @@ $ @kbd{echo ' +3.14' | awk '@{ print($1 == 3.14) @}'} 
- @print{} 1
- @end example
-+You can see the type of an input field (or other user input)
-+using @code{typeof()}:
-+$ @kbd{echo hello 37 | gawk '@{ print typeof($1), typeof($2) @}'}
address@hidden string strnum
address@hidden example
- @node Comparison Operators
- @subsubsection Comparison Operators
-@@ -18688,8 +18778,8 @@ Return one of the following strings, depending upon 
the type of @var{x}:
- @var{x} is a string.
- @item "strnum"
address@hidden is a string that might be a number, such as a field or
--the result of calling @code{split()}. (I.e., @var{x} has the STRNUM
address@hidden is a number that started life as user input, such as a field or
-+the result of calling @code{split()}. (I.e., @var{x} has the strnum
- attribute; @pxref{Variable Typing}.)
- @item "unassigned"
-@@ -18698,8 +18788,9 @@ For example:
- @example
- BEGIN @{
--    a[1]                # creates a[1] but it has no assigned value
--    print typeof(a[1])  # scalar_u
-+    # creates a[1] but it has no assigned value
-+    a[1]
-+    print typeof(a[1])  # unassigned
- @}
- @end example
-@@ -29721,6 +29812,8 @@ executing, short programs.
- The @command{gawk} debugger only accepts source code supplied with the 
@option{-f} option.
- @end itemize
address@hidden 11/2016: This no longer applies after all the type cleanup work 
that's been done.
- One other point is worth discussing.  Conventional debuggers run in a
- separate process (and thus address space) from the programs that they
- debug (the @dfn{debuggee}, if you will).
-@@ -29779,6 +29872,7 @@ is indeed a number, and this is reflected in the 
result of
- Cases like this where the debugger is not transparent to the program's
- execution should be rare. If you encounter one, please report it
- (@pxref{Bugs}).
address@hidden ignore
- @ignore
- Look forward to a future release when these and other missing features may
-@@ -31285,14 +31379,26 @@ and is managed by @command{gawk} from then on.
- The API defines several simple @code{struct}s that map values as seen
- from @command{awk}.  A value can be a @code{double}, a string, or an
- array (as in multidimensional arrays, or when creating a new array).
- String values maintain both pointer and length, because embedded @sc{nul}
- characters are allowed.
- @quotation NOTE
--By intent, strings are maintained using the current multibyte encoding (as
--defined by @address@hidden environment variables) and not using wide
--characters.  This matches how @command{gawk} stores strings internally
--and also how characters are likely to be input into and output from files.
-+By intent, @command{gawk} maintains strings using the current multibyte
-+encoding (as defined by @address@hidden environment variables)
-+and not using wide characters.  This matches how @command{gawk} stores
-+strings internally and also how characters are likely to be input into
-+and output from files.
address@hidden quotation
address@hidden NOTE
-+String values passed to an extension by @command{gawk} are always
address@hidden  Thus it is safe to pass such string values to
-+standard library and system routines. However, because
address@hidden allows embedded @sc{NUL} characters in string data,
-+you should check that @samp{strlen(@var{some_string})} matches
-+the length for that string passed to the extension before using
-+it as a regular C string.
- @end quotation
- @item


Summary of changes:
 ChangeLog                           |  199 ++++++-
 array.c                             |   19 +-
 awk.h                               |   73 +--
 awkgram.c                           |    2 +-
 awkgram.y                           |    2 +-
 builtin.c                           |   57 +-
 debug.c                             |   55 +-
 doc/ChangeLog                       |    6 +
 doc/                       | 1020 ++++++++++++++++++-----------------
 doc/gawk.texi                       |  148 ++++-
 doc/                     |  148 ++++-
 eval.c                              |   24 +-
 field.c                             |   79 ++-
 gawkapi.c                           |   58 +-
 gawkapi.h                           |    6 +-
 int_array.c                         |   10 +-
 interpret.h                         |   25 +-
 io.c                                |   37 +-
 main.c                              |    8 +-
 mpfr.c                              |   19 +-
 msg.c                               |    6 +-
 node.c                              |   14 +-
 str_array.c                         |    8 +-
 test/ChangeLog                      |   20 +
 test/                    |   14 +-
 test/                    |   29 +-
 test/Maketests                      |   15 +
 test/apiterm.awk                    |    8 +
 test/                     |    1 +
 test/apiterm.ok                     |    3 +
 test/arrayind3.awk                  |   19 +
 test/{arrayprm3.ok => arrayind3.ok} |    1 +
 test/fldterm.awk                    |   10 +
 test/                     |    1 +
 test/fldterm.ok                     |    2 +
 test/forcenum.awk                   |    6 +-
 test/forcenum.ok                    |    6 +-
 test/                     |    2 +-
 test/rebuild.ok                     |    2 +-
 39 files changed, 1429 insertions(+), 733 deletions(-)
 create mode 100644 test/apiterm.awk
 create mode 100644 test/
 create mode 100644 test/apiterm.ok
 create mode 100644 test/arrayind3.awk
 copy test/{arrayprm3.ok => arrayind3.ok} (66%)
 create mode 100644 test/fldterm.awk
 create mode 100644 test/
 create mode 100644 test/fldterm.ok


reply via email to

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