[Nickle] nickle: Branch 'master' - 4 commits

Keith Packard keithp at keithp.com
Sun Dec 9 21:36:01 PST 2007


 configure.in     |    2 +-
 debian/changelog |    8 ++++++++
 nickle.1.in      |    6 +++---
 3 files changed, 12 insertions(+), 4 deletions(-)

New commits:
commit 16240c3265bd1991e6317901460a504499a12ac6
Author: Keith Packard <keithp at keithp.com>
Date:   Sun Dec 9 21:20:44 2007 -0800

    Update debian changelog to reflect doc change

diff --git a/debian/changelog b/debian/changelog
index 1a92cf1..b10c941 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 nickle (2.62-1) unstable; urgency=low
   * Add modulus test case
   * Fix % and // operators to follow modulus rules
+  * Update manual to fix // and % documentation
   * Bump to version 2.62
 
  -- Keith Packard <keithp at keithp.com>  Sun, 09 Dec 2007 21:14:27 -0800
commit 44c2aa8ee30ea972eb852dec9d73075a569b273d
Author: Keith Packard <keithp at keithp.com>
Date:   Sun Dec 9 21:20:03 2007 -0800

    Update documentation to reflect corrected // and % semantics

diff --git a/nickle.1.in b/nickle.1.in
index 6483121..7a6d88b 100644
--- a/nickle.1.in
+++ b/nickle.1.in
@@ -259,12 +259,12 @@ int.  This is a notable departure from C, where integer division is
 implied by integer operands.
 Integer division is defined by
 .br
-  x // y == floor(x / y)
+  x // y == y > 0 ? floor (x / y) : ceil(x / y)
 .br
-The sign and value of the remainder is defined
+The remainder is always non-negative and is defined by:
 by
 .br
-  (x // y) * y + (x % y) == x
+  x % y = x - (x // y) * y
 .br
 .IP "============="
 .IP "+ -"
commit eb5604f803cf5d442f389d1cad60301095266596
Author: Keith Packard <keithp at keithp.com>
Date:   Sun Dec 9 21:15:04 2007 -0800

    Bump debian changelog to 2.62

diff --git a/debian/changelog b/debian/changelog
index 8081efd..1a92cf1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+nickle (2.62-1) unstable; urgency=low
+  * Add modulus test case
+  * Fix % and // operators to follow modulus rules
+  * Bump to version 2.62
+
+ -- Keith Packard <keithp at keithp.com>  Sun, 09 Dec 2007 21:14:27 -0800
+
 nickle (2.61-1) unstable; urgency=low
   * Allow '.' before struct elt in initializers
   * Update builtins, tests and examples to use the new syntax
commit 4d90bffd79c2db94b377973321f552b4ee97e65f
Author: Keith Packard <keithp at keithp.com>
Date:   Sun Dec 9 21:10:38 2007 -0800

    Bump version to 2.62

diff --git a/configure.in b/configure.in
index 7616586..deb010b 100644
--- a/configure.in
+++ b/configure.in
@@ -7,7 +7,7 @@ dnl for licensing information.
 AC_PREREQ(2.59)
 
 AC_INIT([nickle],
-	2.61,
+	2.62,
 	[http://nickle.org],
 	nickle)
 


More information about the Nickle mailing list