Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: eet_lib.c Log Message: save a few bytes by packing structures better... simple savings :) =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- eet_lib.c 23 May 2007 12:07:14 -0000 1.76 +++ eet_lib.c 28 Jun 2007 23:22:20 -0000 1.77 @@ -39,22 +39,20 @@ struct _Eet_File { + char *path; + FILE *fp; + Eet_File_Header *header; + uint8_t *data; + int magic; int references; - char *path; - - FILE *fp; Eet_File_Mode mode; + int data_size; + time_t mtime; unsigned char writes_pending : 1; unsigned char delete_me_now : 1; - - Eet_File_Header *header; - - uint8_t *data; - int data_size; - time_t mtime; }; struct _Eet_File_Header @@ -71,16 +69,16 @@ struct _Eet_File_Node { - unsigned char free_name : 1; - unsigned char compression : 1; - + char *name; + void *data; + Eet_File_Node *next; /* FIXME: make buckets linked lists */ + int offset; int size; int data_size; - char *name; - void *data; - Eet_File_Node *next; /* FIXME: make buckets linked lists */ + unsigned char free_name : 1; + unsigned char compression : 1; }; #if 0 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs