r22619 - gnucash/trunk/src - Convert all time_t to time64: swig type maps

John Ralls jralls at code.gnucash.org
Sat Dec 1 17:44:31 EST 2012


Author: jralls
Date: 2012-12-01 17:44:31 -0500 (Sat, 01 Dec 2012)
New Revision: 22619
Trac: http://svn.gnucash.org/trac/changeset/22619

Modified:
   gnucash/trunk/src/app-utils/app-utils.i
   gnucash/trunk/src/base-typemaps.i
Log:
Convert all time_t to time64: swig type maps

Modified: gnucash/trunk/src/app-utils/app-utils.i
===================================================================
--- gnucash/trunk/src/app-utils/app-utils.i	2012-12-01 22:44:22 UTC (rev 22618)
+++ gnucash/trunk/src/app-utils/app-utils.i	2012-12-01 22:44:31 UTC (rev 22619)
@@ -99,8 +99,8 @@
 gnc_numeric gnc_convert_from_euro(const gnc_commodity * currency,
         gnc_numeric value);
 
-time_t gnc_accounting_period_fiscal_start(void);
-time_t gnc_accounting_period_fiscal_end(void);
+time64 gnc_accounting_period_fiscal_start(void);
+time64 gnc_accounting_period_fiscal_end(void);
 
 SCM gnc_make_kvp_options(QofIdType id_type);
 void gnc_register_kvp_option_generator(QofIdType id_type, SCM generator);
@@ -129,7 +129,7 @@
 gint gnc_process_get_fd(const Process *proc, const guint std_fd);
 void gnc_detach_process(Process *proc, const gboolean kill_it);
 
-time_t gnc_parse_time_to_timet(const gchar *s, const gchar *format);
+time64 gnc_parse_time_to_time64(const gchar *s, const gchar *format);
 
 %typemap(out) GHashTable * {
   SCM table = scm_c_make_hash_table (g_hash_table_size($1) + 17);

Modified: gnucash/trunk/src/base-typemaps.i
===================================================================
--- gnucash/trunk/src/base-typemaps.i	2012-12-01 22:44:22 UTC (rev 22618)
+++ gnucash/trunk/src/base-typemaps.i	2012-12-01 22:44:31 UTC (rev 22619)
@@ -5,7 +5,7 @@
 
 /* Not sure why SWIG doesn't figure this out. */
 typedef int gint;
-typedef int time_t;
+typedef gint64 time64;
 typedef unsigned int guint;
 typedef double gdouble;
 typedef float gfloat;



More information about the gnucash-changes mailing list