Don't use the same macro name in each file, gives nasty compiler warnings when
authordevilhorns <devilhorns>
Sat, 31 Jul 2010 01:21:30 +0000 (01:21 +0000)
committerdevilhorns <devilhorns@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 31 Jul 2010 01:21:30 +0000 (01:21 +0000)
using amalgamation.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@50696 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/edje_convert.c
src/lib/edje_edit.c

index 237c668..dbc5d4c 100644 (file)
@@ -402,7 +402,7 @@ _edje_description_convert(int type,
         result = eina_mempool_malloc(ce->mp.GROUP, sizeof (Edje_Part_Description_Common));
         break;
 
-#define ALLOC_POOL(Short, Type, Name)                                  \
+#define CONVERT_ALLOC_POOL(Short, Type, Name)                                  \
         case EDJE_PART_TYPE_##Short:                                   \
           {                                                            \
              Edje_Part_Description_##Type *Name;                       \
@@ -413,12 +413,12 @@ _edje_description_convert(int type,
              break;                                                    \
           }
 
-        ALLOC_POOL(IMAGE, Image, image);
-        ALLOC_POOL(TEXT, Text, text);
-        ALLOC_POOL(TEXTBLOCK, Text, text);
-        ALLOC_POOL(BOX, Box, box);
-        ALLOC_POOL(TABLE, Table, table);
-        ALLOC_POOL(EXTERNAL, External, external_params);
+        CONVERT_ALLOC_POOL(IMAGE, Image, image);
+        CONVERT_ALLOC_POOL(TEXT, Text, text);
+        CONVERT_ALLOC_POOL(TEXTBLOCK, Text, text);
+        CONVERT_ALLOC_POOL(BOX, Box, box);
+        CONVERT_ALLOC_POOL(TABLE, Table, table);
+        CONVERT_ALLOC_POOL(EXTERNAL, External, external_params);
      }
 
    *result = oed->common;
index 2becd59..e30c9b3 100644 (file)
@@ -2654,7 +2654,7 @@ _edje_edit_state_alloc(int type, Edje *ed)
         pd = eina_mempool_malloc(ce->mp.GROUP, sizeof (Edje_Part_Description_Common));
         break;
 
-#define ALLOC_POOL(Short, Type, Name)                                  \
+#define EDIT_ALLOC_POOL(Short, Type, Name)                                     \
         case EDJE_PART_TYPE_##Short:                                   \
           {                                                            \
              Edje_Part_Description_##Type *Name;                       \
@@ -2665,12 +2665,12 @@ _edje_edit_state_alloc(int type, Edje *ed)
              break;                                                    \
           }
 
-        ALLOC_POOL(IMAGE, Image, image);
-        ALLOC_POOL(TEXT, Text, text);
-        ALLOC_POOL(TEXTBLOCK, Text, text);
-        ALLOC_POOL(BOX, Box, box);
-        ALLOC_POOL(TABLE, Table, table);
-        ALLOC_POOL(EXTERNAL, External, external_params);
+        EDIT_ALLOC_POOL(IMAGE, Image, image);
+        EDIT_ALLOC_POOL(TEXT, Text, text);
+        EDIT_ALLOC_POOL(TEXTBLOCK, Text, text);
+        EDIT_ALLOC_POOL(BOX, Box, box);
+        EDIT_ALLOC_POOL(TABLE, Table, table);
+        EDIT_ALLOC_POOL(EXTERNAL, External, external_params);
      }
 
    return pd;