[Gnucash-changes] break period closing for right now

Linas Vepstas linas at cvs.gnucash.org
Sun Jun 13 01:39:54 EDT 2004


Log Message:
-----------
break period closing for right now

Tags:
----
backend-work-1

Modified Files:
--------------
    gnucash/src/backend/file:
        gnc-backend-file.c

Revision Data
-------------
Index: gnc-backend-file.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/backend/file/gnc-backend-file.c,v
retrieving revision 1.38.4.1
retrieving revision 1.38.4.2
diff -Lsrc/backend/file/gnc-backend-file.c -Lsrc/backend/file/gnc-backend-file.c -u -r1.38.4.1 -r1.38.4.2
--- src/backend/file/gnc-backend-file.c
+++ src/backend/file/gnc-backend-file.c
@@ -238,6 +238,8 @@
 static void
 file_begin_edit (QofBackend *be, QofInstance *inst)
 {
+    if (0) build_period_filepath(0, 0);
+#if BORKEN_FOR_NOW
     FileBackend *fbe = (FileBackend *) be;
     QofBook *book = gp;
     const char * filepath;
@@ -258,20 +260,24 @@
      * modify books that are closed (They should be treated as 
      * 'read-only').
      */
+#endif
 }
 
 static void
-file_rollback_edit (QofBackend *be, QofIdTypeConst typ, gpointer gp)
+file_rollback_edit (QofBackend *be, QofInstance *inst)
 {
+#if BORKEN_FOR_NOW
     QofBook *book = gp;
 
     if (strcmp (GNC_ID_PERIOD, typ)) return;
     PINFO ("book=%p", book);
+#endif
 }
 
 static void
-file_commit_edit (QofBackend *be, QofIdTypeConst typ, gpointer gp)
+file_commit_edit (QofBackend *be, QofInstance *inst)
 {
+#if BORKEN_FOR_NOW
     FileBackend *fbe = (FileBackend *) be;
     QofBook *book = gp;
     const char * filepath;
@@ -286,6 +292,7 @@
      * there'll be the same transactions in the closed book,
      * and also in the current book. */
     gnc_file_be_write_to_file (fbe, fbe->primary_book, fbe->fullpath, TRUE);
+#endif
 }
 
 /* ================================================================= */


More information about the gnucash-changes mailing list