Enlightenment CVS committal
Author : cedric
Project : e17
Module : libs/eet
Dir : e17/libs/eet/src/lib
Modified Files:
eet_lib.c
Log Message:
Old eet file format are now marked as deprecated. The plan is to let the
support enable by default for some time, then make desactivate it and finaly
we will remove it completely at some point.
===================================================================
RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -3 -r1.104 -r1.105
--- eet_lib.c 16 May 2008 14:03:11 -0000 1.104
+++ eet_lib.c 19 May 2008 15:23:41 -0000 1.105
@@ -905,6 +905,7 @@
return ef;
}
+#if EET_OLD_EET_FILE_FORMAT
static Eet_File *
eet_internal_read1(Eet_File *ef)
{
@@ -915,6 +916,8 @@
int byte_entries;
int i;
+ fprintf(stderr, "EET file format of '%s' is deprecated. You should just
open it one time with mode == EET_FILE_MODE_READ_WRITE to solve this issue.\n",
ef->path);
+
/* build header table if read mode */
/* geat header */
index += sizeof(int);
@@ -1066,7 +1069,9 @@
}
return ef;
}
+#endif
+#if EET_OLD_EET_FILE_FORMAT
static Eet_File *
eet_internal_read(Eet_File *ef)
{
@@ -1080,8 +1085,10 @@
switch (ntohl(*data))
{
+#if EET_OLD_EET_FILE_FORMAT
case EET_MAGIC_FILE:
return eet_internal_read1(ef);
+#endif
case EET_MAGIC_FILE2:
return eet_internal_read2(ef);
default:
@@ -1271,6 +1278,7 @@
return ef;
}
+#endif
EAPI Eet_File_Mode
eet_mode_get(Eet_File *ef)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs