summaryrefslogtreecommitdiff
path: root/legacy/eet/src/lib/Eet_private.h
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2010-11-26 14:40:53 +0000
committerCedric BAIL <cedric.bail@free.fr>2010-11-26 14:40:53 +0000
commita453783e68d80af507778b6a61ae6a22932e7c5d (patch)
treef3613d54bd016c341dff1920a67dc41d2fd1bd7f /legacy/eet/src/lib/Eet_private.h
parent5c9cb608543ccc5565abbb934c2748b8fec971de (diff)
* eet: reduce memory used by Eet dictionary.
SVN revision: 55016
Diffstat (limited to 'legacy/eet/src/lib/Eet_private.h')
-rw-r--r--legacy/eet/src/lib/Eet_private.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/legacy/eet/src/lib/Eet_private.h b/legacy/eet/src/lib/Eet_private.h
index 378d965351..fb208de045 100644
--- a/legacy/eet/src/lib/Eet_private.h
+++ b/legacy/eet/src/lib/Eet_private.h
@@ -7,18 +7,30 @@ typedef enum _Eet_Convert_Type Eet_Convert_Type;
7 7
8enum _Eet_Convert_Type 8enum _Eet_Convert_Type
9{ 9{
10 EET_D_NOT_CONVERTED = 0, 10 EET_D_NOTHING = 0,
11 EET_D_FLOAT = 1 << 1, 11 EET_D_FLOAT = 1 << 1,
12 EET_D_DOUBLE = 1 << 2, 12 EET_D_DOUBLE = 1 << 2,
13 EET_D_FIXED_POINT = 1 << 4 13 EET_D_FIXED_POINT = 1 << 4
14}; 14};
15 15
16typedef struct _Eet_String Eet_String; 16typedef struct _Eet_String Eet_String;
17typedef struct _Eet_Convert Eet_Convert;
18
19struct _Eet_Convert
20{
21 float f;
22 double d;
23 Eina_F32p32 fp;
24
25 Eet_Convert_Type type;
26};
17 27
18struct _Eet_String 28struct _Eet_String
19{ 29{
20 const char *mmap; 30 union {
21 char *str; 31 const char *mmap;
32 char *str;
33 } u;
22 34
23 int hash; 35 int hash;
24 int len; 36 int len;
@@ -26,15 +38,12 @@ struct _Eet_String
26 int next; 38 int next;
27 int prev; 39 int prev;
28 40
29 float f; 41 unsigned char allocated : 1;
30 double d;
31 Eina_F32p32 fp;
32
33 Eet_Convert_Type type;
34}; 42};
35struct _Eet_Dictionary 43struct _Eet_Dictionary
36{ 44{
37 Eet_String *all; 45 Eet_String *all;
46 Eina_Hash *converts;
38 47
39 int size; 48 int size;
40 int offset; 49 int offset;