mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2001-06-18 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-schedxaction-xml-v2.c: fix warnings. use C comments. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4727 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
34500dc4eb
commit
3942b271e9
@ -1,5 +1,7 @@
|
|||||||
2001-06-18 Dave Peticolas <dave@krondo.com>
|
2001-06-18 Dave Peticolas <dave@krondo.com>
|
||||||
|
|
||||||
|
* src/engine/gnc-schedxaction-xml-v2.c: same as below
|
||||||
|
|
||||||
* src/MultiLedger.c: same as below
|
* src/MultiLedger.c: same as below
|
||||||
|
|
||||||
* src/SplitLedger.c: same as below. fix indentation. please
|
* src/SplitLedger.c: same as below. fix indentation. please
|
||||||
|
@ -107,7 +107,7 @@ gnc_schedXaction_dom_tree_create(SchedXaction *sx)
|
|||||||
Timespec ts;
|
Timespec ts;
|
||||||
GDate *date;
|
GDate *date;
|
||||||
|
|
||||||
// FIXME: this should be the same as the def in io-gncxml-v2.c...
|
/* FIXME: this should be the same as the def in io-gncxml-v2.c */
|
||||||
ret = xmlNewNode( NULL, "gnc:schedxaction" );
|
ret = xmlNewNode( NULL, "gnc:schedxaction" );
|
||||||
|
|
||||||
xmlSetProp( ret, "version", schedxaction_version_string );
|
xmlSetProp( ret, "version", schedxaction_version_string );
|
||||||
@ -140,14 +140,14 @@ gnc_schedXaction_dom_tree_create(SchedXaction *sx)
|
|||||||
xaccSchedXactionGetEndDate(sx) ) );
|
xaccSchedXactionGetEndDate(sx) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// output freq spec
|
/* output freq spec */
|
||||||
fsNode = xmlNewNode(NULL, "sx:freqspec");
|
fsNode = xmlNewNode(NULL, "sx:freqspec");
|
||||||
xmlAddChild( fsNode,
|
xmlAddChild( fsNode,
|
||||||
gnc_freqSpec_dom_tree_create(
|
gnc_freqSpec_dom_tree_create(
|
||||||
xaccSchedXactionGetFreqSpec(sx)) );
|
xaccSchedXactionGetFreqSpec(sx)) );
|
||||||
xmlAddChild( ret, fsNode );
|
xmlAddChild( ret, fsNode );
|
||||||
|
|
||||||
// output kvp_frame
|
/* output kvp_frame */
|
||||||
{
|
{
|
||||||
xmlNodePtr kvpnode =
|
xmlNodePtr kvpnode =
|
||||||
kvp_frame_to_dom_tree( "sx:slots",
|
kvp_frame_to_dom_tree( "sx:slots",
|
||||||
@ -349,8 +349,9 @@ gnc_schedXaction_sixtp_parser_create(void)
|
|||||||
|
|
||||||
static
|
static
|
||||||
gboolean
|
gboolean
|
||||||
tt_act_handler( xmlNodePtr node, gnc_template_xaction_data *txd )
|
tt_act_handler( xmlNodePtr node, gpointer data)
|
||||||
{
|
{
|
||||||
|
gnc_template_xaction_data *txd = data;
|
||||||
Account *acc;
|
Account *acc;
|
||||||
acc = dom_tree_to_account( node );
|
acc = dom_tree_to_account( node );
|
||||||
if ( acc == NULL ) {
|
if ( acc == NULL ) {
|
||||||
@ -363,8 +364,9 @@ tt_act_handler( xmlNodePtr node, gnc_template_xaction_data *txd )
|
|||||||
|
|
||||||
static
|
static
|
||||||
gboolean
|
gboolean
|
||||||
tt_trn_handler( xmlNodePtr node, gnc_template_xaction_data *txd )
|
tt_trn_handler( xmlNodePtr node, gpointer data )
|
||||||
{
|
{
|
||||||
|
gnc_template_xaction_data *txd = data;
|
||||||
Transaction *trn;
|
Transaction *trn;
|
||||||
trn = dom_tree_to_transaction( node );
|
trn = dom_tree_to_transaction( node );
|
||||||
if ( trn == NULL ) {
|
if ( trn == NULL ) {
|
||||||
@ -394,14 +396,13 @@ gnc_template_transaction_end_handler(gpointer data_for_children,
|
|||||||
gnc_template_xaction_data *txd =
|
gnc_template_xaction_data *txd =
|
||||||
g_new0( gnc_template_xaction_data, 1 );
|
g_new0( gnc_template_xaction_data, 1 );
|
||||||
|
|
||||||
// the DOM tree will have an account tree [the template group
|
/* the DOM tree will have an account tree [the template group
|
||||||
// and account] and a list of transactions [which will be
|
and account] and a list of transactions [which will be
|
||||||
// members of the template account].
|
members of the template account].
|
||||||
|
|
||||||
|
we want to parse through the dom trees for each, placing
|
||||||
// we want to parse through the dom trees for each, placing
|
the null-parent account in the book's template-group slot,
|
||||||
// the null-parent account in the book's template-group slot,
|
the others under it, and the transactions as normal. */
|
||||||
// the others under it, and the transactions as normal.
|
|
||||||
|
|
||||||
if ( parent_data ) {
|
if ( parent_data ) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
@ -421,7 +422,7 @@ gnc_template_transaction_end_handler(gpointer data_for_children,
|
|||||||
xmlElemDump( stdout, NULL, tree );
|
xmlElemDump( stdout, NULL, tree );
|
||||||
}
|
}
|
||||||
|
|
||||||
// cleanup
|
/* cleanup */
|
||||||
for ( n = txd->accts; n; n = n->next ) {
|
for ( n = txd->accts; n; n = n->next ) {
|
||||||
n->data = NULL;
|
n->data = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user