pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/finance/gnucash-current floor and trunc do the same fo...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d44530db255
branches:  trunk
changeset: 530253:6d44530db255
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Jun 19 23:15:52 2007 +0000

description:
floor and trunc do the same for non-negative values. The former is C90,
so use that.

diffstat:

 finance/gnucash-current/distinfo         |   4 ++--
 finance/gnucash-current/patches/patch-ab |  13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r 75ff4eb42e0e -r 6d44530db255 finance/gnucash-current/distinfo
--- a/finance/gnucash-current/distinfo  Tue Jun 19 22:37:18 2007 +0000
+++ b/finance/gnucash-current/distinfo  Tue Jun 19 23:15:52 2007 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.3 2007/06/04 19:26:58 wiz Exp $
+$NetBSD: distinfo,v 1.4 2007/06/19 23:15:52 joerg Exp $
 
 SHA1 (gnucash-2.1.3.tar.gz) = 471bc1c85e8af6ab1a0c539073c858b6558bd76a
 RMD160 (gnucash-2.1.3.tar.gz) = e71149aa88b21a88e5a2c548da047f6bd08d6dcf
 Size (gnucash-2.1.3.tar.gz) = 9786760 bytes
 SHA1 (patch-aa) = 239371b133b7a585e4a18bbe1efa7e6656d63c9c
-SHA1 (patch-ab) = 5d72643eba85691defa373b471b11cc31cc8b27c
+SHA1 (patch-ab) = c9ea305299bf84c61898a57677e1e43d6c31be27
 SHA1 (patch-ac) = ea892a086f86b2f9f2b48ec5d02e1c2c1b8db336
 SHA1 (patch-ad) = 831d66cc09164809a1623d067eed6c498994b76e
diff -r 75ff4eb42e0e -r 6d44530db255 finance/gnucash-current/patches/patch-ab
--- a/finance/gnucash-current/patches/patch-ab  Tue Jun 19 22:37:18 2007 +0000
+++ b/finance/gnucash-current/patches/patch-ab  Tue Jun 19 23:15:52 2007 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/05/13 22:43:38 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2007/06/19 23:15:53 joerg Exp $
 
---- src/app-utils/gnc-ui-util.c.orig   2007-04-28 23:16:37.000000000 +0000
+--- src/app-utils/gnc-ui-util.c.orig   2007-06-02 17:56:55.000000000 +0000
 +++ src/app-utils/gnc-ui-util.c
 @@ -103,6 +103,14 @@ gnc_configure_account_separator (void)
      free(string);
@@ -71,6 +71,15 @@
      guint8 num_decimal_places = 0;
      char *temp_ptr = temp_buf;
  
+@@ -1687,7 +1695,7 @@ number_to_words(gdouble val, gint64 deno
+   if (val < 0) val = -val;
+   if (denom < 0) denom = -denom;
+ 
+-  int_part = trunc(val);
++  int_part = floor(val);
+   frac_part = round((val - int_part) * denom);
+ 
+   int_string = integer_to_words(int_part);
 @@ -1803,13 +1811,13 @@ xaccParseAmount (const char * in_str, gb
    {
      group_separator = g_utf8_get_char(lc->mon_thousands_sep);



Home | Main Index | Thread Index | Old Index