mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add prototype query parsing,
undo excess use of cut-n-paste in xml parser (about 800 locs worth!) git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3404 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1676,7 +1676,7 @@ xaccAccountSetReconcilePostponeBalance (Account *account,
|
||||
|
||||
check_open (account);
|
||||
|
||||
value = kvp_value_new_numeric (balance);
|
||||
value = kvp_value_new_gnc_numeric (balance);
|
||||
|
||||
kvp_frame_set_slot_path (xaccAccountGetSlots (account), value,
|
||||
"reconcile-info", "postpone", "balance", NULL);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -433,7 +433,7 @@ kvp_value_new_double(double value) {
|
||||
}
|
||||
|
||||
kvp_value *
|
||||
kvp_value_new_numeric(gnc_numeric value) {
|
||||
kvp_value_new_gnc_numeric(gnc_numeric value) {
|
||||
kvp_value * retval = g_new0(kvp_value, 1);
|
||||
retval->type = KVP_TYPE_NUMERIC;
|
||||
retval->value.numeric = value;
|
||||
@@ -651,7 +651,7 @@ kvp_value_copy(const kvp_value * value) {
|
||||
return kvp_value_new_double(value->value.dbl);
|
||||
break;
|
||||
case KVP_TYPE_NUMERIC:
|
||||
return kvp_value_new_numeric(value->value.numeric);
|
||||
return kvp_value_new_gnc_numeric(value->value.numeric);
|
||||
break;
|
||||
case KVP_TYPE_STRING:
|
||||
return kvp_value_new_string(value->value.str);
|
||||
|
||||
@@ -102,7 +102,7 @@ void kvp_glist_delete(GList * list);
|
||||
/* value constructors (copying for pointer args) */
|
||||
kvp_value * kvp_value_new_gint64(gint64 value);
|
||||
kvp_value * kvp_value_new_double(double value);
|
||||
kvp_value * kvp_value_new_numeric(gnc_numeric value);
|
||||
kvp_value * kvp_value_new_gnc_numeric(gnc_numeric value);
|
||||
kvp_value * kvp_value_new_string(const char * value);
|
||||
kvp_value * kvp_value_new_guid(const GUID * guid);
|
||||
kvp_value * kvp_value_new_binary(const void * data, guint64 datasize);
|
||||
|
||||
Reference in New Issue
Block a user