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-715-g9e2907a


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-715-g9e2907a
Date: Tue, 12 Aug 2014 18:20:04 +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  9e2907afe246b3930d9ae6043a2657c4492f4507 (commit)
      from  e43ac01de95f05ac3c56f20d35329d086052ced2 (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=9e2907afe246b3930d9ae6043a2657c4492f4507

commit 9e2907afe246b3930d9ae6043a2657c4492f4507
Author: Arnold D. Robbins <address@hidden>
Date:   Tue Aug 12 21:15:26 2014 +0300

    Add div.awk to awklib.

diff --git a/awklib/eg/lib/div.awk b/awklib/eg/lib/div.awk
new file mode 100644
index 0000000..9d91928
--- /dev/null
+++ b/awklib/eg/lib/div.awk
@@ -0,0 +1,17 @@
+# div --- do integer division
+
+#
+# Arnold Robbins, address@hidden, Public Domain
+# July, 2014
+
+function div(numerator, denominator, result,    i)
+{
+    split("", result)
+
+    numerator = int(numerator)
+    denominator = int(denominator)
+    result["quotient"] = int(numerator / denominator)
+    result["remainder"] = int(numerator % denominator)
+
+    return 0.0
+}
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 0500b6c..82997ac 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-12         Arnold D. Robbins     <address@hidden>
+
+       * gawktexi.in: Cause div.awk to get into the example files.
+
 2014-08-06         Arnold D. Robbins     <address@hidden>
 
        * gawktexi.in: Misc minor additions.
diff --git a/doc/gawk.texi b/doc/gawk.texi
index f2b455b..6bbc656 100644
--- a/doc/gawk.texi
+++ b/doc/gawk.texi
@@ -30565,8 +30565,20 @@ You can simulate the @code{div()} function in standard 
@command{awk}
 using this user-defined function:
 
 @example
address@hidden file eg/lib/div.awk
 # div --- do integer division
 
address@hidden endfile
address@hidden
address@hidden file eg/lib/div.awk
+#
+# Arnold Robbins, arnold@@skeeve.com, Public Domain
+# July, 2014
+
address@hidden endfile
+
address@hidden ignore
address@hidden file eg/lib/div.awk
 function div(numerator, denominator, result,    i)
 @{
     split("", result)
@@ -30578,6 +30590,7 @@ function div(numerator, denominator, result,    i)
 
     return 0.0
 @}
address@hidden endfile
 @end example
 
 @node POSIX Floating Point Problems
diff --git a/doc/gawktexi.in b/doc/gawktexi.in
index bb94aa1..bca1556 100644
--- a/doc/gawktexi.in
+++ b/doc/gawktexi.in
@@ -29680,8 +29680,20 @@ You can simulate the @code{div()} function in standard 
@command{awk}
 using this user-defined function:
 
 @example
address@hidden file eg/lib/div.awk
 # div --- do integer division
 
address@hidden endfile
address@hidden
address@hidden file eg/lib/div.awk
+#
+# Arnold Robbins, arnold@@skeeve.com, Public Domain
+# July, 2014
+
address@hidden endfile
+
address@hidden ignore
address@hidden file eg/lib/div.awk
 function div(numerator, denominator, result,    i)
 @{
     split("", result)
@@ -29693,6 +29705,7 @@ function div(numerator, denominator, result,    i)
 
     return 0.0
 @}
address@hidden endfile
 @end example
 
 @node POSIX Floating Point Problems

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

Summary of changes:
 awklib/eg/lib/div.awk |   17 +++++++++++++++++
 doc/ChangeLog         |    4 ++++
 doc/gawk.texi         |   13 +++++++++++++
 doc/gawktexi.in       |   13 +++++++++++++
 4 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 awklib/eg/lib/div.awk


hooks/post-receive
-- 
gawk



reply via email to

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