mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Disable support for the old binary file format.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14301 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
8ef848f7f8
commit
89f37371d9
@ -2232,8 +2232,6 @@ AC_CONFIG_FILES(po/Makefile.in
|
|||||||
src/gnome-search/Makefile
|
src/gnome-search/Makefile
|
||||||
src/import-export/Makefile
|
src/import-export/Makefile
|
||||||
src/import-export/test/Makefile
|
src/import-export/test/Makefile
|
||||||
src/import-export/binary-import/Makefile
|
|
||||||
src/import-export/binary-import/test/Makefile
|
|
||||||
src/import-export/qif-import/Makefile
|
src/import-export/qif-import/Makefile
|
||||||
src/import-export/qif/Makefile
|
src/import-export/qif/Makefile
|
||||||
src/import-export/qif/test/Makefile
|
src/import-export/qif/test/Makefile
|
||||||
|
@ -7,3 +7,7 @@ src/backend/dwi/qofmap.c
|
|||||||
src/gnome-utils/gnc-tree-model-selection.c
|
src/gnome-utils/gnc-tree-model-selection.c
|
||||||
src/backend/file/gncmod-backend-file.c
|
src/backend/file/gncmod-backend-file.c
|
||||||
src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in
|
src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in
|
||||||
|
src/backend/file/io-gncbin-r.c
|
||||||
|
src/import-export/binary-import/binary-import.glade
|
||||||
|
src/import-export/binary-import/druid-commodity.c
|
||||||
|
src/import-export/binary-import/gncmod-binary-import.c
|
||||||
|
@ -27,7 +27,6 @@ libgnc_backend_file_utils_la_SOURCES = \
|
|||||||
gnc-schedxaction-xml-v2.c \
|
gnc-schedxaction-xml-v2.c \
|
||||||
gnc-transaction-xml-v2.c \
|
gnc-transaction-xml-v2.c \
|
||||||
io-example-account.c \
|
io-example-account.c \
|
||||||
io-gncbin-r.c \
|
|
||||||
io-gncxml-gen.c \
|
io-gncxml-gen.c \
|
||||||
io-gncxml-v1.c \
|
io-gncxml-v1.c \
|
||||||
io-gncxml-v2.c \
|
io-gncxml-v2.c \
|
||||||
@ -47,7 +46,6 @@ noinst_HEADERS = \
|
|||||||
gnc-xml.h \
|
gnc-xml.h \
|
||||||
gnc-xml-helper.h \
|
gnc-xml-helper.h \
|
||||||
io-example-account.h \
|
io-example-account.h \
|
||||||
io-gncbin.h \
|
|
||||||
io-gncxml-gen.h \
|
io-gncxml-gen.h \
|
||||||
io-gncxml.h \
|
io-gncxml.h \
|
||||||
io-gncxml-v2.h \
|
io-gncxml-v2.h \
|
||||||
|
@ -52,7 +52,6 @@
|
|||||||
#include "gnc-filepath-utils.h"
|
#include "gnc-filepath-utils.h"
|
||||||
|
|
||||||
#include "io-gncxml.h"
|
#include "io-gncxml.h"
|
||||||
#include "io-gncbin.h"
|
|
||||||
#include "io-gncxml-v2.h"
|
#include "io-gncxml-v2.h"
|
||||||
#include "gnc-backend-file.h"
|
#include "gnc-backend-file.h"
|
||||||
#include "gnc-gconf-utils.h"
|
#include "gnc-gconf-utils.h"
|
||||||
@ -403,8 +402,6 @@ gnc_file_be_determine_file_type(const char *path)
|
|||||||
}
|
}
|
||||||
} else if (gnc_is_xml_data_file(path)) {
|
} else if (gnc_is_xml_data_file(path)) {
|
||||||
return GNC_BOOK_XML1_FILE;
|
return GNC_BOOK_XML1_FILE;
|
||||||
} else if (gnc_is_bin_file(path)) {
|
|
||||||
return GNC_BOOK_BIN_FILE;
|
|
||||||
}
|
}
|
||||||
return GNC_BOOK_NOT_OURS;
|
return GNC_BOOK_NOT_OURS;
|
||||||
}
|
}
|
||||||
@ -426,7 +423,6 @@ gnc_determine_file_type (const char *path)
|
|||||||
if (sbuf.st_size == 0) { PINFO (" empty file"); return TRUE; }
|
if (sbuf.st_size == 0) { PINFO (" empty file"); return TRUE; }
|
||||||
if(gnc_is_xml_data_file_v2(path, NULL)) { return TRUE; }
|
if(gnc_is_xml_data_file_v2(path, NULL)) { return TRUE; }
|
||||||
else if(gnc_is_xml_data_file(path)) { return TRUE; }
|
else if(gnc_is_xml_data_file(path)) { return TRUE; }
|
||||||
else if(gnc_is_bin_file(path)) { return TRUE; }
|
|
||||||
PINFO (" %s is not a gnc file", path);
|
PINFO (" %s is not a gnc file", path);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -868,10 +864,6 @@ gnc_file_be_load_from_file (QofBackend *bend, QofBook *book)
|
|||||||
rc = qof_session_load_from_xml_file (book, be->fullpath);
|
rc = qof_session_load_from_xml_file (book, be->fullpath);
|
||||||
if (FALSE == rc) error = ERR_FILEIO_PARSE_ERROR;
|
if (FALSE == rc) error = ERR_FILEIO_PARSE_ERROR;
|
||||||
break;
|
break;
|
||||||
case GNC_BOOK_BIN_FILE:
|
|
||||||
qof_session_load_from_binfile(book, be->fullpath);
|
|
||||||
error = gnc_get_binfile_io_error();
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
PWARN("File not any known type");
|
PWARN("File not any known type");
|
||||||
error = ERR_FILEIO_UNKNOWN_FILE_TYPE;
|
error = ERR_FILEIO_UNKNOWN_FILE_TYPE;
|
||||||
|
@ -350,7 +350,6 @@ load_gnucash_modules()
|
|||||||
{ "gnucash/register/ledger-core", 0, FALSE },
|
{ "gnucash/register/ledger-core", 0, FALSE },
|
||||||
{ "gnucash/register/register-core", 0, FALSE },
|
{ "gnucash/register/register-core", 0, FALSE },
|
||||||
{ "gnucash/register/register-gnome", 0, FALSE },
|
{ "gnucash/register/register-gnome", 0, FALSE },
|
||||||
{ "gnucash/import-export/binary-import", 0, FALSE },
|
|
||||||
{ "gnucash/import-export/qif-import", 0, FALSE },
|
{ "gnucash/import-export/qif-import", 0, FALSE },
|
||||||
{ "gnucash/import-export/ofx", 0, TRUE },
|
{ "gnucash/import-export/ofx", 0, TRUE },
|
||||||
{ "gnucash/import-export/mt940", 0, TRUE },
|
{ "gnucash/import-export/mt940", 0, TRUE },
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
SUBDIRS = . schemas binary-import qif qif-import ${OFX_DIR} ${HBCI_DIR} ${MT940_DIR} log-replay test
|
SUBDIRS = . schemas qif qif-import \
|
||||||
DIST_SUBDIRS = schemas binary-import qif qif-import qif-io-core ofx hbci mt940 log-replay test
|
${OFX_DIR} ${HBCI_DIR} ${MT940_DIR} log-replay test
|
||||||
|
DIST_SUBDIRS = schemas qif qif-import qif-io-core \
|
||||||
|
ofx hbci mt940 log-replay test
|
||||||
|
|
||||||
pkglib_LTLIBRARIES=libgncmod-generic-import.la
|
pkglib_LTLIBRARIES=libgncmod-generic-import.la
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user