Skip to content

Commit

Permalink
* src/backend/file/io-gncxml-v2.c: make the book-string an extern
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
derekatkins committed Jun 14, 2003
1 parent 73c7c7b commit 09012a0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/backend/file/gnc-book-xml-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)));

Expand Down
4 changes: 2 additions & 2 deletions src/backend/file/io-gncxml-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 09012a0

Please sign in to comment.