r23509 - gnucash/trunk/src - Fix missing prototype warning from r23494.
John Ralls
jralls at code.gnucash.org
Sat Dec 7 13:02:30 EST 2013
Author: jralls
Date: 2013-12-07 13:02:29 -0500 (Sat, 07 Dec 2013)
New Revision: 23509
Trac: http://svn.gnucash.org/trac/changeset/23509
Modified:
gnucash/trunk/src/engine/test/test-numeric.c
gnucash/trunk/src/libqof/qof/gnc-numeric.h
Log:
Fix missing prototype warning from r23494.
Modified: gnucash/trunk/src/engine/test/test-numeric.c
===================================================================
--- gnucash/trunk/src/engine/test/test-numeric.c 2013-12-07 16:10:00 UTC (rev 23508)
+++ gnucash/trunk/src/engine/test/test-numeric.c 2013-12-07 18:02:29 UTC (rev 23509)
@@ -546,8 +546,6 @@
}
}
-extern gint64 pwr64 (gint64 op, int exp);
-
static void
check_add_subtract_overflow (void)
{
Modified: gnucash/trunk/src/libqof/qof/gnc-numeric.h
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-numeric.h 2013-12-07 16:10:00 UTC (rev 23508)
+++ gnucash/trunk/src/libqof/qof/gnc-numeric.h 2013-12-07 18:02:29 UTC (rev 23509)
@@ -513,5 +513,11 @@
#define GNC_TYPE_NUMERIC (gnc_numeric_get_type ())
/** @} */
+/** Int 64 exponentiation. Faster and more robust than casting the result of pow().
+ * @param op The number to raise to exp.
+ * @param exp The exponent
+ * @return A gint64
+ */
+gint64 pwr64 (gint64 op, int exp);
/** @} */
#endif
More information about the gnucash-changes
mailing list