Enlightenment CVS committal Author : kwo Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_lib.c Log Message: Add unistd.h for unlink(), comment out unused code. =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v retrieving revision 1.99 retrieving revision 1.100 diff -u -3 -r1.99 -r1.100 --- eet_lib.c 29 Mar 2008 07:28:18 -0000 1.99 +++ eet_lib.c 3 Apr 2008 19:30:08 -0000 1.100 @@ -32,6 +32,7 @@ #include <string.h> #include <fnmatch.h> #include <fcntl.h> +#include <unistd.h> #include <zlib.h> #ifdef HAVE_NETINET_IN_H @@ -172,7 +173,9 @@ static void eet_cache_add(Eet_File *ef, Eet_File ***cache, int *cache_num, int *cache_alloc); static void eet_cache_del(Eet_File *ef, Eet_File ***cache, int *cache_num, int *cache_alloc); static int eet_string_match(const char *s1, const char *s2); +#if 0 /* Unused */ static Eet_Error eet_flush(Eet_File *ef); +#endif static Eet_Error eet_flush2(Eet_File *ef); static Eet_File_Node *find_node_by_name(Eet_File *ef, const char *name); static int read_data_from_disk(Eet_File *ef, Eet_File_Node *efn, void *buf, int len); @@ -521,6 +524,7 @@ return error; } +#if 0 /* Unused */ /* flush out writes to an eet file */ static Eet_Error eet_flush(Eet_File *ef) @@ -640,6 +644,7 @@ ef->fp = NULL; return EET_ERROR_WRITE_ERROR; } +#endif EAPI int eet_init(void) @@ -1084,6 +1089,7 @@ return NULL; } +#if 0 /* No prototype */ EAPI Eet_File * eet_memopen_read(const void *data, size_t size) { @@ -1110,6 +1116,7 @@ return eet_internal_read(ef); } +#endif EAPI Eet_File * eet_open(const char *file, Eet_File_Mode mode) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs