Enlightenment CVS committal

Author  : fletch3k
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        .indent.pro config.c config.h controlcentre.c controlcentre.h 
        debug.c debug.h ipc.c ipc.h main.c main.h msgbox.c msgbox.h 
        note.c note.h saveload.c saveload.h settings.c settings.h 
        storage.c storage.h usage.c usage.h xml.c xml.h 


Log Message:
Indent didn't like the Comments at the top.

===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/.indent.pro,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- .indent.pro 5 Feb 2004 17:05:15 -0000       1.1
+++ .indent.pro 6 Feb 2004 07:36:30 -0000       1.2
@@ -17,3 +17,5 @@
 -saw
 -sc
 -bap
+-cs
+
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/config.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- config.c    5 Feb 2004 16:52:20 -0000       1.1
+++ config.c    6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "config.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/config.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- config.h    5 Feb 2004 16:52:20 -0000       1.1
+++ config.h    6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef CONFIG_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/controlcentre.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- controlcentre.c     5 Feb 2004 16:52:20 -0000       1.1
+++ controlcentre.c     6 Feb 2004 07:36:30 -0000       1.2
@@ -1,12 +1,22 @@
+
 /**************************************************/
+
 /**               E  -  N O T E S                **/
+
 /**                                              **/
+
 /**  The contents of this file are released to   **/
+
 /**  the public under the General Public Licence **/
+
 /**  Version 2.                                  **/
+
 /**                                              **/
+
 /**  By  Thomas Fletcher (www.fletch.vze.com)    **/
+
 /**                                              **/
+
 /**************************************************/
 
 
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/controlcentre.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- controlcentre.h     5 Feb 2004 16:52:20 -0000       1.1
+++ controlcentre.h     6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef CONTROLCENTRE_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/debug.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- debug.c     5 Feb 2004 16:52:20 -0000       1.1
+++ debug.c     6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "debug.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/debug.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- debug.h     5 Feb 2004 16:52:20 -0000       1.1
+++ debug.h     6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef DEBUG_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ipc.c       5 Feb 2004 16:52:20 -0000       1.1
+++ ipc.c       6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "ipc.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ipc.h       5 Feb 2004 16:52:20 -0000       1.1
+++ ipc.h       6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef IPC_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- main.c      5 Feb 2004 16:52:20 -0000       1.1
+++ main.c      6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "main.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- main.h      5 Feb 2004 16:52:20 -0000       1.1
+++ main.h      6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef MAIN_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/msgbox.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- msgbox.c    5 Feb 2004 16:52:20 -0000       1.1
+++ msgbox.c    6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "msgbox.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/msgbox.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- msgbox.h    5 Feb 2004 16:52:20 -0000       1.1
+++ msgbox.h    6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef MSGBOX_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- note.c      5 Feb 2004 16:52:20 -0000       1.1
+++ note.c      6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "note.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- note.h      5 Feb 2004 16:52:20 -0000       1.1
+++ note.h      6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef NOTE_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- saveload.c  5 Feb 2004 16:52:20 -0000       1.1
+++ saveload.c  6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "saveload.h"
@@ -148,8 +149,11 @@
                setup_saveload_opt(saveload->tree,
                                   (char *) get_title_by_note(p));
                while ((p = (Evas_List *) get_cycle_next_note(p)) != NULL) {
-                       setup_saveload_opt(saveload->tree,
-                                          (char *) get_title_by_note(p));
+                       if (strcmp(get_title_by_note(p), "")) {
+                               setup_saveload_opt(saveload->tree,
+                                                  (char *)
+                                                  get_title_by_note(p));
+                       }
                }
        }
        return;
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- saveload.h  5 Feb 2004 16:52:20 -0000       1.1
+++ saveload.h  6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef SAVELOAD_HH
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/settings.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- settings.c  5 Feb 2004 16:52:20 -0000       1.1
+++ settings.c  6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "settings.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/settings.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- settings.h  5 Feb 2004 16:52:20 -0000       1.1
+++ settings.h  6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef SETTINGS_HH
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/storage.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- storage.c   5 Feb 2004 16:52:20 -0000       1.1
+++ storage.c   6 Feb 2004 07:36:30 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "storage.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/storage.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- storage.h   5 Feb 2004 16:52:20 -0000       1.1
+++ storage.h   6 Feb 2004 07:36:31 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef STORAGE_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/usage.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- usage.c     5 Feb 2004 16:52:20 -0000       1.1
+++ usage.c     6 Feb 2004 07:36:31 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "usage.h"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/usage.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- usage.h     5 Feb 2004 16:52:20 -0000       1.1
+++ usage.h     6 Feb 2004 07:36:31 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef USAGE_H
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/xml.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- xml.c       5 Feb 2004 16:52:20 -0000       1.1
+++ xml.c       6 Feb 2004 07:36:31 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #include "xml.h"
@@ -29,23 +30,29 @@
 xml_read(char *fn)
 {
        XmlReadHandle  *p = malloc(sizeof(XmlReadHandle));
+       char           *unabletoopen = malloc(PATH_MAX);
+       char           *unabletoparse = malloc(PATH_MAX);
+
+       snprintf(unabletoopen, PATH_MAX, "Unable to open \"%s\"", fn);
+       snprintf(unabletoparse, PATH_MAX, "Unable to parse \"%s\"", fn);
 
        p->doc = xmlParseFile(fn);
        if (p->doc == NULL) {
-               fprintf(stderr, "E-Notes: Unable to open, \"%s\".\n", fn);
+               dml(unabletoopen, 1);
                free(p);
                p = NULL;
        } else {
                p->cur = xmlDocGetRootElement(p->doc);
                if (p->cur == NULL) {
-                       fprintf(stderr,
-                               "E-Notes: Failed to parse file. \"%s\".\n", fn);
+                       dml(unabletoparse, 1);
                        free(p);
                        p = NULL;
                }
                p->cur = p->cur->xmlChildrenNode;
        }
 
+       free(unabletoopen);
+       free(unabletoparse);
        return (p);
 }
 
@@ -90,10 +97,13 @@
 xml_write(char *fn)
 {
        XmlWriteHandle *p = malloc(sizeof(XmlWriteHandle));
+       char           *unabletoopen = malloc(PATH_MAX);
+
+       snprintf(unabletoopen, PATH_MAX, "Unable to open (begin) \"%s\"", fn);
 
        p->doc = xmlNewDoc(NULL);
        if (p->doc == NULL) {
-               fprintf(stderr, "E-Notes: Unable to open, \"%s\".\n", fn);
+               dml(unabletoopen, 1);
                free(p);
                p = NULL;
        } else {
@@ -104,6 +114,8 @@
                                                   NULL);
                xmlTextWriterStartElement(p->writer, BAD_CAST "enotes");
        }
+
+       free(unabletoopen);
        return (p);
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/xml.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- xml.h       5 Feb 2004 16:52:20 -0000       1.1
+++ xml.h       6 Feb 2004 07:36:31 -0000       1.2
@@ -1,13 +1,14 @@
-/**************************************************/
-/**               E  -  N O T E S                **/
-/**                                              **/
-/**  The contents of this file are released to   **/
-/**  the public under the General Public Licence **/
-/**  Version 2.                                  **/
-/**                                              **/
-/**  By  Thomas Fletcher (www.fletch.vze.com)    **/
-/**                                              **/
-/**************************************************/
+
+/**************************************************
+ **               E  -  N O T E S                **
+ **                                              **
+ **  The contents of this file are released to   **
+ **  the public under the General Public Licence **
+ **  Version 2.                                  **
+ **                                              **
+ **  By  Thomas Fletcher (www.fletch.vze.com)    **
+ **                                              **
+ **************************************************/
 
 
 #ifndef XML_H




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to