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:
Linas Vepstas
2001-01-07 05:04:49 +00:00
parent 24758e51c6
commit 7860f10e43
4 changed files with 648 additions and 1032 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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);