[grisbi-cvs] [SCM] grisbi branch, pbiava_gsb_real_gint64, updated. upstream_version_0_7_3-86-g77ea78b

Pierre Biava nobody at users.sourceforge.net
Sun Oct 17 21:21:24 CEST 2010


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 "grisbi".

The branch, pbiava_gsb_real_gint64 has been updated
       via  77ea78b0158e441f67a4cea9ec319a34812ebcb3 (commit)
       via  c52d9685751ccd9118ef013036842ae5f1bb3f67 (commit)
       via  682186cc4baf8fdd3e739290287c2519d310e8a2 (commit)
      from  cac7859390d17bec0ec6e2f91f5b390f54348c35 (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 77ea78b0158e441f67a4cea9ec319a34812ebcb3
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Oct 17 21:11:02 2010 +0200

    Silent compilation feature for automake 1.11

commit c52d9685751ccd9118ef013036842ae5f1bb3f67
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Oct 17 21:09:03 2010 +0200

    Adding the currency of Kazakhstan: Tenge

commit 682186cc4baf8fdd3e739290287c2519d310e8a2
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Oct 17 18:23:25 2010 +0200

    minor changes

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

Changes:
diff --git a/configure.in b/configure.in
index 4c1788e..0198381 100644
--- a/configure.in
+++ b/configure.in
@@ -34,6 +34,7 @@ dnl Check if we have backtrace support
 AC_CHECK_FUNCS(backtrace)
 
 AM_INIT_AUTOMAKE([-Wall foreign])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
 
 dnl Initialize libtool
 LT_INIT
diff --git a/src/gsb_currency_config.c b/src/gsb_currency_config.c
index 2f50f59..14c6e96 100644
--- a/src/gsb_currency_config.c
+++ b/src/gsb_currency_config.c
@@ -136,6 +136,7 @@ struct iso_4217_currency iso_4217_currencies[] = {
     { N_("Asia"), N_("Iraqi Dinar"), N_("Iraq"), "IQD", NULL, TRUE, "IQD.png", 3, 1 },
     { N_("Asia"), N_("Japanese Yen"), N_("Japan"), "JPY", "¥", TRUE, "JPY.png", 0, 1 },
     { N_("Asia"), N_("Jordanian Dinar"), N_("Jordan"), "JOD", NULL, TRUE, "JOD.png", 3, 1 },
+    { N_("Asia"), N_("Kazakhstan Tenge"), N_("Kazakhstan"), "KZT", NULL, TRUE, "KZT.png", 2, 1 },
     { N_("Asia"), N_("Kuwaiti Dinar"), N_("Kuwait"), "KWD", NULL, TRUE, "KWD.png", 3, 1 },
     { N_("Asia"), N_("Lao Kip"), N_("Lao People's Democratic Republic"), "LAK", "₭", TRUE, "LAK.png", 2, 1 },
     { N_("Asia"), N_("Lebanese Pound"), N_("Lebanon"), "LBP", "£", TRUE, "LBP.png", 3, 1 },
diff --git a/src/gsb_real.c b/src/gsb_real.c
index 6471e16..ce98b8c 100644
--- a/src/gsb_real.c
+++ b/src/gsb_real.c
@@ -1087,13 +1087,10 @@ gchar *gsb_real_add_thousands_sep ( gchar *str_number, const gchar *thousands_se
 
     while ( i < nbre_char )
     {
-        gchar *tmp_char;
-
-        tmp_char = g_strndup ( ptr, 1 );
-        tmp_ptr = g_stpcpy ( tmp_ptr, tmp_char );
-        g_free ( tmp_char );
+        dest[i+sep] = ptr[0];
 
         ptr++;
+        tmp_ptr++;
         i++;
         j++;
         if ( i < nbre_char && j == 3 )
@@ -1104,10 +1101,12 @@ gchar *gsb_real_add_thousands_sep ( gchar *str_number, const gchar *thousands_se
         }
     };
 
-    g_free ( str_number );
     result = g_strndup ( dest, nbre_char + sep );
     result = g_strreverse ( result );
 
+    g_free ( str_number );
+    g_free ( dest );
+    
     return result;
 }
 


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list