projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a102b14
)
efl: simplify logic of eina_cow.
author
Cedric BAIL
<cedric.bail@free.fr>
Tue, 22 Jan 2013 03:52:55 +0000
(
03:52
+0000)
committer
Cedric BAIL
<cedric.bail@free.fr>
Tue, 22 Jan 2013 03:52:55 +0000
(
03:52
+0000)
SVN revision: 83051
src/lib/eina/eina_cow.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_cow.c
b/src/lib/eina/eina_cow.c
index
f8a1366
..
af434bb
100644
(file)
--- a/
src/lib/eina/eina_cow.c
+++ b/
src/lib/eina/eina_cow.c
@@
-73,13
+73,13
@@
typedef int (*Eina_Cow_Hash)(const void *, int);
} while (0);
#define EINA_COW_PTR_SIZE \
-
(sizeof (Eina_Cow_Ptr) < sizeof (void*) ? sizeof (void*) :
sizeof (Eina_Cow_Ptr))
+
eina_mempool_alignof(
sizeof (Eina_Cow_Ptr))
#define EINA_COW_PTR_GET(d) \
- (
Eina_Cow_Ptr*) (((unsigned char *)d) - EINA_COW_PTR_SIZE
)
+ (
((Eina_Cow_Ptr *)d) - 1
)
#define EINA_COW_DATA_GET(d) \
- ((
(unsigned char *)d) + EINA_COW_PTR_SIZE
)
+ ((
unsigned char *)(d + 1)
)
static int _eina_cow_log_dom = -1;