mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/backend/file/io-gncxml-v2.c: make the book-string an extern
* src/backend/file/gnc-book-xml-v2.c: make the book-string non-static Fixes #114401 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8604 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
73c7c7b539
commit
09012a0aab
@ -1,3 +1,9 @@
|
||||
2003-06-14 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/backend/file/io-gncxml-v2.c: make the book-string an extern
|
||||
* src/backend/file/gnc-book-xml-v2.c: make the book-string non-static
|
||||
Fixes #114401
|
||||
|
||||
2003-06-14 Chris Lyttle <chris@wilddev.net>
|
||||
|
||||
* src/scm/help-topics-index.scm: add Jon Lapham's patch
|
||||
|
@ -49,7 +49,8 @@
|
||||
#include "gnc-engine-util.h"
|
||||
#include "Group.h"
|
||||
|
||||
static const gchar *book_version_string = "2.0.0";
|
||||
/* non-static because it's used in io-gncxml-v2.c */
|
||||
const gchar *gnc_v2_book_version_string = "2.0.0";
|
||||
|
||||
/* ids */
|
||||
#define gnc_book_string "gnc:book"
|
||||
@ -108,7 +109,7 @@ gnc_book_dom_tree_create(GNCBook *book)
|
||||
xmlNodePtr ret;
|
||||
|
||||
ret = xmlNewNode(NULL, gnc_book_string);
|
||||
xmlSetProp(ret, "version", book_version_string);
|
||||
xmlSetProp(ret, "version", gnc_v2_book_version_string);
|
||||
|
||||
xmlAddChild(ret, guid_to_dom_tree(book_id_string, gnc_book_get_guid(book)));
|
||||
|
||||
|
@ -65,7 +65,7 @@ struct file_backend {
|
||||
};
|
||||
|
||||
#define GNC_V2_STRING "gnc-v2"
|
||||
static const gchar *book_version_string;
|
||||
extern const gchar *gnc_v2_book_version_string; /* see gnc-book-xml-v2 */
|
||||
|
||||
void
|
||||
run_callback(sixtp_gdv2 *data, const char *type)
|
||||
@ -872,7 +872,7 @@ write_book(FILE *out, GNCBook *book, sixtp_gdv2 *gd)
|
||||
be_data.out = out;
|
||||
be_data.book = book;
|
||||
|
||||
fprintf( out, "<%s version=\"%s\">\n", BOOK_TAG, book_version_string );
|
||||
fprintf( out, "<%s version=\"%s\">\n", BOOK_TAG, gnc_v2_book_version_string );
|
||||
write_book_parts (out, book);
|
||||
|
||||
write_counts(out,
|
||||
|
Loading…
Reference in New Issue
Block a user