mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/engine/sixtp-dom-generators.c (int_to_dom_tree):new func.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4202 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -49,6 +49,18 @@ text_to_dom_tree(const char *tag, const char *str)
|
||||
return result;
|
||||
}
|
||||
|
||||
xmlNodePtr
|
||||
int_to_dom_tree(const char *tag, gint64 val)
|
||||
{
|
||||
gchar *text;
|
||||
xmlNodePtr result;
|
||||
|
||||
text = g_strdup_printf("%lld", val);
|
||||
result = text_to_dom_tree(tag, text);
|
||||
g_free(text);
|
||||
return result;
|
||||
}
|
||||
|
||||
xmlNodePtr
|
||||
guid_to_dom_tree(const char *tag, const GUID* gid)
|
||||
{
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "kvp_frame.h"
|
||||
|
||||
xmlNodePtr text_to_dom_tree(const char *tag, const char *str);
|
||||
xmlNodePtr int_to_dom_tree(const char *tag, gint64 val);
|
||||
xmlNodePtr guid_to_dom_tree(const char *tag, const GUID* gid);
|
||||
xmlNodePtr commodity_ref_to_dom_tree(const char *tag, const gnc_commodity *c);
|
||||
xmlNodePtr timespec_to_dom_tree(const char *tag, const Timespec *spec);
|
||||
|
||||
Reference in New Issue
Block a user