summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--NEWS2
-rw-r--r--src/bin/evas/evas_cserve2_main.c10
-rw-r--r--src/examples/eina/eina_hash_01.c22
-rw-r--r--src/examples/eina/eina_hash_03.c22
-rw-r--r--src/examples/eina/eina_hash_04.c22
-rw-r--r--src/examples/eina/eina_hash_05.c22
-rw-r--r--src/examples/eina/eina_hash_06.c22
-rw-r--r--src/examples/eina/eina_hash_07.c22
-rw-r--r--src/examples/eina/eina_value_03.c4
-rw-r--r--src/lib/edje/edje_edit.c422
-rw-r--r--src/lib/eina/eina_array.c36
-rw-r--r--src/lib/eina/eina_array.h12
-rw-r--r--src/lib/eina/eina_benchmark.c14
-rw-r--r--src/lib/eina/eina_benchmark.h11
-rw-r--r--src/lib/eina/eina_binbuf.h6
-rw-r--r--src/lib/eina/eina_convert.c21
-rw-r--r--src/lib/eina/eina_convert.h33
-rw-r--r--src/lib/eina/eina_counter.c34
-rw-r--r--src/lib/eina/eina_counter.h5
-rw-r--r--src/lib/eina/eina_hash.c28
-rw-r--r--src/lib/eina/eina_hash.h38
-rw-r--r--src/lib/eina/eina_inarray.c38
-rw-r--r--src/lib/eina/eina_inarray.h17
-rw-r--r--src/lib/eina/eina_inline_array.x3
-rw-r--r--src/lib/eina/eina_inline_value.x102
-rw-r--r--src/lib/eina/eina_inlist.c16
-rw-r--r--src/lib/eina/eina_inlist.h13
-rw-r--r--src/lib/eina/eina_list.c38
-rw-r--r--src/lib/eina/eina_list.h46
-rw-r--r--src/lib/eina/eina_lock.h2
-rw-r--r--src/lib/eina/eina_magic.c7
-rw-r--r--src/lib/eina/eina_magic.h5
-rw-r--r--src/lib/eina/eina_main.c5
-rw-r--r--src/lib/eina/eina_matrixsparse.c20
-rw-r--r--src/lib/eina/eina_matrixsparse.h3
-rw-r--r--src/lib/eina/eina_mempool.c14
-rw-r--r--src/lib/eina/eina_model.c46
-rw-r--r--src/lib/eina/eina_model.h9
-rw-r--r--src/lib/eina/eina_module.c19
-rw-r--r--src/lib/eina/eina_module.h22
-rw-r--r--src/lib/eina/eina_rbtree.c14
-rw-r--r--src/lib/eina/eina_rbtree.h15
-rw-r--r--src/lib/eina/eina_safety_checks.c2
-rw-r--r--src/lib/eina/eina_safety_checks.h19
-rw-r--r--src/lib/eina/eina_share_common.c7
-rw-r--r--src/lib/eina/eina_strbuf.h9
-rw-r--r--src/lib/eina/eina_strbuf_common.c38
-rw-r--r--src/lib/eina/eina_stringshare.c34
-rw-r--r--src/lib/eina/eina_thread.c54
-rw-r--r--src/lib/eina/eina_thread.h40
-rw-r--r--src/lib/eina/eina_tiler.c7
-rw-r--r--src/lib/eina/eina_tmpstr.c1
-rw-r--r--src/lib/eina/eina_ustrbuf.h9
-rw-r--r--src/lib/eina/eina_value.c102
-rw-r--r--src/lib/eina/eina_value.h38
-rw-r--r--src/lib/eo/eo_base_class.c2
-rw-r--r--src/lib/evas/canvas/evas_key_grab.c27
-rw-r--r--src/modules/eina/mp/chained_pool/eina_chained_mempool.c8
-rw-r--r--src/modules/eina/mp/one_big/eina_one_big.c11
-rw-r--r--src/modules/emotion/gstreamer/emotion_gstreamer.c10
-rw-r--r--src/tests/eina/eina_test_barrier.c5
-rw-r--r--src/tests/eina/eina_test_counter.c5
-rw-r--r--src/tests/eina/eina_test_file.c1
-rw-r--r--src/tests/eina/eina_test_inlist.c13
-rw-r--r--src/tests/eina/eina_test_magic.c2
66 files changed, 204 insertions, 1509 deletions
diff --git a/ChangeLog b/ChangeLog
index 58d181bad3..ba374ef462 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12013-10-11 Carsten Haitzler (The Rasterman)
2
3 * deprecate/remove all the eina_error setting (and getting)
4 within efl no one uses it and it frankly it much more pain
5 than it's worth. the api's are still there, and efl api's still
6 fail as they did before.. they just don't ALSO set eina_error.
7
12013-10-11 Cedric Bail 82013-10-11 Cedric Bail
2 9
3 * Eina: add Eina_Spinlock API, 10 * Eina: add Eina_Spinlock API,
diff --git a/NEWS b/NEWS
index 19c4350ed3..210b8f55dd 100644
--- a/NEWS
+++ b/NEWS
@@ -180,6 +180,8 @@ Removed:
180 - Remove support for DirectFB, XRender, WinCE, Glew, Direct3d, X11-16 and X11-8. 180 - Remove support for DirectFB, XRender, WinCE, Glew, Direct3d, X11-16 and X11-8.
181 * Ecore_DirectFB: 181 * Ecore_DirectFB:
182 - Removed 182 - Removed
183 * Eina error status:
184 - eina error status from efl now don't also report error in addition to return.
183 185
184Improvements: 186Improvements:
185 * EFL: 187 * EFL:
diff --git a/src/bin/evas/evas_cserve2_main.c b/src/bin/evas/evas_cserve2_main.c
index 5f5852f220..a2bb9c402d 100644
--- a/src/bin/evas/evas_cserve2_main.c
+++ b/src/bin/evas/evas_cserve2_main.c
@@ -254,15 +254,7 @@ cserve2_client_accept(int fd)
254 while (eina_hash_find(client_list, &client->id)) 254 while (eina_hash_find(client_list, &client->id))
255 client->id = _client_id++; 255 client->id = _client_id++;
256 256
257 if (!eina_hash_add(client_list, &client->id, client)) 257 eina_hash_add(client_list, &client->id, client);
258 {
259 Eina_Error err = eina_error_get();
260 ERR("Could not add client to the list: \"%s\"",
261 eina_error_msg_get(err));
262 free(client);
263 close(fd);
264 return;
265 }
266 258
267 cserve2_fd_watch_add(fd, FD_READ | FD_ERROR, cserve2_message_handler, 259 cserve2_fd_watch_add(fd, FD_READ | FD_ERROR, cserve2_message_handler,
268 client); 260 client);
diff --git a/src/examples/eina/eina_hash_01.c b/src/examples/eina/eina_hash_01.c
index 16418feeac..75181afb93 100644
--- a/src/examples/eina/eina_hash_01.c
+++ b/src/examples/eina/eina_hash_01.c
@@ -90,19 +90,12 @@ main(int argc, const char *argv[])
90 90
91 // Modify or add an entry to the hash with eina_hash_set 91 // Modify or add an entry to the hash with eina_hash_set
92 // Let's first add a new entry 92 // Let's first add a new entry
93 eina_error_set(0);
94 phone = eina_hash_set(phone_book, "Raul Seixas", 93 phone = eina_hash_set(phone_book, "Raul Seixas",
95 strdup("+55 01 234-56789")); 94 strdup("+55 01 234-56789"));
96 if (!phone) 95 if (!phone)
97 { 96 {
98 Eina_Error err = eina_error_get(); 97 printf("No previous phone found for Raul Seixas. ");
99 if (!err) 98 printf("Creating new entry.\n");
100 {
101 printf("No previous phone found for Raul Seixas. ");
102 printf("Creating new entry.\n");
103 }
104 else
105 printf("Error when setting phone for Raul Seixas\n");
106 } 99 }
107 else 100 else
108 { 101 {
@@ -113,7 +106,6 @@ main(int argc, const char *argv[])
113 printf("\n"); 106 printf("\n");
114 107
115 // Now change the phone number 108 // Now change the phone number
116 eina_error_set(0);
117 phone = eina_hash_set(phone_book, "Raul Seixas", 109 phone = eina_hash_set(phone_book, "Raul Seixas",
118 strdup("+55 02 222-22222")); 110 strdup("+55 02 222-22222"));
119 if (phone) 111 if (phone)
@@ -124,14 +116,8 @@ main(int argc, const char *argv[])
124 } 116 }
125 else 117 else
126 { 118 {
127 Eina_Error err = eina_error_get(); 119 printf("No previous phone found for Raul Seixas. ");
128 if (err) 120 printf("Creating new entry.\n");
129 printf("Error when changing phone for Raul Seixas\n");
130 else
131 {
132 printf("No previous phone found for Raul Seixas. ");
133 printf("Creating new entry.\n");
134 }
135 } 121 }
136 122
137 // There are many ways to iterate over our Phone book. 123 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_hash_03.c b/src/examples/eina/eina_hash_03.c
index ba543d4179..b7323c4c5b 100644
--- a/src/examples/eina/eina_hash_03.c
+++ b/src/examples/eina/eina_hash_03.c
@@ -90,19 +90,12 @@ main(int argc, const char *argv[])
90 90
91 // Modify or add an entry to the hash with eina_hash_set 91 // Modify or add an entry to the hash with eina_hash_set
92 // Let's first add a new entry 92 // Let's first add a new entry
93 eina_error_set(0);
94 phone = eina_hash_set(phone_book, "Raul Seixas", 93 phone = eina_hash_set(phone_book, "Raul Seixas",
95 strdup("+55 01 234-56789")); 94 strdup("+55 01 234-56789"));
96 if (!phone) 95 if (!phone)
97 { 96 {
98 Eina_Error err = eina_error_get(); 97 printf("No previous phone found for Raul Seixas. ");
99 if (!err) 98 printf("Creating new entry.\n");
100 {
101 printf("No previous phone found for Raul Seixas. ");
102 printf("Creating new entry.\n");
103 }
104 else
105 printf("Error when setting phone for Raul Seixas\n");
106 } 99 }
107 else 100 else
108 { 101 {
@@ -113,7 +106,6 @@ main(int argc, const char *argv[])
113 printf("\n"); 106 printf("\n");
114 107
115 // Now change the phone number 108 // Now change the phone number
116 eina_error_set(0);
117 phone = eina_hash_set(phone_book, "Raul Seixas", 109 phone = eina_hash_set(phone_book, "Raul Seixas",
118 strdup("+55 02 222-22222")); 110 strdup("+55 02 222-22222"));
119 if (phone) 111 if (phone)
@@ -124,14 +116,8 @@ main(int argc, const char *argv[])
124 } 116 }
125 else 117 else
126 { 118 {
127 Eina_Error err = eina_error_get(); 119 printf("No previous phone found for Raul Seixas. ");
128 if (err) 120 printf("Creating new entry.\n");
129 printf("Error when changing phone for Raul Seixas\n");
130 else
131 {
132 printf("No previous phone found for Raul Seixas. ");
133 printf("Creating new entry.\n");
134 }
135 } 121 }
136 122
137 // There are many ways to iterate over our Phone book. 123 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_hash_04.c b/src/examples/eina/eina_hash_04.c
index da73e04b1b..2441617d32 100644
--- a/src/examples/eina/eina_hash_04.c
+++ b/src/examples/eina/eina_hash_04.c
@@ -90,19 +90,12 @@ main(int argc, const char *argv[])
90 90
91 // Modify or add an entry to the hash with eina_hash_set 91 // Modify or add an entry to the hash with eina_hash_set
92 // Let's first add a new entry 92 // Let's first add a new entry
93 eina_error_set(0);
94 phone = eina_hash_set(phone_book, "Raul Seixas", 93 phone = eina_hash_set(phone_book, "Raul Seixas",
95 strdup("+55 01 234-56789")); 94 strdup("+55 01 234-56789"));
96 if (!phone) 95 if (!phone)
97 { 96 {
98 Eina_Error err = eina_error_get(); 97 printf("No previous phone found for Raul Seixas. ");
99 if (!err) 98 printf("Creating new entry.\n");
100 {
101 printf("No previous phone found for Raul Seixas. ");
102 printf("Creating new entry.\n");
103 }
104 else
105 printf("Error when setting phone for Raul Seixas\n");
106 } 99 }
107 else 100 else
108 { 101 {
@@ -113,7 +106,6 @@ main(int argc, const char *argv[])
113 printf("\n"); 106 printf("\n");
114 107
115 // Now change the phone number 108 // Now change the phone number
116 eina_error_set(0);
117 phone = eina_hash_set(phone_book, "Raul Seixas", 109 phone = eina_hash_set(phone_book, "Raul Seixas",
118 strdup("+55 02 222-22222")); 110 strdup("+55 02 222-22222"));
119 if (phone) 111 if (phone)
@@ -124,14 +116,8 @@ main(int argc, const char *argv[])
124 } 116 }
125 else 117 else
126 { 118 {
127 Eina_Error err = eina_error_get(); 119 printf("No previous phone found for Raul Seixas. ");
128 if (err) 120 printf("Creating new entry.\n");
129 printf("Error when changing phone for Raul Seixas\n");
130 else
131 {
132 printf("No previous phone found for Raul Seixas. ");
133 printf("Creating new entry.\n");
134 }
135 } 121 }
136 122
137 // There are many ways to iterate over our Phone book. 123 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_hash_05.c b/src/examples/eina/eina_hash_05.c
index 6666ce2d3d..5e5c32d753 100644
--- a/src/examples/eina/eina_hash_05.c
+++ b/src/examples/eina/eina_hash_05.c
@@ -92,19 +92,12 @@ main(int argc, const char *argv[])
92 // Modify or add an entry to the hash with eina_hash_set 92 // Modify or add an entry to the hash with eina_hash_set
93 // Let's first add a new entry 93 // Let's first add a new entry
94 int32_t id5 = 5; 94 int32_t id5 = 5;
95 eina_error_set(0);
96 phone = eina_hash_set(phone_book, &id5, 95 phone = eina_hash_set(phone_book, &id5,
97 strdup("+55 01 234-56789")); 96 strdup("+55 01 234-56789"));
98 if (!phone) 97 if (!phone)
99 { 98 {
100 Eina_Error err = eina_error_get(); 99 printf("No previous phone found for id5. ");
101 if (!err) 100 printf("Creating new entry.\n");
102 {
103 printf("No previous phone found for id5. ");
104 printf("Creating new entry.\n");
105 }
106 else
107 printf("Error when setting phone for Raul Seixas\n");
108 } 101 }
109 else 102 else
110 { 103 {
@@ -115,7 +108,6 @@ main(int argc, const char *argv[])
115 printf("\n"); 108 printf("\n");
116 109
117 // Now change the phone number 110 // Now change the phone number
118 eina_error_set(0);
119 phone = eina_hash_set(phone_book, &id5, 111 phone = eina_hash_set(phone_book, &id5,
120 strdup("+55 02 222-22222")); 112 strdup("+55 02 222-22222"));
121 if (phone) 113 if (phone)
@@ -126,14 +118,8 @@ main(int argc, const char *argv[])
126 } 118 }
127 else 119 else
128 { 120 {
129 Eina_Error err = eina_error_get(); 121 printf("No previous phone found for id5. ");
130 if (err) 122 printf("Creating new entry.\n");
131 printf("Error when changing phone for id5\n");
132 else
133 {
134 printf("No previous phone found for id5. ");
135 printf("Creating new entry.\n");
136 }
137 } 123 }
138 124
139 // There are many ways to iterate over our Phone book. 125 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_hash_06.c b/src/examples/eina/eina_hash_06.c
index a7a5504d2a..2df8a47190 100644
--- a/src/examples/eina/eina_hash_06.c
+++ b/src/examples/eina/eina_hash_06.c
@@ -92,19 +92,12 @@ main(int argc, const char *argv[])
92 // Modify or add an entry to the hash with eina_hash_set 92 // Modify or add an entry to the hash with eina_hash_set
93 // Let's first add a new entry 93 // Let's first add a new entry
94 int64_t id5 = 5; 94 int64_t id5 = 5;
95 eina_error_set(0);
96 phone = eina_hash_set(phone_book, &id5, 95 phone = eina_hash_set(phone_book, &id5,
97 strdup("+55 01 234-56789")); 96 strdup("+55 01 234-56789"));
98 if (!phone) 97 if (!phone)
99 { 98 {
100 Eina_Error err = eina_error_get(); 99 printf("No previous phone found for id5. ");
101 if (!err) 100 printf("Creating new entry.\n");
102 {
103 printf("No previous phone found for id5. ");
104 printf("Creating new entry.\n");
105 }
106 else
107 printf("Error when setting phone for Raul Seixas\n");
108 } 101 }
109 else 102 else
110 { 103 {
@@ -115,7 +108,6 @@ main(int argc, const char *argv[])
115 printf("\n"); 108 printf("\n");
116 109
117 // Now change the phone number 110 // Now change the phone number
118 eina_error_set(0);
119 phone = eina_hash_set(phone_book, &id5, 111 phone = eina_hash_set(phone_book, &id5,
120 strdup("+55 02 222-22222")); 112 strdup("+55 02 222-22222"));
121 if (phone) 113 if (phone)
@@ -126,14 +118,8 @@ main(int argc, const char *argv[])
126 } 118 }
127 else 119 else
128 { 120 {
129 Eina_Error err = eina_error_get(); 121 printf("No previous phone found for id5. ");
130 if (err) 122 printf("Creating new entry.\n");
131 printf("Error when changing phone for id5\n");
132 else
133 {
134 printf("No previous phone found for id5. ");
135 printf("Creating new entry.\n");
136 }
137 } 123 }
138 124
139 // There are many ways to iterate over our Phone book. 125 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_hash_07.c b/src/examples/eina/eina_hash_07.c
index 1464e6b417..e6f0455dda 100644
--- a/src/examples/eina/eina_hash_07.c
+++ b/src/examples/eina/eina_hash_07.c
@@ -105,7 +105,6 @@ main(int argc, const char *argv[])
105 105
106 // Modify or add an entry to the hash with eina_hash_set 106 // Modify or add an entry to the hash with eina_hash_set
107 // Let's first add a new entry 107 // Let's first add a new entry
108 eina_error_set(0);
109 Phone_Entry *p1 = malloc(sizeof(*p1)); 108 Phone_Entry *p1 = malloc(sizeof(*p1));
110 p1->name = "Raul Seixas"; 109 p1->name = "Raul Seixas";
111 p1->number = "+55 01 234-56789"; 110 p1->number = "+55 01 234-56789";
@@ -113,14 +112,8 @@ main(int argc, const char *argv[])
113 strdup("raulzito")); 112 strdup("raulzito"));
114 if (!nick) 113 if (!nick)
115 { 114 {
116 Eina_Error err = eina_error_get(); 115 printf("No previous nick found for Raul Seixas. ");
117 if (!err) 116 printf("Creating new entry.\n");
118 {
119 printf("No previous nick found for Raul Seixas. ");
120 printf("Creating new entry.\n");
121 }
122 else
123 printf("Error when setting nick for Raul Seixas\n");
124 } 117 }
125 else 118 else
126 { 119 {
@@ -131,7 +124,6 @@ main(int argc, const char *argv[])
131 printf("\n"); 124 printf("\n");
132 125
133 // Now change the nick 126 // Now change the nick
134 eina_error_set(0);
135 nick = eina_hash_set(phone_book, &p1, 127 nick = eina_hash_set(phone_book, &p1,
136 strdup("raulzao")); 128 strdup("raulzao"));
137 if (nick) 129 if (nick)
@@ -142,14 +134,8 @@ main(int argc, const char *argv[])
142 } 134 }
143 else 135 else
144 { 136 {
145 Eina_Error err = eina_error_get(); 137 printf("No previous nick found for Raul Seixas. ");
146 if (err) 138 printf("Creating new entry.\n");
147 printf("Error when changing nick for Raul Seixas\n");
148 else
149 {
150 printf("No previous nick found for Raul Seixas. ");
151 printf("Creating new entry.\n");
152 }
153 } 139 }
154 140
155 // There are many ways to iterate over our Phone book. 141 // There are many ways to iterate over our Phone book.
diff --git a/src/examples/eina/eina_value_03.c b/src/examples/eina/eina_value_03.c
index 85f42b3c49..30520d116c 100644
--- a/src/examples/eina/eina_value_03.c
+++ b/src/examples/eina/eina_value_03.c
@@ -65,8 +65,6 @@ _tz_convert_to(const Eina_Value_Type *type, const Eina_Value_Type *convert, cons
65{ 65{
66 struct timezone v = *(struct timezone*)type_mem; 66 struct timezone v = *(struct timezone*)type_mem;
67 67
68 eina_error_set(0);
69
70 if (convert == EINA_VALUE_TYPE_UCHAR) 68 if (convert == EINA_VALUE_TYPE_UCHAR)
71 { 69 {
72 unsigned char other_mem = v.tz_minuteswest; 70 unsigned char other_mem = v.tz_minuteswest;
@@ -130,8 +128,6 @@ _tz_convert_to(const Eina_Value_Type *type, const Eina_Value_Type *convert, cons
130 other_mem = buf; /* required due &buf == buf */ 128 other_mem = buf; /* required due &buf == buf */
131 return eina_value_type_pset(convert, convert_mem, &other_mem); 129 return eina_value_type_pset(convert, convert_mem, &other_mem);
132 } 130 }
133
134 eina_error_set(EINA_ERROR_VALUE_FAILED);
135 return EINA_FALSE; 131 return EINA_FALSE;
136} 132}
137 133
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index dabbc4c77f..3ec5e87a51 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -24,7 +24,7 @@ static const char EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED_STR[] = "Current group ca
24static const char EDJE_EDIT_ERROR_GROUP_REFERENCED_STR[] = "Group still in use"; 24static const char EDJE_EDIT_ERROR_GROUP_REFERENCED_STR[] = "Group still in use";
25static const char EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR[] = "Group does not exist"; 25static const char EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR[] = "Group does not exist";
26 26
27EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED = 0 ; 27EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED = 0;
28EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_REFERENCED = 0; 28EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_REFERENCED = 0;
29EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST = 0; 29EAPI Eina_Error EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST = 0;
30 30
@@ -229,17 +229,6 @@ _edje_edit_smart_file_set(Eo *obj, void *_pd, va_list *list)
229 if (ret) *ret = EINA_TRUE; 229 if (ret) *ret = EINA_TRUE;
230} 230}
231 231
232static void
233_edje_edit_error_register(void)
234{
235 EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST =
236 eina_error_msg_static_register(EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST_STR);
237 EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED =
238 eina_error_msg_static_register(EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED_STR);
239 EDJE_EDIT_ERROR_GROUP_REFERENCED =
240 eina_error_msg_static_register(EDJE_EDIT_ERROR_GROUP_REFERENCED_STR);
241}
242
243EAPI Evas_Object * 232EAPI Evas_Object *
244edje_edit_object_add(Evas *evas) 233edje_edit_object_add(Evas *evas)
245{ 234{
@@ -256,10 +245,6 @@ _edje_edit_constructor(Eo *obj, void *class_data, va_list *list EINA_UNUSED)
256 eed->base = eo_data_ref(obj, EDJE_OBJ_CLASS); 245 eed->base = eo_data_ref(obj, EDJE_OBJ_CLASS);
257 246
258 eo_do_super(obj, MY_CLASS, eo_constructor()); 247 eo_do_super(obj, MY_CLASS, eo_constructor());
259 eina_error_set(0);
260
261 if (!EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST)
262 _edje_edit_error_register();
263} 248}
264 249
265static void 250static void
@@ -896,7 +881,6 @@ _edje_edit_flag_script_dirty(Edje_Edit *eed, Eina_Bool all)
896EAPI void 881EAPI void
897edje_edit_string_list_free(Eina_List *lst) 882edje_edit_string_list_free(Eina_List *lst)
898{ 883{
899 eina_error_set(0);
900 //printf("FREE LIST: \n"); 884 //printf("FREE LIST: \n");
901 while (lst) 885 while (lst)
902 { 886 {
@@ -909,16 +893,12 @@ edje_edit_string_list_free(Eina_List *lst)
909EAPI void 893EAPI void
910edje_edit_string_free(const char *str) 894edje_edit_string_free(const char *str)
911{ 895{
912 eina_error_set(0);
913
914 if (str) eina_stringshare_del(str); 896 if (str) eina_stringshare_del(str);
915} 897}
916 898
917EAPI const char* 899EAPI const char*
918edje_edit_compiler_get(Evas_Object *obj) 900edje_edit_compiler_get(Evas_Object *obj)
919{ 901{
920 eina_error_set(0);
921
922 GET_ED_OR_RETURN(0); 902 GET_ED_OR_RETURN(0);
923 return eina_stringshare_add(ed->file->compiler); 903 return eina_stringshare_add(ed->file->compiler);
924} 904}
@@ -937,8 +917,6 @@ edje_edit_group_add(Evas_Object *obj, const char *name)
937 int search; 917 int search;
938 //Code *cd; 918 //Code *cd;
939 919
940 eina_error_set(0);
941
942 GET_ED_OR_RETURN(EINA_FALSE); 920 GET_ED_OR_RETURN(EINA_FALSE);
943 921
944 //printf("ADD GROUP: %s \n", name); 922 //printf("ADD GROUP: %s \n", name);
@@ -1033,37 +1011,16 @@ edje_edit_group_del(Evas_Object *obj, const char *group_name)
1033 char buf[64], **keys; 1011 char buf[64], **keys;
1034 int count; 1012 int count;
1035 1013
1036 eina_error_set(0);
1037
1038 GET_ED_OR_RETURN(EINA_FALSE); 1014 GET_ED_OR_RETURN(EINA_FALSE);
1039 1015
1040 /* if (eina_hash_find(ed->file->collection_hash, group_name)) */ 1016 /* if (eina_hash_find(ed->file->collection_hash, group_name)) */
1041 /* return EINA_FALSE; */ 1017 /* return EINA_FALSE; */
1042 1018
1043 if (strcmp(ed->group, group_name) == 0) 1019 if (strcmp(ed->group, group_name) == 0) return EINA_FALSE;
1044 {
1045 eina_error_set(EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED);
1046 return EINA_FALSE;
1047 }
1048
1049 e = eina_hash_find(ed->file->collection, group_name); 1020 e = eina_hash_find(ed->file->collection, group_name);
1050 if (!e) 1021 if (!e) return EINA_FALSE;
1051 { 1022 if (e->id == ed->collection->id) return EINA_FALSE;
1052 eina_error_set(EDJE_EDIT_ERROR_GROUP_DOES_NOT_EXIST); 1023 if (e->ref) return EINA_FALSE;
1053 return EINA_FALSE;
1054 }
1055
1056 if (e->id == ed->collection->id)
1057 {
1058 eina_error_set(EDJE_EDIT_ERROR_GROUP_CURRENTLY_USED);
1059 return EINA_FALSE;
1060 }
1061
1062 if (e->ref)
1063 {
1064 eina_error_set(EDJE_EDIT_ERROR_GROUP_REFERENCED);
1065 return EINA_FALSE;
1066 }
1067 1024
1068 _edje_edit_group_references_update(obj, group_name, NULL); 1025 _edje_edit_group_references_update(obj, group_name, NULL);
1069 1026
@@ -1118,8 +1075,6 @@ edje_edit_group_del(Evas_Object *obj, const char *group_name)
1118EAPI Eina_Bool 1075EAPI Eina_Bool
1119edje_edit_group_exist(Evas_Object *obj, const char *group) 1076edje_edit_group_exist(Evas_Object *obj, const char *group)
1120{ 1077{
1121 eina_error_set(0);
1122
1123 GET_ED_OR_RETURN(EINA_FALSE); 1078 GET_ED_OR_RETURN(EINA_FALSE);
1124 1079
1125 if (eina_hash_find(ed->file->collection, group)) 1080 if (eina_hash_find(ed->file->collection, group))
@@ -1133,8 +1088,6 @@ edje_edit_group_name_set(Evas_Object *obj, const char *new_name)
1133 Edje_Part_Collection_Directory_Entry *pce; 1088 Edje_Part_Collection_Directory_Entry *pce;
1134 Edje_Part_Collection *pc; 1089 Edje_Part_Collection *pc;
1135 1090
1136 eina_error_set(0);
1137
1138 GET_ED_OR_RETURN(EINA_FALSE); 1091 GET_ED_OR_RETURN(EINA_FALSE);
1139 1092
1140 if (!new_name) return EINA_FALSE; 1093 if (!new_name) return EINA_FALSE;
@@ -1166,7 +1119,6 @@ edje_edit_group_name_set(Evas_Object *obj, const char *new_name)
1166 EAPI int \ 1119 EAPI int \
1167 edje_edit_group_##Class##_##Value##_get(Evas_Object *obj) \ 1120 edje_edit_group_##Class##_##Value##_get(Evas_Object *obj) \
1168 { \ 1121 { \
1169 eina_error_set(0); \
1170 GET_ED_OR_RETURN(-1); \ 1122 GET_ED_OR_RETURN(-1); \
1171 if (!ed->collection) return -1; \ 1123 if (!ed->collection) return -1; \
1172 return ed->collection->prop.Class.Value; \ 1124 return ed->collection->prop.Class.Value; \
@@ -1174,7 +1126,6 @@ edje_edit_group_name_set(Evas_Object *obj, const char *new_name)
1174 EAPI void \ 1126 EAPI void \
1175 edje_edit_group_##Class##_##Value##_set(Evas_Object *obj, int v) \ 1127 edje_edit_group_##Class##_##Value##_set(Evas_Object *obj, int v) \
1176 { \ 1128 { \
1177 eina_error_set(0); \
1178 GET_ED_OR_RETURN(); \ 1129 GET_ED_OR_RETURN(); \
1179 ed->collection->prop.Class.Value = v; \ 1130 ed->collection->prop.Class.Value = v; \
1180 } 1131 }
@@ -1195,8 +1146,6 @@ edje_edit_group_data_list_get(Evas_Object * obj)
1195 Eina_List *datas = NULL; 1146 Eina_List *datas = NULL;
1196 const char *key; 1147 const char *key;
1197 1148
1198 eina_error_set(0);
1199
1200 GET_ED_OR_RETURN(NULL); 1149 GET_ED_OR_RETURN(NULL);
1201 1150
1202 if (!ed->file || !ed->collection || !ed->collection->data) 1151 if (!ed->file || !ed->collection || !ed->collection->data)
@@ -1220,8 +1169,6 @@ edje_edit_data_list_get(Evas_Object * obj)
1220 Eina_List *datas = NULL; 1169 Eina_List *datas = NULL;
1221 const char *key; 1170 const char *key;
1222 1171
1223 eina_error_set(0);
1224
1225 GET_ED_OR_RETURN(NULL); 1172 GET_ED_OR_RETURN(NULL);
1226 1173
1227 if (!ed->file || !ed->file->data) 1174 if (!ed->file || !ed->file->data)
@@ -1242,8 +1189,6 @@ edje_edit_group_data_add(Evas_Object *obj, const char *key, const char *value)
1242{ 1189{
1243 Edje_String *es; 1190 Edje_String *es;
1244 1191
1245 eina_error_set(0);
1246
1247 GET_ED_OR_RETURN(EINA_FALSE); 1192 GET_ED_OR_RETURN(EINA_FALSE);
1248 1193
1249 if (!key || !ed->file || !ed->collection) 1194 if (!key || !ed->file || !ed->collection)
@@ -1274,8 +1219,6 @@ edje_edit_data_add(Evas_Object *obj, const char *itemname, const char *value)
1274{ 1219{
1275 Edje_String *es; 1220 Edje_String *es;
1276 1221
1277 eina_error_set(0);
1278
1279 GET_ED_OR_RETURN(EINA_FALSE); 1222 GET_ED_OR_RETURN(EINA_FALSE);
1280 1223
1281 if (!itemname || !ed->file) 1224 if (!itemname || !ed->file)
@@ -1303,8 +1246,6 @@ edje_edit_group_data_del(Evas_Object *obj, const char *key)
1303{ 1246{
1304 Edje_String *value; 1247 Edje_String *value;
1305 1248
1306 eina_error_set(0);
1307
1308 GET_ED_OR_RETURN(EINA_FALSE); 1249 GET_ED_OR_RETURN(EINA_FALSE);
1309 1250
1310 if (!key || !ed->file || !ed->collection) 1251 if (!key || !ed->file || !ed->collection)
@@ -1325,8 +1266,6 @@ edje_edit_data_del(Evas_Object *obj, const char *itemname)
1325{ 1266{
1326 Edje_String *value; 1267 Edje_String *value;
1327 1268
1328 eina_error_set(0);
1329
1330 GET_ED_OR_RETURN(EINA_FALSE); 1269 GET_ED_OR_RETURN(EINA_FALSE);
1331 1270
1332 if (!itemname || !ed->file || !ed->file->data) 1271 if (!itemname || !ed->file || !ed->file->data)
@@ -1348,8 +1287,6 @@ edje_edit_group_data_value_get(Evas_Object * obj, const char *key)
1348{ 1287{
1349 Edje_String *value; 1288 Edje_String *value;
1350 1289
1351 eina_error_set(0);
1352
1353 GET_ED_OR_RETURN(NULL); 1290 GET_ED_OR_RETURN(NULL);
1354 1291
1355 if (!key || !ed->file || !ed->collection) 1292 if (!key || !ed->file || !ed->collection)
@@ -1367,8 +1304,6 @@ edje_edit_data_value_get(Evas_Object * obj, const char *itemname)
1367{ 1304{
1368 Edje_String *value; 1305 Edje_String *value;
1369 1306
1370 eina_error_set(0);
1371
1372 GET_ED_OR_RETURN(NULL); 1307 GET_ED_OR_RETURN(NULL);
1373 1308
1374 if (!itemname || !ed->file || !ed->file->data) 1309 if (!itemname || !ed->file || !ed->file->data)
@@ -1386,8 +1321,6 @@ edje_edit_group_data_value_set(Evas_Object *obj, const char *key, const char *va
1386{ 1321{
1387 Edje_String *es; 1322 Edje_String *es;
1388 1323
1389 eina_error_set(0);
1390
1391 GET_ED_OR_RETURN(EINA_FALSE); 1324 GET_ED_OR_RETURN(EINA_FALSE);
1392 1325
1393 if (!key || !value || !ed->file || !ed->collection) 1326 if (!key || !value || !ed->file || !ed->collection)
@@ -1410,8 +1343,6 @@ edje_edit_data_value_set(Evas_Object *obj, const char *itemname, const char *val
1410{ 1343{
1411 Edje_String *es; 1344 Edje_String *es;
1412 1345
1413 eina_error_set(0);
1414
1415 GET_ED_OR_RETURN(EINA_FALSE); 1346 GET_ED_OR_RETURN(EINA_FALSE);
1416 1347
1417 if (!itemname || !value || !ed->file || !ed->file->data) 1348 if (!itemname || !value || !ed->file || !ed->file->data)
@@ -1431,9 +1362,6 @@ edje_edit_data_value_set(Evas_Object *obj, const char *itemname, const char *val
1431EAPI Eina_Bool 1362EAPI Eina_Bool
1432edje_edit_group_data_name_set(Evas_Object *obj, const char *key, const char *new_key) 1363edje_edit_group_data_name_set(Evas_Object *obj, const char *key, const char *new_key)
1433{ 1364{
1434
1435 eina_error_set(0);
1436
1437 GET_ED_OR_RETURN(EINA_FALSE); 1365 GET_ED_OR_RETURN(EINA_FALSE);
1438 1366
1439 if (!key || !new_key || !ed->file || !ed->collection) { 1367 if (!key || !new_key || !ed->file || !ed->collection) {
@@ -1446,9 +1374,6 @@ edje_edit_group_data_name_set(Evas_Object *obj, const char *key, const char *ne
1446EAPI Eina_Bool 1374EAPI Eina_Bool
1447edje_edit_data_name_set(Evas_Object *obj, const char *itemname, const char *newname) 1375edje_edit_data_name_set(Evas_Object *obj, const char *itemname, const char *newname)
1448{ 1376{
1449
1450 eina_error_set(0);
1451
1452 GET_ED_OR_RETURN(EINA_FALSE); 1377 GET_ED_OR_RETURN(EINA_FALSE);
1453 1378
1454 if (!itemname || !newname || !ed->file || !ed->file->data) 1379 if (!itemname || !newname || !ed->file || !ed->file->data)
@@ -1468,8 +1393,6 @@ edje_edit_color_classes_list_get(Evas_Object * obj)
1468 Eina_List *l; 1393 Eina_List *l;
1469 Edje_Color_Class *cc; 1394 Edje_Color_Class *cc;
1470 1395
1471 eina_error_set(0);
1472
1473 GET_ED_OR_RETURN(NULL); 1396 GET_ED_OR_RETURN(NULL);
1474 1397
1475 if (!ed->file || !ed->file->color_classes) 1398 if (!ed->file || !ed->file->color_classes)
@@ -1487,8 +1410,6 @@ edje_edit_color_class_colors_get(Evas_Object *obj, const char *class_name, int *
1487 Eina_List *l; 1410 Eina_List *l;
1488 Edje_Color_Class *cc; 1411 Edje_Color_Class *cc;
1489 1412
1490 eina_error_set(0);
1491
1492 GET_ED_OR_RETURN(EINA_FALSE); 1413 GET_ED_OR_RETURN(EINA_FALSE);
1493 1414
1494 if (!ed->file || !ed->file->color_classes) 1415 if (!ed->file || !ed->file->color_classes)
@@ -1523,8 +1444,6 @@ edje_edit_color_class_colors_set(Evas_Object *obj, const char *class_name, int r
1523 Eina_List *l; 1444 Eina_List *l;
1524 Edje_Color_Class *cc; 1445 Edje_Color_Class *cc;
1525 1446
1526 eina_error_set(0);
1527
1528 GET_ED_OR_RETURN(EINA_FALSE); 1447 GET_ED_OR_RETURN(EINA_FALSE);
1529 1448
1530 if (!ed->file || !ed->file->color_classes) 1449 if (!ed->file || !ed->file->color_classes)
@@ -1560,8 +1479,6 @@ edje_edit_color_class_add(Evas_Object *obj, const char *name)
1560 Edje_Color_Class *c; 1479 Edje_Color_Class *c;
1561 Edje_Color_Class *cc; 1480 Edje_Color_Class *cc;
1562 1481
1563 eina_error_set(0);
1564
1565 GET_ED_OR_RETURN(EINA_FALSE); 1482 GET_ED_OR_RETURN(EINA_FALSE);
1566 1483
1567 if (!name || !ed->file) 1484 if (!name || !ed->file)
@@ -1590,8 +1507,6 @@ edje_edit_color_class_del(Evas_Object *obj, const char *name)
1590 Eina_List *l; 1507 Eina_List *l;
1591 Edje_Color_Class *cc; 1508 Edje_Color_Class *cc;
1592 1509
1593 eina_error_set(0);
1594
1595 GET_ED_OR_RETURN(EINA_FALSE); 1510 GET_ED_OR_RETURN(EINA_FALSE);
1596 1511
1597 if (!name || !ed->file || !ed->file->color_classes) 1512 if (!name || !ed->file || !ed->file->color_classes)
@@ -1614,8 +1529,6 @@ edje_edit_color_class_name_set(Evas_Object *obj, const char *name, const char *n
1614 Eina_List *l; 1529 Eina_List *l;
1615 Edje_Color_Class *cc; 1530 Edje_Color_Class *cc;
1616 1531
1617 eina_error_set(0);
1618
1619 GET_ED_OR_RETURN(EINA_FALSE); 1532 GET_ED_OR_RETURN(EINA_FALSE);
1620 1533
1621 if (!ed->file || !ed->file->color_classes) 1534 if (!ed->file || !ed->file->color_classes)
@@ -1645,8 +1558,6 @@ edje_edit_styles_list_get(Evas_Object * obj)
1645 Eina_List *l; 1558 Eina_List *l;
1646 Edje_Style *s; 1559 Edje_Style *s;
1647 1560
1648 eina_error_set(0);
1649
1650 GET_ED_OR_RETURN(NULL); 1561 GET_ED_OR_RETURN(NULL);
1651 1562
1652 if (!ed->file || !ed->file->styles) 1563 if (!ed->file || !ed->file->styles)
@@ -1663,8 +1574,6 @@ edje_edit_style_add(Evas_Object * obj, const char* style)
1663{ 1574{
1664 Edje_Style *s; 1575 Edje_Style *s;
1665 1576
1666 eina_error_set(0);
1667
1668 GET_ED_OR_RETURN(EINA_FALSE); 1577 GET_ED_OR_RETURN(EINA_FALSE);
1669 //printf("ADD STYLE '%s'\n", style); 1578 //printf("ADD STYLE '%s'\n", style);
1670 1579
@@ -1686,8 +1595,6 @@ edje_edit_style_del(Evas_Object * obj, const char* style)
1686{ 1595{
1687 Edje_Style *s; 1596 Edje_Style *s;
1688 1597
1689 eina_error_set(0);
1690
1691 GET_ED_OR_RETURN(); 1598 GET_ED_OR_RETURN();
1692 //printf("DEL STYLE '%s'\n", style); 1599 //printf("DEL STYLE '%s'\n", style);
1693 1600
@@ -1726,8 +1633,6 @@ edje_edit_style_tags_list_get(Evas_Object * obj, const char* style)
1726 Edje_Style *s; 1633 Edje_Style *s;
1727 Edje_Style_Tag *t; 1634 Edje_Style_Tag *t;
1728 1635
1729 eina_error_set(0);
1730
1731 GET_ED_OR_RETURN(NULL); 1636 GET_ED_OR_RETURN(NULL);
1732 if (!ed->file || !ed->file->styles || !style) 1637 if (!ed->file || !ed->file->styles || !style)
1733 return NULL; 1638 return NULL;
@@ -1746,8 +1651,6 @@ edje_edit_style_tag_name_set(Evas_Object * obj, const char* style, const char* t
1746{ 1651{
1747 Edje_Style_Tag *t; 1652 Edje_Style_Tag *t;
1748 1653
1749 eina_error_set(0);
1750
1751 GET_ED_OR_RETURN(); 1654 GET_ED_OR_RETURN();
1752 //printf("SET TAG NAME for '%s' FOR STYLE '%s'\n", tag, style); 1655 //printf("SET TAG NAME for '%s' FOR STYLE '%s'\n", tag, style);
1753 1656
@@ -1765,8 +1668,6 @@ edje_edit_style_tag_value_get(Evas_Object * obj, const char* style, const char*
1765{ 1668{
1766 Edje_Style_Tag *t; 1669 Edje_Style_Tag *t;
1767 1670
1768 eina_error_set(0);
1769
1770 GET_ED_OR_RETURN(NULL); 1671 GET_ED_OR_RETURN(NULL);
1771 //printf("GET TAG '%s' FOR STYLE '%s'\n", tag, style); 1672 //printf("GET TAG '%s' FOR STYLE '%s'\n", tag, style);
1772 1673
@@ -1785,8 +1686,6 @@ edje_edit_style_tag_value_set(Evas_Object * obj, const char* style, const char*
1785{ 1686{
1786 Edje_Style_Tag *t; 1687 Edje_Style_Tag *t;
1787 1688
1788 eina_error_set(0);
1789
1790 GET_ED_OR_RETURN(); 1689 GET_ED_OR_RETURN();
1791 //printf("SET TAG VALUE for '%s' FOR STYLE '%s'\n", tag, style); 1690 //printf("SET TAG VALUE for '%s' FOR STYLE '%s'\n", tag, style);
1792 1691
@@ -1805,8 +1704,6 @@ edje_edit_style_tag_add(Evas_Object * obj, const char* style, const char* tag_na
1805 Edje_Style *s; 1704 Edje_Style *s;
1806 Edje_Style_Tag *t; 1705 Edje_Style_Tag *t;
1807 1706
1808 eina_error_set(0);
1809
1810 GET_ED_OR_RETURN(EINA_FALSE); 1707 GET_ED_OR_RETURN(EINA_FALSE);
1811 //printf("ADD TAG '%s' IN STYLE '%s'\n", tag_name, style); 1708 //printf("ADD TAG '%s' IN STYLE '%s'\n", tag_name, style);
1812 1709
@@ -1832,8 +1729,6 @@ edje_edit_style_tag_del(Evas_Object * obj, const char* style, const char* tag)
1832 Edje_Style *s; 1729 Edje_Style *s;
1833 Edje_Style_Tag *t; 1730 Edje_Style_Tag *t;
1834 1731
1835 eina_error_set(0);
1836
1837 GET_ED_OR_RETURN(); 1732 GET_ED_OR_RETURN();
1838 //printf("DEL TAG '%s' IN STYLE '%s'\n", tag, style); 1733 //printf("DEL TAG '%s' IN STYLE '%s'\n", tag, style);
1839 1734
@@ -1859,8 +1754,6 @@ edje_edit_externals_list_get(Evas_Object *obj)
1859 Eina_List *externals = NULL; 1754 Eina_List *externals = NULL;
1860 unsigned int i; 1755 unsigned int i;
1861 1756
1862 eina_error_set(0);
1863
1864 GET_ED_OR_RETURN(NULL); 1757 GET_ED_OR_RETURN(NULL);
1865 1758
1866 if (!ed->file || !ed->file->external_dir) 1759 if (!ed->file || !ed->file->external_dir)
@@ -1880,8 +1773,6 @@ edje_edit_external_add(Evas_Object *obj, const char *external)
1880 unsigned int freeid; 1773 unsigned int freeid;
1881 unsigned int i; 1774 unsigned int i;
1882 1775
1883 eina_error_set(0);
1884
1885 GET_ED_OR_RETURN(EINA_FALSE); 1776 GET_ED_OR_RETURN(EINA_FALSE);
1886 1777
1887 e = _edje_edit_external_get(ed, external); 1778 e = _edje_edit_external_get(ed, external);
@@ -1922,8 +1813,6 @@ edje_edit_external_del(Evas_Object *obj, const char *external)
1922{ 1813{
1923 Edje_External_Directory_Entry *e; 1814 Edje_External_Directory_Entry *e;
1924 1815
1925 eina_error_set(0);
1926
1927 GET_ED_OR_RETURN(EINA_FALSE); 1816 GET_ED_OR_RETURN(EINA_FALSE);
1928 1817
1929 e = _edje_edit_external_get(ed, external); 1818 e = _edje_edit_external_get(ed, external);
@@ -1945,8 +1834,6 @@ edje_edit_parts_list_get(Evas_Object *obj)
1945 Eina_List *parts = NULL; 1834 Eina_List *parts = NULL;
1946 unsigned int i; 1835 unsigned int i;
1947 1836
1948 eina_error_set(0);
1949
1950 GET_ED_OR_RETURN(NULL); 1837 GET_ED_OR_RETURN(NULL);
1951 1838
1952 //printf("EE: Found %d parts\n", ed->table_parts_size); 1839 //printf("EE: Found %d parts\n", ed->table_parts_size);
@@ -1966,8 +1853,6 @@ edje_edit_parts_list_get(Evas_Object *obj)
1966EAPI Eina_Bool 1853EAPI Eina_Bool
1967edje_edit_part_name_set(Evas_Object *obj, const char* part, const char* new_name) 1854edje_edit_part_name_set(Evas_Object *obj, const char* part, const char* new_name)
1968{ 1855{
1969 eina_error_set(0);
1970
1971 GET_EED_OR_RETURN(EINA_FALSE); 1856 GET_EED_OR_RETURN(EINA_FALSE);
1972 GET_RP_OR_RETURN(EINA_FALSE); 1857 GET_RP_OR_RETURN(EINA_FALSE);
1973 1858
@@ -1989,14 +1874,12 @@ edje_edit_part_name_set(Evas_Object *obj, const char* part, const char* new_name
1989 EAPI const char * \ 1874 EAPI const char * \
1990 edje_edit_part_api_##Value##_get(Evas_Object *obj, const char *part) \ 1875 edje_edit_part_api_##Value##_get(Evas_Object *obj, const char *part) \
1991 { \ 1876 { \
1992 eina_error_set(0); \
1993 GET_RP_OR_RETURN(NULL); \ 1877 GET_RP_OR_RETURN(NULL); \
1994 return eina_stringshare_add(rp->part->api.Value); \ 1878 return eina_stringshare_add(rp->part->api.Value); \
1995 } \ 1879 } \
1996 EAPI Eina_Bool \ 1880 EAPI Eina_Bool \
1997 edje_edit_part_api_##Value##_set(Evas_Object *obj, const char *part, const char *s) \ 1881 edje_edit_part_api_##Value##_set(Evas_Object *obj, const char *part, const char *s) \
1998 { \ 1882 { \
1999 eina_error_set(0); \
2000 GET_RP_OR_RETURN(EINA_FALSE); \ 1883 GET_RP_OR_RETURN(EINA_FALSE); \
2001 _edje_if_string_free(ed, rp->part->api.Value); \ 1884 _edje_if_string_free(ed, rp->part->api.Value); \
2002 rp->part->api.Value = eina_stringshare_add(s); \ 1885 rp->part->api.Value = eina_stringshare_add(s); \
@@ -2165,8 +2048,6 @@ _edje_edit_real_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type
2165EAPI Eina_Bool 2048EAPI Eina_Bool
2166edje_edit_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type) 2049edje_edit_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type)
2167{ 2050{
2168 eina_error_set(0);
2169
2170 if (type == EDJE_PART_TYPE_EXTERNAL) 2051 if (type == EDJE_PART_TYPE_EXTERNAL)
2171 return EINA_FALSE; 2052 return EINA_FALSE;
2172 return _edje_edit_real_part_add(obj, name, type, NULL); 2053 return _edje_edit_real_part_add(obj, name, type, NULL);
@@ -2175,8 +2056,6 @@ edje_edit_part_add(Evas_Object *obj, const char *name, Edje_Part_Type type)
2175EAPI Eina_Bool 2056EAPI Eina_Bool
2176edje_edit_part_external_add(Evas_Object *obj, const char *name, const char *source) 2057edje_edit_part_external_add(Evas_Object *obj, const char *name, const char *source)
2177{ 2058{
2178 eina_error_set(0);
2179
2180 if (!source) 2059 if (!source)
2181 return EINA_FALSE; 2060 return EINA_FALSE;
2182 return _edje_edit_real_part_add(obj, name, EDJE_PART_TYPE_EXTERNAL, source); 2061 return _edje_edit_real_part_add(obj, name, EDJE_PART_TYPE_EXTERNAL, source);
@@ -2192,8 +2071,6 @@ edje_edit_part_del(Evas_Object *obj, const char* part)
2192 unsigned int id; 2071 unsigned int id;
2193 unsigned int i; 2072 unsigned int i;
2194 2073
2195 eina_error_set(0);
2196
2197 GET_EED_OR_RETURN(EINA_FALSE); 2074 GET_EED_OR_RETURN(EINA_FALSE);
2198 GET_RP_OR_RETURN(EINA_FALSE); 2075 GET_RP_OR_RETURN(EINA_FALSE);
2199 2076
@@ -2271,8 +2148,6 @@ edje_edit_part_del(Evas_Object *obj, const char* part)
2271EAPI Eina_Bool 2148EAPI Eina_Bool
2272edje_edit_part_exist(Evas_Object *obj, const char *part) 2149edje_edit_part_exist(Evas_Object *obj, const char *part)
2273{ 2150{
2274 eina_error_set(0);
2275
2276 GET_RP_OR_RETURN(EINA_FALSE); 2151 GET_RP_OR_RETURN(EINA_FALSE);
2277 return EINA_TRUE; 2152 return EINA_TRUE;
2278} 2153}
@@ -2282,8 +2157,6 @@ edje_edit_part_below_get(Evas_Object *obj, const char* part)
2282{ 2157{
2283 Edje_Real_Part *prev; 2158 Edje_Real_Part *prev;
2284 2159
2285 eina_error_set(0);
2286
2287 GET_RP_OR_RETURN(0); 2160 GET_RP_OR_RETURN(0);
2288 2161
2289 if (rp->part->id < 1) return NULL; 2162 if (rp->part->id < 1) return NULL;
@@ -2298,8 +2171,6 @@ edje_edit_part_above_get(Evas_Object *obj, const char* part)
2298{ 2171{
2299 Edje_Real_Part *next; 2172 Edje_Real_Part *next;
2300 2173
2301 eina_error_set(0);
2302
2303 GET_RP_OR_RETURN(0); 2174 GET_RP_OR_RETURN(0);
2304 2175
2305 if ((unsigned int) rp->part->id >= ed->table_parts_size - 1) return 0; 2176 if ((unsigned int) rp->part->id >= ed->table_parts_size - 1) return 0;
@@ -2316,8 +2187,6 @@ edje_edit_part_restack_below(Evas_Object *obj, const char* part)
2316 Edje_Real_Part *prev; 2187 Edje_Real_Part *prev;
2317 Edje_Part *swap; 2188 Edje_Part *swap;
2318 2189
2319 eina_error_set(0);
2320
2321 GET_EED_OR_RETURN(EINA_FALSE); 2190 GET_EED_OR_RETURN(EINA_FALSE);
2322 GET_RP_OR_RETURN(EINA_FALSE); 2191 GET_RP_OR_RETURN(EINA_FALSE);
2323 2192
@@ -2351,8 +2220,6 @@ edje_edit_part_restack_above(Evas_Object *obj, const char* part)
2351 Edje_Real_Part *next; 2220 Edje_Real_Part *next;
2352 Edje_Part *swap; 2221 Edje_Part *swap;
2353 2222
2354 eina_error_set(0);
2355
2356 GET_EED_OR_RETURN(EINA_FALSE); 2223 GET_EED_OR_RETURN(EINA_FALSE);
2357 GET_RP_OR_RETURN(EINA_FALSE); 2224 GET_RP_OR_RETURN(EINA_FALSE);
2358 2225
@@ -2384,9 +2251,6 @@ edje_edit_part_restack_above(Evas_Object *obj, const char* part)
2384EAPI Edje_Part_Type 2251EAPI Edje_Part_Type
2385edje_edit_part_type_get(Evas_Object *obj, const char *part) 2252edje_edit_part_type_get(Evas_Object *obj, const char *part)
2386{ 2253{
2387
2388 eina_error_set(0);
2389
2390 GET_RP_OR_RETURN(0); 2254 GET_RP_OR_RETURN(0);
2391 return rp->part->type; 2255 return rp->part->type;
2392} 2256}
@@ -2394,8 +2258,6 @@ edje_edit_part_type_get(Evas_Object *obj, const char *part)
2394EAPI const char * 2258EAPI const char *
2395edje_edit_part_selected_state_get(Evas_Object *obj, const char *part, double *value) 2259edje_edit_part_selected_state_get(Evas_Object *obj, const char *part, double *value)
2396{ 2260{
2397 eina_error_set(0);
2398
2399 GET_RP_OR_RETURN(NULL); 2261 GET_RP_OR_RETURN(NULL);
2400 2262
2401 if (!rp->chosen_description) 2263 if (!rp->chosen_description)
@@ -2413,8 +2275,6 @@ edje_edit_part_selected_state_set(Evas_Object *obj, const char *part, const char
2413{ 2275{
2414 Edje_Part_Description_Common *pd; 2276 Edje_Part_Description_Common *pd;
2415 2277
2416 eina_error_set(0);
2417
2418 GET_EED_OR_RETURN(EINA_FALSE); 2278 GET_EED_OR_RETURN(EINA_FALSE);
2419 GET_RP_OR_RETURN(EINA_FALSE); 2279 GET_RP_OR_RETURN(EINA_FALSE);
2420 2280
@@ -2433,8 +2293,6 @@ edje_edit_part_clip_to_get(Evas_Object *obj, const char *part)
2433{ 2293{
2434 Edje_Real_Part *clip = NULL; 2294 Edje_Real_Part *clip = NULL;
2435 2295
2436 eina_error_set(0);
2437
2438 GET_RP_OR_RETURN(NULL); 2296 GET_RP_OR_RETURN(NULL);
2439 2297
2440 //printf("Get clip_to for part: %s [to_id: %d]\n", part, rp->part->clip_to_id); 2298 //printf("Get clip_to for part: %s [to_id: %d]\n", part, rp->part->clip_to_id);
@@ -2452,8 +2310,6 @@ edje_edit_part_clip_to_set(Evas_Object *obj, const char *part, const char *clip_
2452 Edje_Real_Part *clip; 2310 Edje_Real_Part *clip;
2453 Evas_Object *o, *oo; 2311 Evas_Object *o, *oo;
2454 2312
2455 eina_error_set(0);
2456
2457 GET_RP_OR_RETURN(EINA_FALSE); 2313 GET_RP_OR_RETURN(EINA_FALSE);
2458 2314
2459 /* unset clipping */ 2315 /* unset clipping */
@@ -2509,8 +2365,6 @@ edje_edit_part_clip_to_set(Evas_Object *obj, const char *part, const char *clip_
2509EAPI Eina_Bool 2365EAPI Eina_Bool
2510edje_edit_part_mouse_events_get(Evas_Object *obj, const char *part) 2366edje_edit_part_mouse_events_get(Evas_Object *obj, const char *part)
2511{ 2367{
2512 eina_error_set(0);
2513
2514 GET_RP_OR_RETURN(EINA_FALSE); 2368 GET_RP_OR_RETURN(EINA_FALSE);
2515 //printf("Get mouse_events for part: %s [%d]\n", part, rp->part->mouse_events); 2369 //printf("Get mouse_events for part: %s [%d]\n", part, rp->part->mouse_events);
2516 return rp->part->mouse_events; 2370 return rp->part->mouse_events;
@@ -2519,8 +2373,6 @@ edje_edit_part_mouse_events_get(Evas_Object *obj, const char *part)
2519EAPI void 2373EAPI void
2520edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events) 2374edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events)
2521{ 2375{
2522 eina_error_set(0);
2523
2524 GET_RP_OR_RETURN(); 2376 GET_RP_OR_RETURN();
2525 2377
2526 if (!rp->object) return; 2378 if (!rp->object) return;
@@ -2544,8 +2396,6 @@ edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mo
2544EAPI Eina_Bool 2396EAPI Eina_Bool
2545edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part) 2397edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
2546{ 2398{
2547 eina_error_set(0);
2548
2549 GET_RP_OR_RETURN(EINA_FALSE); 2399 GET_RP_OR_RETURN(EINA_FALSE);
2550 2400
2551 //printf("Get repeat_events for part: %s [%d]\n", part, rp->part->repeat_events); 2401 //printf("Get repeat_events for part: %s [%d]\n", part, rp->part->repeat_events);
@@ -2555,8 +2405,6 @@ edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
2555EAPI void 2405EAPI void
2556edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, Eina_Bool repeat_events) 2406edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, Eina_Bool repeat_events)
2557{ 2407{
2558 eina_error_set(0);
2559
2560 GET_RP_OR_RETURN(); 2408 GET_RP_OR_RETURN();
2561 2409
2562 if (!rp->object) return; 2410 if (!rp->object) return;
@@ -2574,8 +2422,6 @@ edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, Eina_Bool r
2574EAPI Evas_Event_Flags 2422EAPI Evas_Event_Flags
2575edje_edit_part_ignore_flags_get(Evas_Object *obj, const char *part) 2423edje_edit_part_ignore_flags_get(Evas_Object *obj, const char *part)
2576{ 2424{
2577 eina_error_set(0);
2578
2579 GET_RP_OR_RETURN(0); 2425 GET_RP_OR_RETURN(0);
2580 2426
2581 return rp->part->ignore_flags; 2427 return rp->part->ignore_flags;
@@ -2584,8 +2430,6 @@ edje_edit_part_ignore_flags_get(Evas_Object *obj, const char *part)
2584EAPI void 2430EAPI void
2585edje_edit_part_ignore_flags_set(Evas_Object *obj, const char *part, Evas_Event_Flags ignore_flags) 2431edje_edit_part_ignore_flags_set(Evas_Object *obj, const char *part, Evas_Event_Flags ignore_flags)
2586{ 2432{
2587 eina_error_set(0);
2588
2589 GET_RP_OR_RETURN(); 2433 GET_RP_OR_RETURN();
2590 2434
2591 if (!rp->object) return; 2435 if (!rp->object) return;
@@ -2597,8 +2441,6 @@ edje_edit_part_ignore_flags_set(Evas_Object *obj, const char *part, Evas_Event_F
2597EAPI void 2441EAPI void
2598edje_edit_part_scale_set(Evas_Object *obj, const char *part, Eina_Bool scale) 2442edje_edit_part_scale_set(Evas_Object *obj, const char *part, Eina_Bool scale)
2599{ 2443{
2600 eina_error_set(0);
2601
2602 GET_RP_OR_RETURN(); 2444 GET_RP_OR_RETURN();
2603 2445
2604 rp->part->scale = scale; 2446 rp->part->scale = scale;
@@ -2608,8 +2450,6 @@ edje_edit_part_scale_set(Evas_Object *obj, const char *part, Eina_Bool scale)
2608EAPI Eina_Bool 2450EAPI Eina_Bool
2609edje_edit_part_scale_get(Evas_Object *obj, const char *part) 2451edje_edit_part_scale_get(Evas_Object *obj, const char *part)
2610{ 2452{
2611 eina_error_set(0);
2612
2613 GET_RP_OR_RETURN(EINA_FALSE); 2453 GET_RP_OR_RETURN(EINA_FALSE);
2614 2454
2615 return rp->part->scale; 2455 return rp->part->scale;
@@ -2618,9 +2458,6 @@ edje_edit_part_scale_get(Evas_Object *obj, const char *part)
2618EAPI const char * 2458EAPI const char *
2619edje_edit_part_source_get(Evas_Object *obj, const char *part) 2459edje_edit_part_source_get(Evas_Object *obj, const char *part)
2620{ 2460{
2621 //Edje_Real_Part *clip = NULL;
2622 eina_error_set(0);
2623
2624 GET_RP_OR_RETURN(NULL); 2461 GET_RP_OR_RETURN(NULL);
2625 2462
2626 //printf("Get source for part: %s\n", part); 2463 //printf("Get source for part: %s\n", part);
@@ -2632,8 +2469,6 @@ edje_edit_part_source_get(Evas_Object *obj, const char *part)
2632EAPI Eina_Bool 2469EAPI Eina_Bool
2633edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source) 2470edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source)
2634{ 2471{
2635 eina_error_set(0);
2636
2637 GET_RP_OR_RETURN(EINA_FALSE); 2472 GET_RP_OR_RETURN(EINA_FALSE);
2638 2473
2639 Evas_Object *child_obj; 2474 Evas_Object *child_obj;
@@ -2665,8 +2500,6 @@ edje_edit_part_source_set(Evas_Object *obj, const char *part, const char *source
2665EAPI int 2500EAPI int
2666edje_edit_part_drag_x_get(Evas_Object *obj, const char *part) 2501edje_edit_part_drag_x_get(Evas_Object *obj, const char *part)
2667{ 2502{
2668 eina_error_set(0);
2669
2670 GET_RP_OR_RETURN(0); 2503 GET_RP_OR_RETURN(0);
2671 //printf("Get dragX for part: %s\n", part); 2504 //printf("Get dragX for part: %s\n", part);
2672 return rp->part->dragable.x; 2505 return rp->part->dragable.x;
@@ -2675,8 +2508,6 @@ edje_edit_part_drag_x_get(Evas_Object *obj, const char *part)
2675EAPI void 2508EAPI void
2676edje_edit_part_drag_x_set(Evas_Object *obj, const char *part, int drag) 2509edje_edit_part_drag_x_set(Evas_Object *obj, const char *part, int drag)
2677{ 2510{
2678 eina_error_set(0);
2679
2680 GET_RP_OR_RETURN(); 2511 GET_RP_OR_RETURN();
2681 //printf("Set dragX for part: %s\n", part); 2512 //printf("Set dragX for part: %s\n", part);
2682 rp->part->dragable.x = drag; 2513 rp->part->dragable.x = drag;
@@ -2700,8 +2531,6 @@ edje_edit_part_drag_x_set(Evas_Object *obj, const char *part, int drag)
2700EAPI int 2531EAPI int
2701edje_edit_part_drag_y_get(Evas_Object *obj, const char *part) 2532edje_edit_part_drag_y_get(Evas_Object *obj, const char *part)
2702{ 2533{
2703 eina_error_set(0);
2704
2705 GET_RP_OR_RETURN(0); 2534 GET_RP_OR_RETURN(0);
2706 //printf("Get dragY for part: %s\n", part); 2535 //printf("Get dragY for part: %s\n", part);
2707 return rp->part->dragable.y; 2536 return rp->part->dragable.y;
@@ -2710,8 +2539,6 @@ edje_edit_part_drag_y_get(Evas_Object *obj, const char *part)
2710EAPI void 2539EAPI void
2711edje_edit_part_drag_y_set(Evas_Object *obj, const char *part, int drag) 2540edje_edit_part_drag_y_set(Evas_Object *obj, const char *part, int drag)
2712{ 2541{
2713 eina_error_set(0);
2714
2715 GET_RP_OR_RETURN(); 2542 GET_RP_OR_RETURN();
2716 //printf("Set dragY for part: %s\n", part); 2543 //printf("Set dragY for part: %s\n", part);
2717 rp->part->dragable.y = drag; 2544 rp->part->dragable.y = drag;
@@ -2736,14 +2563,12 @@ edje_edit_part_drag_y_set(Evas_Object *obj, const char *part, int drag)
2736 EAPI int \ 2563 EAPI int \
2737 edje_edit_part_drag_##Class##_##Value##_get(Evas_Object *obj, const char *part) \ 2564 edje_edit_part_drag_##Class##_##Value##_get(Evas_Object *obj, const char *part) \
2738 { \ 2565 { \
2739 eina_error_set(0); \
2740 GET_RP_OR_RETURN(0); \ 2566 GET_RP_OR_RETURN(0); \
2741 return rp->part->dragable.Class##_##Value; \ 2567 return rp->part->dragable.Class##_##Value; \
2742 } \ 2568 } \
2743 EAPI void \ 2569 EAPI void \
2744 edje_edit_part_drag_##Class##_##Value##_set(Evas_Object *obj, const char *part, int v) \ 2570 edje_edit_part_drag_##Class##_##Value##_set(Evas_Object *obj, const char *part, int v) \
2745 { \ 2571 { \
2746 eina_error_set(0); \
2747 GET_RP_OR_RETURN(); \ 2572 GET_RP_OR_RETURN(); \
2748 rp->part->dragable.Class##_##Value = v; \ 2573 rp->part->dragable.Class##_##Value = v; \
2749 } 2574 }
@@ -2759,8 +2584,6 @@ FUNC_PART_DRAG_INT(count, y);
2759 { \ 2584 { \
2760 Edje_Real_Part *p; \ 2585 Edje_Real_Part *p; \
2761 \ 2586 \
2762 eina_error_set(0); \
2763 \
2764 GET_RP_OR_RETURN(NULL); \ 2587 GET_RP_OR_RETURN(NULL); \
2765 \ 2588 \
2766 if (rp->part->dragable.Id##_id < 0) \ 2589 if (rp->part->dragable.Id##_id < 0) \
@@ -2774,8 +2597,6 @@ FUNC_PART_DRAG_INT(count, y);
2774 { \ 2597 { \
2775 Edje_Real_Part *e_part; \ 2598 Edje_Real_Part *e_part; \
2776 \ 2599 \
2777 eina_error_set(0); \
2778 \
2779 GET_RP_OR_RETURN(); \ 2600 GET_RP_OR_RETURN(); \
2780 if (!e) \ 2601 if (!e) \
2781 { \ 2602 { \
@@ -2800,8 +2621,6 @@ edje_edit_part_states_list_get(Evas_Object *obj, const char *part)
2800 Eina_List *states = NULL; 2621 Eina_List *states = NULL;
2801 unsigned int i; 2622 unsigned int i;
2802 2623
2803 eina_error_set(0);
2804
2805 GET_RP_OR_RETURN(NULL); 2624 GET_RP_OR_RETURN(NULL);
2806 2625
2807 //Is there a better place to put this? maybe edje_edit_init() ? 2626 //Is there a better place to put this? maybe edje_edit_init() ?
@@ -2836,8 +2655,6 @@ edje_edit_state_name_set(Evas_Object *obj, const char *part, const char *state,
2836 int part_id; 2655 int part_id;
2837 int i; 2656 int i;
2838 2657
2839 eina_error_set(0);
2840
2841 GET_PD_OR_RETURN(EINA_FALSE); 2658 GET_PD_OR_RETURN(EINA_FALSE);
2842 //printf("Set name of state: %s in part: %s [new name: %s]\n", 2659 //printf("Set name of state: %s in part: %s [new name: %s]\n",
2843 // part, state, new_name); 2660 // part, state, new_name);
@@ -2883,8 +2700,6 @@ edje_edit_state_del(Evas_Object *obj, const char *part, const char *state, doubl
2883 Edje_Part_Description_Common *pd; 2700 Edje_Part_Description_Common *pd;
2884 unsigned int i; 2701 unsigned int i;
2885 2702
2886 eina_error_set(0);
2887
2888 GET_EED_OR_RETURN(EINA_FALSE); 2703 GET_EED_OR_RETURN(EINA_FALSE);
2889 GET_RP_OR_RETURN(EINA_FALSE); 2704 GET_RP_OR_RETURN(EINA_FALSE);
2890 2705
@@ -3184,8 +2999,6 @@ edje_edit_state_add(Evas_Object *obj, const char *part, const char *name, double
3184EAPI Eina_Bool 2999EAPI Eina_Bool
3185edje_edit_state_exist(Evas_Object *obj, const char *part, const char *state, double value) 3000edje_edit_state_exist(Evas_Object *obj, const char *part, const char *state, double value)
3186{ 3001{
3187 eina_error_set(0);
3188
3189 GET_PD_OR_RETURN(EINA_FALSE); 3002 GET_PD_OR_RETURN(EINA_FALSE);
3190 return EINA_TRUE; 3003 return EINA_TRUE;
3191} 3004}
@@ -3196,8 +3009,6 @@ edje_edit_state_copy(Evas_Object *obj, const char *part, const char *from, doubl
3196 Edje_Part_Description_Common *pdfrom, *pdto; 3009 Edje_Part_Description_Common *pdfrom, *pdto;
3197 Edje_External_Param *p; 3010 Edje_External_Param *p;
3198 3011
3199 eina_error_set(0);
3200
3201 GET_EED_OR_RETURN(EINA_FALSE); 3012 GET_EED_OR_RETURN(EINA_FALSE);
3202 GET_RP_OR_RETURN(EINA_FALSE); 3013 GET_RP_OR_RETURN(EINA_FALSE);
3203 3014
@@ -3365,14 +3176,12 @@ edje_edit_state_copy(Evas_Object *obj, const char *part, const char *from, doubl
3365 EAPI double \ 3176 EAPI double \
3366 edje_edit_state_##Sub##_relative_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3177 edje_edit_state_##Sub##_relative_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3367 { \ 3178 { \
3368 eina_error_set(0); \
3369 GET_PD_OR_RETURN(0); \ 3179 GET_PD_OR_RETURN(0); \
3370 return TO_DOUBLE(pd->Sub.relative_##Value); \ 3180 return TO_DOUBLE(pd->Sub.relative_##Value); \
3371 } \ 3181 } \
3372 EAPI void \ 3182 EAPI void \
3373 edje_edit_state_##Sub##_relative_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 3183 edje_edit_state_##Sub##_relative_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
3374 { \ 3184 { \
3375 eina_error_set(0); \
3376 GET_PD_OR_RETURN(); \ 3185 GET_PD_OR_RETURN(); \
3377 pd->Sub.relative_##Value = FROM_DOUBLE(v); \ 3186 pd->Sub.relative_##Value = FROM_DOUBLE(v); \
3378 edje_object_calc_force(obj); \ 3187 edje_object_calc_force(obj); \
@@ -3387,14 +3196,12 @@ FUNC_STATE_RELATIVE_DOUBLE(rel2, y);
3387 EAPI int \ 3196 EAPI int \
3388 edje_edit_state_##Sub##_offset_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3197 edje_edit_state_##Sub##_offset_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3389 { \ 3198 { \
3390 eina_error_set(0); \
3391 GET_PD_OR_RETURN(0); \ 3199 GET_PD_OR_RETURN(0); \
3392 return pd->Sub.offset_##Value; \ 3200 return pd->Sub.offset_##Value; \
3393 } \ 3201 } \
3394 EAPI void \ 3202 EAPI void \
3395 edje_edit_state_##Sub##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 3203 edje_edit_state_##Sub##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
3396 { \ 3204 { \
3397 eina_error_set(0); \
3398 GET_PD_OR_RETURN(); \ 3205 GET_PD_OR_RETURN(); \
3399 pd->Sub.offset_##Value = TO_INT(FROM_DOUBLE(v)); \ 3206 pd->Sub.offset_##Value = TO_INT(FROM_DOUBLE(v)); \
3400 edje_object_calc_force(obj); \ 3207 edje_object_calc_force(obj); \
@@ -3411,8 +3218,6 @@ FUNC_STATE_OFFSET_INT(rel2, y);
3411 { \ 3218 { \
3412 Edje_Real_Part *rel; \ 3219 Edje_Real_Part *rel; \
3413 \ 3220 \
3414 eina_error_set(0); \
3415 \
3416 GET_PD_OR_RETURN(NULL); \ 3221 GET_PD_OR_RETURN(NULL); \
3417 \ 3222 \
3418 if (pd->Sub.id_##Value == -1) return NULL; \ 3223 if (pd->Sub.id_##Value == -1) return NULL; \
@@ -3427,8 +3232,6 @@ FUNC_STATE_OFFSET_INT(rel2, y);
3427 { \ 3232 { \
3428 Edje_Real_Part *relp; \ 3233 Edje_Real_Part *relp; \
3429 \ 3234 \
3430 eina_error_set(0); \
3431 \
3432 GET_PD_OR_RETURN(); \ 3235 GET_PD_OR_RETURN(); \
3433 \ 3236 \
3434 if (to) \ 3237 if (to) \
@@ -3455,7 +3258,6 @@ FUNC_STATE_REL(rel2, y);
3455 EAPI void \ 3258 EAPI void \
3456 edje_edit_state_##Code##_get(Evas_Object *obj, const char *part, const char *state, double value, int *r, int *g, int *b, int *a) \ 3259 edje_edit_state_##Code##_get(Evas_Object *obj, const char *part, const char *state, double value, int *r, int *g, int *b, int *a) \
3457 { \ 3260 { \
3458 eina_error_set(0); \
3459 GET_PD_OR_RETURN(); \ 3261 GET_PD_OR_RETURN(); \
3460 \ 3262 \
3461 if (r) *r = pd->Code.r; \ 3263 if (r) *r = pd->Code.r; \
@@ -3466,7 +3268,6 @@ FUNC_STATE_REL(rel2, y);
3466 EAPI void \ 3268 EAPI void \
3467 edje_edit_state_##Code##_set(Evas_Object *obj, const char *part, const char *state, double value, int r, int g, int b, int a) \ 3269 edje_edit_state_##Code##_set(Evas_Object *obj, const char *part, const char *state, double value, int r, int g, int b, int a) \
3468 { \ 3270 { \
3469 eina_error_set(0); \
3470 GET_PD_OR_RETURN(); \ 3271 GET_PD_OR_RETURN(); \
3471 \ 3272 \
3472 if (r > -1 && r < 256) pd->Code.r = r; \ 3273 if (r > -1 && r < 256) pd->Code.r = r; \
@@ -3485,8 +3286,6 @@ edje_edit_state_color3_get(Evas_Object *obj, const char *part, const char *state
3485{ 3286{
3486 Edje_Part_Description_Text *txt; 3287 Edje_Part_Description_Text *txt;
3487 3288
3488 eina_error_set(0);
3489
3490 GET_PD_OR_RETURN(); 3289 GET_PD_OR_RETURN();
3491 3290
3492 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3291 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -3512,8 +3311,6 @@ edje_edit_state_color3_set(Evas_Object *obj, const char *part, const char *state
3512{ 3311{
3513 Edje_Part_Description_Text *txt; 3312 Edje_Part_Description_Text *txt;
3514 3313
3515 eina_error_set(0);
3516
3517 GET_PD_OR_RETURN(); 3314 GET_PD_OR_RETURN();
3518 3315
3519 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3316 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -3534,14 +3331,12 @@ edje_edit_state_color3_set(Evas_Object *obj, const char *part, const char *state
3534 EAPI double \ 3331 EAPI double \
3535 edje_edit_state_##Class##_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3332 edje_edit_state_##Class##_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3536 { \ 3333 { \
3537 eina_error_set(0); \
3538 GET_PD_OR_RETURN(0); \ 3334 GET_PD_OR_RETURN(0); \
3539 return TO_DOUBLE(pd->Class.Value); \ 3335 return TO_DOUBLE(pd->Class.Value); \
3540 } \ 3336 } \
3541 EAPI void \ 3337 EAPI void \
3542 edje_edit_state_##Class##_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 3338 edje_edit_state_##Class##_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
3543 { \ 3339 { \
3544 eina_error_set(0); \
3545 GET_PD_OR_RETURN(); \ 3340 GET_PD_OR_RETURN(); \
3546 pd->Class.Value = FROM_DOUBLE(v); \ 3341 pd->Class.Value = FROM_DOUBLE(v); \
3547 edje_object_calc_force(obj); \ 3342 edje_object_calc_force(obj); \
@@ -3551,14 +3346,12 @@ edje_edit_state_color3_set(Evas_Object *obj, const char *part, const char *state
3551 EAPI int \ 3346 EAPI int \
3552 edje_edit_state_##Class##_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3347 edje_edit_state_##Class##_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3553 { \ 3348 { \
3554 eina_error_set(0); \
3555 GET_PD_OR_RETURN(0); \ 3349 GET_PD_OR_RETURN(0); \
3556 return pd->Class.Value; \ 3350 return pd->Class.Value; \
3557 } \ 3351 } \
3558 EAPI void \ 3352 EAPI void \
3559 edje_edit_state_##Class##_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, int v) \ 3353 edje_edit_state_##Class##_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, int v) \
3560 { \ 3354 { \
3561 eina_error_set(0); \
3562 GET_PD_OR_RETURN(); \ 3355 GET_PD_OR_RETURN(); \
3563 pd->Class.Value = v; \ 3356 pd->Class.Value = v; \
3564 edje_object_calc_force(obj); \ 3357 edje_object_calc_force(obj); \
@@ -3577,8 +3370,6 @@ FUNC_STATE_DOUBLE(aspect, max);
3577 EAPI double \ 3370 EAPI double \
3578 edje_edit_state_fill_##Type##_relative_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3371 edje_edit_state_fill_##Type##_relative_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3579 { \ 3372 { \
3580 eina_error_set(0); \
3581 \
3582 GET_PD_OR_RETURN(0); \ 3373 GET_PD_OR_RETURN(0); \
3583 \ 3374 \
3584 switch (rp->part->type) \ 3375 switch (rp->part->type) \
@@ -3606,8 +3397,6 @@ FUNC_STATE_DOUBLE(aspect, max);
3606 EAPI void \ 3397 EAPI void \
3607 edje_edit_state_fill_##Type##_relative_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 3398 edje_edit_state_fill_##Type##_relative_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
3608 { \ 3399 { \
3609 eina_error_set(0); \
3610 \
3611 GET_PD_OR_RETURN(); \ 3400 GET_PD_OR_RETURN(); \
3612 \ 3401 \
3613 switch (rp->part->type) \ 3402 switch (rp->part->type) \
@@ -3643,8 +3432,6 @@ FUNC_STATE_DOUBLE(aspect, max);
3643 EAPI int \ 3432 EAPI int \
3644 edje_edit_state_fill_##Type##_offset_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \ 3433 edje_edit_state_fill_##Type##_offset_##Value##_get(Evas_Object *obj, const char *part, const char *state, double value) \
3645 { \ 3434 { \
3646 eina_error_set(0); \
3647 \
3648 GET_PD_OR_RETURN(0); \ 3435 GET_PD_OR_RETURN(0); \
3649 \ 3436 \
3650 switch (rp->part->type) \ 3437 switch (rp->part->type) \
@@ -3671,8 +3458,6 @@ FUNC_STATE_DOUBLE(aspect, max);
3671 EAPI void \ 3458 EAPI void \
3672 edje_edit_state_fill_##Type##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \ 3459 edje_edit_state_fill_##Type##_offset_##Value##_set(Evas_Object *obj, const char *part, const char *state, double value, double v) \
3673 { \ 3460 { \
3674 eina_error_set(0); \
3675 \
3676 GET_PD_OR_RETURN(); \ 3461 GET_PD_OR_RETURN(); \
3677 \ 3462 \
3678 switch (rp->part->type) \ 3463 switch (rp->part->type) \
@@ -3715,8 +3500,6 @@ FUNC_STATE_INT_FILL(, size, y);
3715EAPI Eina_Bool 3500EAPI Eina_Bool
3716edje_edit_state_visible_get(Evas_Object *obj, const char *part, const char *state, double value) 3501edje_edit_state_visible_get(Evas_Object *obj, const char *part, const char *state, double value)
3717{ 3502{
3718 eina_error_set(0);
3719
3720 GET_PD_OR_RETURN(EINA_FALSE); 3503 GET_PD_OR_RETURN(EINA_FALSE);
3721 3504
3722 //printf("Get state visible flag of part: %s state: %s\n", part, state); 3505 //printf("Get state visible flag of part: %s state: %s\n", part, state);
@@ -3726,8 +3509,6 @@ edje_edit_state_visible_get(Evas_Object *obj, const char *part, const char *stat
3726EAPI void 3509EAPI void
3727edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool visible) 3510edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *state, double value, Eina_Bool visible)
3728{ 3511{
3729 eina_error_set(0);
3730
3731 GET_PD_OR_RETURN(); 3512 GET_PD_OR_RETURN();
3732 //printf("Set state visible flag of part: %s state: %s to: %d\n", part, state, visible); 3513 //printf("Set state visible flag of part: %s state: %s to: %d\n", part, state, visible);
3733 if (visible) pd->visible = 1; 3514 if (visible) pd->visible = 1;
@@ -3738,8 +3519,6 @@ edje_edit_state_visible_set(Evas_Object *obj, const char *part, const char *stat
3738EAPI unsigned char 3519EAPI unsigned char
3739edje_edit_state_aspect_pref_get(Evas_Object *obj, const char *part, const char *state, double value) 3520edje_edit_state_aspect_pref_get(Evas_Object *obj, const char *part, const char *state, double value)
3740{ 3521{
3741 eina_error_set(0);
3742
3743 GET_PD_OR_RETURN(0); 3522 GET_PD_OR_RETURN(0);
3744 3523
3745 //printf("GET ASPECT_PREF of state '%s' [%d]\n", state, pd->aspect.prefer); 3524 //printf("GET ASPECT_PREF of state '%s' [%d]\n", state, pd->aspect.prefer);
@@ -3749,8 +3528,6 @@ edje_edit_state_aspect_pref_get(Evas_Object *obj, const char *part, const char *
3749EAPI void 3528EAPI void
3750edje_edit_state_aspect_pref_set(Evas_Object *obj, const char *part, const char *state, double value, unsigned char pref) 3529edje_edit_state_aspect_pref_set(Evas_Object *obj, const char *part, const char *state, double value, unsigned char pref)
3751{ 3530{
3752 eina_error_set(0);
3753
3754 GET_PD_OR_RETURN(); 3531 GET_PD_OR_RETURN();
3755 3532
3756 //printf("SET ASPECT_PREF of state '%s' [to: %d]\n", state, pref); 3533 //printf("SET ASPECT_PREF of state '%s' [to: %d]\n", state, pref);
@@ -3760,8 +3537,6 @@ edje_edit_state_aspect_pref_set(Evas_Object *obj, const char *part, const char *
3760EAPI const char* 3537EAPI const char*
3761edje_edit_state_color_class_get(Evas_Object *obj, const char *part, const char *state, double value) 3538edje_edit_state_color_class_get(Evas_Object *obj, const char *part, const char *state, double value)
3762{ 3539{
3763 eina_error_set(0);
3764
3765 GET_PD_OR_RETURN(NULL); 3540 GET_PD_OR_RETURN(NULL);
3766 //printf("Get ColorClass of part: %s state: %s\n", part, state); 3541 //printf("Get ColorClass of part: %s state: %s\n", part, state);
3767 return eina_stringshare_add(pd->color_class); 3542 return eina_stringshare_add(pd->color_class);
@@ -3770,8 +3545,6 @@ edje_edit_state_color_class_get(Evas_Object *obj, const char *part, const char *
3770EAPI void 3545EAPI void
3771edje_edit_state_color_class_set(Evas_Object *obj, const char *part, const char *state, double value, const char *color_class) 3546edje_edit_state_color_class_set(Evas_Object *obj, const char *part, const char *state, double value, const char *color_class)
3772{ 3547{
3773 eina_error_set(0);
3774
3775 GET_PD_OR_RETURN(); 3548 GET_PD_OR_RETURN();
3776 //printf("Set ColorClass of part: %s state: %s [to: %s]\n", part, state, color_class); 3549 //printf("Set ColorClass of part: %s state: %s [to: %s]\n", part, state, color_class);
3777 _edje_if_string_free(ed, pd->color_class); 3550 _edje_if_string_free(ed, pd->color_class);
@@ -3783,8 +3556,6 @@ edje_edit_state_external_params_list_get(Evas_Object *obj, const char *part, con
3783{ 3556{
3784 Edje_Part_Description_External *external; 3557 Edje_Part_Description_External *external;
3785 3558
3786 eina_error_set(0);
3787
3788 GET_PD_OR_RETURN(NULL); 3559 GET_PD_OR_RETURN(NULL);
3789 3560
3790 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3561 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3802,8 +3573,6 @@ edje_edit_state_external_param_get(Evas_Object *obj, const char *part, const cha
3802 Edje_External_Param *p; 3573 Edje_External_Param *p;
3803 Eina_List *l; 3574 Eina_List *l;
3804 3575
3805 eina_error_set(0);
3806
3807 GET_PD_OR_RETURN(EINA_FALSE); 3576 GET_PD_OR_RETURN(EINA_FALSE);
3808 3577
3809 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3578 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3845,8 +3614,6 @@ edje_edit_state_external_param_int_get(Evas_Object *obj, const char *part, const
3845 Edje_External_Param *p; 3614 Edje_External_Param *p;
3846 Eina_List *l; 3615 Eina_List *l;
3847 3616
3848 eina_error_set(0);
3849
3850 GET_PD_OR_RETURN(EINA_FALSE); 3617 GET_PD_OR_RETURN(EINA_FALSE);
3851 3618
3852 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3619 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3877,8 +3644,6 @@ edje_edit_state_external_param_bool_get(Evas_Object *obj, const char *part, cons
3877 Edje_External_Param *p; 3644 Edje_External_Param *p;
3878 Eina_List *l; 3645 Eina_List *l;
3879 3646
3880 eina_error_set(0);
3881
3882 GET_PD_OR_RETURN(EINA_FALSE); 3647 GET_PD_OR_RETURN(EINA_FALSE);
3883 3648
3884 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3649 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3909,8 +3674,6 @@ edje_edit_state_external_param_double_get(Evas_Object *obj, const char *part, co
3909 Edje_External_Param *p; 3674 Edje_External_Param *p;
3910 Eina_List *l; 3675 Eina_List *l;
3911 3676
3912 eina_error_set(0);
3913
3914 GET_PD_OR_RETURN(EINA_FALSE); 3677 GET_PD_OR_RETURN(EINA_FALSE);
3915 3678
3916 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3679 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3941,8 +3704,6 @@ edje_edit_state_external_param_string_get(Evas_Object *obj, const char *part, co
3941 Edje_External_Param *p; 3704 Edje_External_Param *p;
3942 Eina_List *l; 3705 Eina_List *l;
3943 3706
3944 eina_error_set(0);
3945
3946 GET_PD_OR_RETURN(EINA_FALSE); 3707 GET_PD_OR_RETURN(EINA_FALSE);
3947 3708
3948 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3709 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -3973,8 +3734,6 @@ edje_edit_state_external_param_choice_get(Evas_Object *obj, const char *part, co
3973 Edje_External_Param *p; 3734 Edje_External_Param *p;
3974 Eina_List *l; 3735 Eina_List *l;
3975 3736
3976 eina_error_set(0);
3977
3978 GET_PD_OR_RETURN(EINA_FALSE); 3737 GET_PD_OR_RETURN(EINA_FALSE);
3979 3738
3980 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3739 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -4007,8 +3766,6 @@ edje_edit_state_external_param_set(Evas_Object *obj, const char *part, const cha
4007 Edje_External_Param *p = NULL, old_p = { 0, 0, 0, 0, 0 }; 3766 Edje_External_Param *p = NULL, old_p = { 0, 0, 0, 0, 0 };
4008 int found = 0; 3767 int found = 0;
4009 3768
4010 eina_error_set(0);
4011
4012 GET_PD_OR_RETURN(EINA_FALSE); 3769 GET_PD_OR_RETURN(EINA_FALSE);
4013 3770
4014 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL) 3771 if (rp->part->type != EDJE_PART_TYPE_EXTERNAL)
@@ -4103,35 +3860,30 @@ edje_edit_state_external_param_set(Evas_Object *obj, const char *part, const cha
4103EAPI Eina_Bool 3860EAPI Eina_Bool
4104edje_edit_state_external_param_int_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, int val) 3861edje_edit_state_external_param_int_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, int val)
4105{ 3862{
4106 eina_error_set(0);
4107 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_INT, val); 3863 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_INT, val);
4108} 3864}
4109 3865
4110EAPI Eina_Bool 3866EAPI Eina_Bool
4111edje_edit_state_external_param_bool_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, Eina_Bool val) 3867edje_edit_state_external_param_bool_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, Eina_Bool val)
4112{ 3868{
4113 eina_error_set(0);
4114 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_BOOL, (int)val); 3869 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_BOOL, (int)val);
4115} 3870}
4116 3871
4117EAPI Eina_Bool 3872EAPI Eina_Bool
4118edje_edit_state_external_param_double_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, double val) 3873edje_edit_state_external_param_double_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, double val)
4119{ 3874{
4120 eina_error_set(0);
4121 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_DOUBLE, val); 3875 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_DOUBLE, val);
4122} 3876}
4123 3877
4124EAPI Eina_Bool 3878EAPI Eina_Bool
4125edje_edit_state_external_param_string_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, const char *val) 3879edje_edit_state_external_param_string_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, const char *val)
4126{ 3880{
4127 eina_error_set(0);
4128 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_STRING, val); 3881 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_STRING, val);
4129} 3882}
4130 3883
4131EAPI Eina_Bool 3884EAPI Eina_Bool
4132edje_edit_state_external_param_choice_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, const char *val) 3885edje_edit_state_external_param_choice_set(Evas_Object *obj, const char *part, const char *state, double value, const char *param, const char *val)
4133{ 3886{
4134 eina_error_set(0);
4135 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_CHOICE, val); 3887 return edje_edit_state_external_param_set(obj, part, state, value, param, EDJE_EXTERNAL_PARAM_TYPE_CHOICE, val);
4136} 3888}
4137 3889
@@ -4144,8 +3896,6 @@ edje_edit_state_text_get(Evas_Object *obj, const char *part, const char *state,
4144{ 3896{
4145 Edje_Part_Description_Text *txt; 3897 Edje_Part_Description_Text *txt;
4146 3898
4147 eina_error_set(0);
4148
4149 GET_PD_OR_RETURN(NULL); 3899 GET_PD_OR_RETURN(NULL);
4150 3900
4151 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3901 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -4163,8 +3913,6 @@ edje_edit_state_text_set(Evas_Object *obj, const char *part, const char *state,
4163{ 3913{
4164 Edje_Part_Description_Text *txt; 3914 Edje_Part_Description_Text *txt;
4165 3915
4166 eina_error_set(0);
4167
4168 GET_PD_OR_RETURN(); 3916 GET_PD_OR_RETURN();
4169 3917
4170 //printf("SET TEXT of state: %s\n", state); 3918 //printf("SET TEXT of state: %s\n", state);
@@ -4189,8 +3937,6 @@ edje_edit_state_text_size_get(Evas_Object *obj, const char *part, const char *st
4189{ 3937{
4190 Edje_Part_Description_Text *txt; 3938 Edje_Part_Description_Text *txt;
4191 3939
4192 eina_error_set(0);
4193
4194 GET_PD_OR_RETURN(-1); 3940 GET_PD_OR_RETURN(-1);
4195 3941
4196 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 3942 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -4207,8 +3953,6 @@ edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *st
4207{ 3953{
4208 Edje_Part_Description_Text *txt; 3954 Edje_Part_Description_Text *txt;
4209 3955
4210 eina_error_set(0);
4211
4212 GET_PD_OR_RETURN(); 3956 GET_PD_OR_RETURN();
4213 3957
4214 //printf("SET TEXT_SIZE of state: %s [%d]\n", state, size); 3958 //printf("SET TEXT_SIZE of state: %s [%d]\n", state, size);
@@ -4232,8 +3976,6 @@ edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *st
4232 { \ 3976 { \
4233 Edje_Part_Description_Text *txt; \ 3977 Edje_Part_Description_Text *txt; \
4234 \ 3978 \
4235 eina_error_set(0); \
4236 \
4237 GET_PD_OR_RETURN(0); \ 3979 GET_PD_OR_RETURN(0); \
4238 \ 3980 \
4239 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \ 3981 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \
@@ -4248,8 +3990,6 @@ edje_edit_state_text_size_set(Evas_Object *obj, const char *part, const char *st
4248 { \ 3990 { \
4249 Edje_Part_Description_Text *txt; \ 3991 Edje_Part_Description_Text *txt; \
4250 \ 3992 \
4251 eina_error_set(0); \
4252 \
4253 GET_PD_OR_RETURN(); \ 3993 GET_PD_OR_RETURN(); \
4254 \ 3994 \
4255 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \ 3995 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \
@@ -4271,8 +4011,6 @@ FUNC_TEXT_DOUBLE(elipsis, elipsis);
4271 { \ 4011 { \
4272 Edje_Part_Description_Text *txt; \ 4012 Edje_Part_Description_Text *txt; \
4273 \ 4013 \
4274 eina_error_set(0); \
4275 \
4276 GET_PD_OR_RETURN(EINA_FALSE); \ 4014 GET_PD_OR_RETURN(EINA_FALSE); \
4277 \ 4015 \
4278 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \ 4016 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && \
@@ -4312,8 +4050,6 @@ edje_edit_fonts_list_get(Evas_Object *obj)
4312 Eina_List *fonts = NULL; 4050 Eina_List *fonts = NULL;
4313 Edje_Font_Directory_Entry *f; 4051 Edje_Font_Directory_Entry *f;
4314 4052
4315 eina_error_set(0);
4316
4317 GET_ED_OR_RETURN(NULL); 4053 GET_ED_OR_RETURN(NULL);
4318 4054
4319 if (!ed->file || !ed->file->fonts) return NULL; 4055 if (!ed->file || !ed->file->fonts) return NULL;
@@ -4337,8 +4073,6 @@ edje_edit_font_add(Evas_Object *obj, const char* path, const char* alias)
4337 struct stat st; 4073 struct stat st;
4338 Edje_Font_Directory_Entry *fnt; 4074 Edje_Font_Directory_Entry *fnt;
4339 4075
4340 eina_error_set(0);
4341
4342 GET_ED_OR_RETURN(EINA_FALSE); 4076 GET_ED_OR_RETURN(EINA_FALSE);
4343 4077
4344 INF("ADD FONT: %s", path); 4078 INF("ADD FONT: %s", path);
@@ -4403,8 +4137,6 @@ edje_edit_font_del(Evas_Object *obj, const char* alias)
4403{ 4137{
4404 Edje_Font_Directory_Entry *fnt; 4138 Edje_Font_Directory_Entry *fnt;
4405 4139
4406 eina_error_set(0);
4407
4408 GET_ED_OR_RETURN(EINA_FALSE); 4140 GET_ED_OR_RETURN(EINA_FALSE);
4409 4141
4410 INF("DEL FONT: %s", alias); 4142 INF("DEL FONT: %s", alias);
@@ -4463,8 +4195,6 @@ edje_edit_font_path_get(Evas_Object *obj, const char *alias)
4463 Edje_Font_Directory_Entry *f; 4195 Edje_Font_Directory_Entry *f;
4464 const char *str = NULL; 4196 const char *str = NULL;
4465 4197
4466 eina_error_set(0);
4467
4468 if (!alias) return NULL; 4198 if (!alias) return NULL;
4469 GET_ED_OR_RETURN(NULL); 4199 GET_ED_OR_RETURN(NULL);
4470 4200
@@ -4489,8 +4219,6 @@ edje_edit_state_font_get(Evas_Object *obj, const char *part, const char *state,
4489{ 4219{
4490 Edje_Part_Description_Text *txt; 4220 Edje_Part_Description_Text *txt;
4491 4221
4492 eina_error_set(0);
4493
4494 GET_PD_OR_RETURN(NULL); 4222 GET_PD_OR_RETURN(NULL);
4495 4223
4496 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 4224 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -4507,8 +4235,6 @@ edje_edit_state_font_set(Evas_Object *obj, const char *part, const char *state,
4507{ 4235{
4508 Edje_Part_Description_Text *txt; 4236 Edje_Part_Description_Text *txt;
4509 4237
4510 eina_error_set(0);
4511
4512 GET_PD_OR_RETURN(); 4238 GET_PD_OR_RETURN();
4513 4239
4514 if ((rp->part->type != EDJE_PART_TYPE_TEXT) && 4240 if ((rp->part->type != EDJE_PART_TYPE_TEXT) &&
@@ -4527,8 +4253,6 @@ edje_edit_state_font_set(Evas_Object *obj, const char *part, const char *state,
4527EAPI Edje_Text_Effect 4253EAPI Edje_Text_Effect
4528edje_edit_part_effect_get(Evas_Object *obj, const char *part) 4254edje_edit_part_effect_get(Evas_Object *obj, const char *part)
4529{ 4255{
4530 eina_error_set(0);
4531
4532 GET_RP_OR_RETURN(0); 4256 GET_RP_OR_RETURN(0);
4533 4257
4534 //printf("GET EFFECT of part: %s\n", part); 4258 //printf("GET EFFECT of part: %s\n", part);
@@ -4538,8 +4262,6 @@ edje_edit_part_effect_get(Evas_Object *obj, const char *part)
4538EAPI void 4262EAPI void
4539edje_edit_part_effect_set(Evas_Object *obj, const char *part, Edje_Text_Effect effect) 4263edje_edit_part_effect_set(Evas_Object *obj, const char *part, Edje_Text_Effect effect)
4540{ 4264{
4541 eina_error_set(0);
4542
4543 GET_RP_OR_RETURN(); 4265 GET_RP_OR_RETURN();
4544 4266
4545 //printf("SET EFFECT of part: %s [%d]\n", part, effect); 4267 //printf("SET EFFECT of part: %s [%d]\n", part, effect);
@@ -4558,8 +4280,6 @@ edje_edit_images_list_get(Evas_Object *obj)
4558 Eina_List *images = NULL; 4280 Eina_List *images = NULL;
4559 unsigned int i; 4281 unsigned int i;
4560 4282
4561 eina_error_set(0);
4562
4563 GET_ED_OR_RETURN(NULL); 4283 GET_ED_OR_RETURN(NULL);
4564 4284
4565 if (!ed->file) return NULL; 4285 if (!ed->file) return NULL;
@@ -4581,8 +4301,6 @@ edje_edit_image_add(Evas_Object *obj, const char* path)
4581 int free_id = -1; 4301 int free_id = -1;
4582 char *name; 4302 char *name;
4583 4303
4584 eina_error_set(0);
4585
4586 GET_ED_OR_RETURN(EINA_FALSE); 4304 GET_ED_OR_RETURN(EINA_FALSE);
4587 4305
4588 if (!path) return EINA_FALSE; 4306 if (!path) return EINA_FALSE;
@@ -4651,8 +4369,6 @@ edje_edit_image_del(Evas_Object *obj, const char* name)
4651 Edje_Image_Directory_Entry *de; 4369 Edje_Image_Directory_Entry *de;
4652 unsigned int i; 4370 unsigned int i;
4653 4371
4654 eina_error_set(0);
4655
4656 GET_EED_OR_RETURN(EINA_FALSE); 4372 GET_EED_OR_RETURN(EINA_FALSE);
4657 GET_ED_OR_RETURN(EINA_FALSE); 4373 GET_ED_OR_RETURN(EINA_FALSE);
4658 4374
@@ -4726,8 +4442,6 @@ edje_edit_image_data_add(Evas_Object *obj, const char *name, int id)
4726{ 4442{
4727 Edje_Image_Directory_Entry *de; 4443 Edje_Image_Directory_Entry *de;
4728 4444
4729 eina_error_set(0);
4730
4731 GET_ED_OR_RETURN(EINA_FALSE); 4445 GET_ED_OR_RETURN(EINA_FALSE);
4732 4446
4733 if (!name) return EINA_FALSE; 4447 if (!name) return EINA_FALSE;
@@ -4757,8 +4471,6 @@ edje_edit_image_data_add(Evas_Object *obj, const char *name, int id)
4757EAPI int 4471EAPI int
4758edje_edit_image_id_get(Evas_Object *obj, const char *image_name) 4472edje_edit_image_id_get(Evas_Object *obj, const char *image_name)
4759{ 4473{
4760 eina_error_set(0);
4761
4762 GET_EED_OR_RETURN(-1); 4474 GET_EED_OR_RETURN(-1);
4763 4475
4764 return _edje_image_id_find(eed, image_name); 4476 return _edje_image_id_find(eed, image_name);
@@ -4770,8 +4482,6 @@ edje_edit_image_compression_type_get(Evas_Object *obj, const char *image)
4770 Edje_Image_Directory_Entry *de = NULL; 4482 Edje_Image_Directory_Entry *de = NULL;
4771 unsigned int i; 4483 unsigned int i;
4772 4484
4773 eina_error_set(0);
4774
4775 GET_ED_OR_RETURN(-1); 4485 GET_ED_OR_RETURN(-1);
4776 4486
4777 if (!ed->file) return -1; 4487 if (!ed->file) return -1;
@@ -4813,8 +4523,6 @@ edje_edit_image_compression_rate_get(Evas_Object *obj, const char *image)
4813 Edje_Image_Directory_Entry *de; 4523 Edje_Image_Directory_Entry *de;
4814 unsigned int i; 4524 unsigned int i;
4815 4525
4816 eina_error_set(0);
4817
4818 GET_ED_OR_RETURN(-1); 4526 GET_ED_OR_RETURN(-1);
4819 4527
4820 // Gets the Image Entry 4528 // Gets the Image Entry
@@ -4838,8 +4546,6 @@ edje_edit_state_image_get(Evas_Object *obj, const char *part, const char *state,
4838 Edje_Part_Description_Image *img; 4546 Edje_Part_Description_Image *img;
4839 const char *image; 4547 const char *image;
4840 4548
4841 eina_error_set(0);
4842
4843 GET_PD_OR_RETURN(NULL); 4549 GET_PD_OR_RETURN(NULL);
4844 4550
4845 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4551 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -4860,8 +4566,6 @@ edje_edit_state_image_set(Evas_Object *obj, const char *part, const char *state,
4860 Edje_Part_Description_Image *img; 4566 Edje_Part_Description_Image *img;
4861 int id; 4567 int id;
4862 4568
4863 eina_error_set(0);
4864
4865 GET_PD_OR_RETURN(); 4569 GET_PD_OR_RETURN();
4866 4570
4867 if (!image) return; 4571 if (!image) return;
@@ -4887,8 +4591,6 @@ edje_edit_state_tweens_list_get(Evas_Object *obj, const char *part, const char *
4887 const char *name; 4591 const char *name;
4888 unsigned int i; 4592 unsigned int i;
4889 4593
4890 eina_error_set(0);
4891
4892 GET_PD_OR_RETURN(NULL); 4594 GET_PD_OR_RETURN(NULL);
4893 4595
4894 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4596 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -4914,8 +4616,6 @@ edje_edit_state_tween_add(Evas_Object *obj, const char *part, const char *state,
4914 Edje_Part_Image_Id *i; 4616 Edje_Part_Image_Id *i;
4915 int id; 4617 int id;
4916 4618
4917 eina_error_set(0);
4918
4919 GET_PD_OR_RETURN(EINA_FALSE); 4619 GET_PD_OR_RETURN(EINA_FALSE);
4920 4620
4921 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4621 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -4953,8 +4653,6 @@ edje_edit_state_tween_del(Evas_Object *obj, const char *part, const char *state,
4953 unsigned int i; 4653 unsigned int i;
4954 int search; 4654 int search;
4955 4655
4956 eina_error_set(0);
4957
4958 GET_PD_OR_RETURN(EINA_FALSE); 4656 GET_PD_OR_RETURN(EINA_FALSE);
4959 4657
4960 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4658 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -4987,8 +4685,6 @@ edje_edit_state_image_border_get(Evas_Object *obj, const char *part, const char
4987{ 4685{
4988 Edje_Part_Description_Image *img; 4686 Edje_Part_Description_Image *img;
4989 4687
4990 eina_error_set(0);
4991
4992 GET_PD_OR_RETURN(); 4688 GET_PD_OR_RETURN();
4993 4689
4994 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4690 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -5015,8 +4711,6 @@ edje_edit_state_image_border_set(Evas_Object *obj, const char *part, const char
5015{ 4711{
5016 Edje_Part_Description_Image *img; 4712 Edje_Part_Description_Image *img;
5017 4713
5018 eina_error_set(0);
5019
5020 GET_PD_OR_RETURN(); 4714 GET_PD_OR_RETURN();
5021 4715
5022 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4716 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -5039,8 +4733,6 @@ edje_edit_state_image_border_fill_get(Evas_Object *obj, const char *part, const
5039{ 4733{
5040 Edje_Part_Description_Image *img; 4734 Edje_Part_Description_Image *img;
5041 4735
5042 eina_error_set(0);
5043
5044 GET_PD_OR_RETURN(0); 4736 GET_PD_OR_RETURN(0);
5045 4737
5046 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4738 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -5059,8 +4751,6 @@ edje_edit_state_image_border_fill_set(Evas_Object *obj, const char *part, const
5059{ 4751{
5060 Edje_Part_Description_Image *img; 4752 Edje_Part_Description_Image *img;
5061 4753
5062 eina_error_set(0);
5063
5064 GET_PD_OR_RETURN(); 4754 GET_PD_OR_RETURN();
5065 4755
5066 if (rp->part->type != EDJE_PART_TYPE_IMAGE) 4756 if (rp->part->type != EDJE_PART_TYPE_IMAGE)
@@ -5118,8 +4808,6 @@ edje_edit_programs_list_get(Evas_Object *obj)
5118 Eina_List *progs = NULL; 4808 Eina_List *progs = NULL;
5119 int i; 4809 int i;
5120 4810
5121 eina_error_set(0);
5122
5123 GET_ED_OR_RETURN(NULL); 4811 GET_ED_OR_RETURN(NULL);
5124 4812
5125 //printf("EE: Found %d programs\n", ed->table_programs_size); 4813 //printf("EE: Found %d programs\n", ed->table_programs_size);
@@ -5143,8 +4831,6 @@ edje_edit_program_add(Evas_Object *obj, const char *name)
5143{ 4831{
5144 Edje_Program *epr; 4832 Edje_Program *epr;
5145 4833
5146 eina_error_set(0);
5147
5148 GET_ED_OR_RETURN(EINA_FALSE); 4834 GET_ED_OR_RETURN(EINA_FALSE);
5149 4835
5150 //printf("ADD PROGRAM [new name: %s]\n", name); 4836 //printf("ADD PROGRAM [new name: %s]\n", name);
@@ -5209,8 +4895,6 @@ edje_edit_program_del(Evas_Object *obj, const char *prog)
5209 int id, i; 4895 int id, i;
5210 int old_id = -1; 4896 int old_id = -1;
5211 4897
5212 eina_error_set(0);
5213
5214 GET_EED_OR_RETURN(EINA_FALSE); 4898 GET_EED_OR_RETURN(EINA_FALSE);
5215 GET_ED_OR_RETURN(EINA_FALSE); 4899 GET_ED_OR_RETURN(EINA_FALSE);
5216 GET_EPR_OR_RETURN(EINA_FALSE); 4900 GET_EPR_OR_RETURN(EINA_FALSE);
@@ -5323,8 +5007,6 @@ edje_edit_program_del(Evas_Object *obj, const char *prog)
5323EAPI Eina_Bool 5007EAPI Eina_Bool
5324edje_edit_program_exist(Evas_Object *obj, const char *prog) 5008edje_edit_program_exist(Evas_Object *obj, const char *prog)
5325{ 5009{
5326 eina_error_set(0);
5327
5328 GET_EPR_OR_RETURN(EINA_FALSE); 5010 GET_EPR_OR_RETURN(EINA_FALSE);
5329 5011
5330 return EINA_TRUE; 5012 return EINA_TRUE;
@@ -5333,8 +5015,6 @@ edje_edit_program_exist(Evas_Object *obj, const char *prog)
5333EAPI Eina_Bool 5015EAPI Eina_Bool
5334edje_edit_program_run(Evas_Object *obj, const char *prog) 5016edje_edit_program_run(Evas_Object *obj, const char *prog)
5335{ 5017{
5336 eina_error_set(0);
5337
5338 GET_ED_OR_RETURN(EINA_FALSE); 5018 GET_ED_OR_RETURN(EINA_FALSE);
5339 GET_EPR_OR_RETURN(EINA_FALSE); 5019 GET_EPR_OR_RETURN(EINA_FALSE);
5340 5020
@@ -5345,8 +5025,6 @@ edje_edit_program_run(Evas_Object *obj, const char *prog)
5345EAPI Eina_Bool 5025EAPI Eina_Bool
5346edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_name) 5026edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_name)
5347{ 5027{
5348 eina_error_set(0);
5349
5350 GET_EED_OR_RETURN(EINA_FALSE); 5028 GET_EED_OR_RETURN(EINA_FALSE);
5351 GET_ED_OR_RETURN(EINA_FALSE); 5029 GET_ED_OR_RETURN(EINA_FALSE);
5352 GET_EPR_OR_RETURN(EINA_FALSE); 5030 GET_EPR_OR_RETURN(EINA_FALSE);
@@ -5368,8 +5046,6 @@ edje_edit_program_name_set(Evas_Object *obj, const char *prog, const char* new_n
5368EAPI const char * 5046EAPI const char *
5369edje_edit_program_source_get(Evas_Object *obj, const char *prog) 5047edje_edit_program_source_get(Evas_Object *obj, const char *prog)
5370{ 5048{
5371 eina_error_set(0);
5372
5373 GET_EPR_OR_RETURN(NULL); 5049 GET_EPR_OR_RETURN(NULL);
5374 5050
5375 if (!epr->source) return NULL; 5051 if (!epr->source) return NULL;
@@ -5380,8 +5056,6 @@ edje_edit_program_source_get(Evas_Object *obj, const char *prog)
5380EAPI Eina_Bool 5056EAPI Eina_Bool
5381edje_edit_program_source_set(Evas_Object *obj, const char *prog, const char *source) 5057edje_edit_program_source_set(Evas_Object *obj, const char *prog, const char *source)
5382{ 5058{
5383 eina_error_set(0);
5384
5385 GET_ED_OR_RETURN(EINA_FALSE); 5059 GET_ED_OR_RETURN(EINA_FALSE);
5386 GET_EPR_OR_RETURN(EINA_FALSE); 5060 GET_EPR_OR_RETURN(EINA_FALSE);
5387 5061
@@ -5405,8 +5079,6 @@ edje_edit_program_source_set(Evas_Object *obj, const char *prog, const char *sou
5405EAPI const char * 5079EAPI const char *
5406edje_edit_program_filter_part_get(Evas_Object *obj, const char *prog) 5080edje_edit_program_filter_part_get(Evas_Object *obj, const char *prog)
5407{ 5081{
5408 eina_error_set(0);
5409
5410 GET_EPR_OR_RETURN(NULL); 5082 GET_EPR_OR_RETURN(NULL);
5411 5083
5412 if (!epr->filter.part) return NULL; 5084 if (!epr->filter.part) return NULL;
@@ -5416,8 +5088,6 @@ edje_edit_program_filter_part_get(Evas_Object *obj, const char *prog)
5416EAPI Eina_Bool 5088EAPI Eina_Bool
5417edje_edit_program_filter_part_set(Evas_Object *obj, const char *prog, const char *filter_part) 5089edje_edit_program_filter_part_set(Evas_Object *obj, const char *prog, const char *filter_part)
5418{ 5090{
5419 eina_error_set(0);
5420
5421 GET_ED_OR_RETURN(EINA_FALSE); 5091 GET_ED_OR_RETURN(EINA_FALSE);
5422 GET_EPR_OR_RETURN(EINA_FALSE); 5092 GET_EPR_OR_RETURN(EINA_FALSE);
5423 5093
@@ -5432,8 +5102,6 @@ edje_edit_program_filter_part_set(Evas_Object *obj, const char *prog, const char
5432EAPI const char * 5102EAPI const char *
5433edje_edit_program_filter_state_get(Evas_Object *obj, const char *prog) 5103edje_edit_program_filter_state_get(Evas_Object *obj, const char *prog)
5434{ 5104{
5435 eina_error_set(0);
5436
5437 GET_EPR_OR_RETURN(NULL); 5105 GET_EPR_OR_RETURN(NULL);
5438 5106
5439 if (!epr->filter.state) return NULL; 5107 if (!epr->filter.state) return NULL;
@@ -5443,8 +5111,6 @@ edje_edit_program_filter_state_get(Evas_Object *obj, const char *prog)
5443EAPI Eina_Bool 5111EAPI Eina_Bool
5444edje_edit_program_filter_state_set(Evas_Object *obj, const char *prog, const char *filter_state) 5112edje_edit_program_filter_state_set(Evas_Object *obj, const char *prog, const char *filter_state)
5445{ 5113{
5446 eina_error_set(0);
5447
5448 GET_ED_OR_RETURN(EINA_FALSE); 5114 GET_ED_OR_RETURN(EINA_FALSE);
5449 GET_EPR_OR_RETURN(EINA_FALSE); 5115 GET_EPR_OR_RETURN(EINA_FALSE);
5450 5116
@@ -5459,8 +5125,6 @@ edje_edit_program_filter_state_set(Evas_Object *obj, const char *prog, const cha
5459EAPI const char * 5125EAPI const char *
5460edje_edit_program_signal_get(Evas_Object *obj, const char *prog) 5126edje_edit_program_signal_get(Evas_Object *obj, const char *prog)
5461{ 5127{
5462 eina_error_set(0);
5463
5464 GET_EPR_OR_RETURN(NULL); 5128 GET_EPR_OR_RETURN(NULL);
5465 5129
5466 if (!epr->signal) return NULL; 5130 if (!epr->signal) return NULL;
@@ -5471,8 +5135,6 @@ edje_edit_program_signal_get(Evas_Object *obj, const char *prog)
5471EAPI Eina_Bool 5135EAPI Eina_Bool
5472edje_edit_program_signal_set(Evas_Object *obj, const char *prog, const char *sig) 5136edje_edit_program_signal_set(Evas_Object *obj, const char *prog, const char *sig)
5473{ 5137{
5474 eina_error_set(0);
5475
5476 GET_ED_OR_RETURN(EINA_FALSE); 5138 GET_ED_OR_RETURN(EINA_FALSE);
5477 GET_EPR_OR_RETURN(EINA_FALSE); 5139 GET_EPR_OR_RETURN(EINA_FALSE);
5478 5140
@@ -5496,8 +5158,6 @@ edje_edit_program_signal_set(Evas_Object *obj, const char *prog, const char *sig
5496EAPI const char * 5158EAPI const char *
5497edje_edit_program_state_get(Evas_Object *obj, const char *prog) 5159edje_edit_program_state_get(Evas_Object *obj, const char *prog)
5498{ 5160{
5499 eina_error_set(0);
5500
5501 GET_EPR_OR_RETURN(NULL); 5161 GET_EPR_OR_RETURN(NULL);
5502 5162
5503 if (!epr->state) return NULL; 5163 if (!epr->state) return NULL;
@@ -5508,8 +5168,6 @@ edje_edit_program_state_get(Evas_Object *obj, const char *prog)
5508EAPI Eina_Bool 5168EAPI Eina_Bool
5509edje_edit_program_state_set(Evas_Object *obj, const char *prog, const char *state) 5169edje_edit_program_state_set(Evas_Object *obj, const char *prog, const char *state)
5510{ 5170{
5511 eina_error_set(0);
5512
5513 GET_ED_OR_RETURN(EINA_FALSE); 5171 GET_ED_OR_RETURN(EINA_FALSE);
5514 GET_EPR_OR_RETURN(EINA_FALSE); 5172 GET_EPR_OR_RETURN(EINA_FALSE);
5515 5173
@@ -5524,8 +5182,6 @@ edje_edit_program_state_set(Evas_Object *obj, const char *prog, const char *stat
5524EAPI const char * 5182EAPI const char *
5525edje_edit_program_state2_get(Evas_Object *obj, const char *prog) 5183edje_edit_program_state2_get(Evas_Object *obj, const char *prog)
5526{ 5184{
5527 eina_error_set(0);
5528
5529 GET_EPR_OR_RETURN(NULL); 5185 GET_EPR_OR_RETURN(NULL);
5530 5186
5531 if (!epr->state2) return NULL; 5187 if (!epr->state2) return NULL;
@@ -5536,8 +5192,6 @@ edje_edit_program_state2_get(Evas_Object *obj, const char *prog)
5536EAPI Eina_Bool 5192EAPI Eina_Bool
5537edje_edit_program_state2_set(Evas_Object *obj, const char *prog, const char *state2) 5193edje_edit_program_state2_set(Evas_Object *obj, const char *prog, const char *state2)
5538{ 5194{
5539 eina_error_set(0);
5540
5541 GET_ED_OR_RETURN(EINA_FALSE); 5195 GET_ED_OR_RETURN(EINA_FALSE);
5542 GET_EPR_OR_RETURN(EINA_FALSE); 5196 GET_EPR_OR_RETURN(EINA_FALSE);
5543 5197
@@ -5552,8 +5206,6 @@ edje_edit_program_state2_set(Evas_Object *obj, const char *prog, const char *sta
5552EAPI double 5206EAPI double
5553edje_edit_program_value_get(Evas_Object *obj, const char *prog) 5207edje_edit_program_value_get(Evas_Object *obj, const char *prog)
5554{ 5208{
5555 eina_error_set(0);
5556
5557 GET_EPR_OR_RETURN(-1); 5209 GET_EPR_OR_RETURN(-1);
5558 5210
5559 //printf("GET VALUE for program: %s [%s %.2f]\n", prog, epr->state, epr->value); 5211 //printf("GET VALUE for program: %s [%s %.2f]\n", prog, epr->state, epr->value);
@@ -5563,8 +5215,6 @@ edje_edit_program_value_get(Evas_Object *obj, const char *prog)
5563EAPI Eina_Bool 5215EAPI Eina_Bool
5564edje_edit_program_value_set(Evas_Object *obj, const char *prog, double value) 5216edje_edit_program_value_set(Evas_Object *obj, const char *prog, double value)
5565{ 5217{
5566 eina_error_set(0);
5567
5568 GET_EPR_OR_RETURN(EINA_FALSE); 5218 GET_EPR_OR_RETURN(EINA_FALSE);
5569 5219
5570 //printf("SET VALUE for program: %s [%.2f]\n", prog, value); 5220 //printf("SET VALUE for program: %s [%.2f]\n", prog, value);
@@ -5575,8 +5225,6 @@ edje_edit_program_value_set(Evas_Object *obj, const char *prog, double value)
5575EAPI double 5225EAPI double
5576edje_edit_program_value2_get(Evas_Object *obj, const char *prog) 5226edje_edit_program_value2_get(Evas_Object *obj, const char *prog)
5577{ 5227{
5578 eina_error_set(0);
5579
5580 GET_EPR_OR_RETURN(-1); 5228 GET_EPR_OR_RETURN(-1);
5581 5229
5582 //printf("GET VALUE2 for program: %s [%s %.2f]\n", prog, epr->state2, epr->value2); 5230 //printf("GET VALUE2 for program: %s [%s %.2f]\n", prog, epr->state2, epr->value2);
@@ -5586,8 +5234,6 @@ edje_edit_program_value2_get(Evas_Object *obj, const char *prog)
5586EAPI Eina_Bool 5234EAPI Eina_Bool
5587edje_edit_program_value2_set(Evas_Object *obj, const char *prog, double value) 5235edje_edit_program_value2_set(Evas_Object *obj, const char *prog, double value)
5588{ 5236{
5589 eina_error_set(0);
5590
5591 GET_EPR_OR_RETURN(EINA_FALSE); 5237 GET_EPR_OR_RETURN(EINA_FALSE);
5592 5238
5593 //printf("SET VALUE for program: %s [%.2f]\n", prog, value); 5239 //printf("SET VALUE for program: %s [%.2f]\n", prog, value);
@@ -5598,8 +5244,6 @@ edje_edit_program_value2_set(Evas_Object *obj, const char *prog, double value)
5598EAPI double 5244EAPI double
5599edje_edit_program_in_from_get(Evas_Object *obj, const char *prog) 5245edje_edit_program_in_from_get(Evas_Object *obj, const char *prog)
5600{ 5246{
5601 eina_error_set(0);
5602
5603 GET_EPR_OR_RETURN(0); 5247 GET_EPR_OR_RETURN(0);
5604 5248
5605 //printf("GET IN.FROM for program: %s [%f]\n", prog, epr->in.from); 5249 //printf("GET IN.FROM for program: %s [%f]\n", prog, epr->in.from);
@@ -5609,8 +5253,6 @@ edje_edit_program_in_from_get(Evas_Object *obj, const char *prog)
5609EAPI Eina_Bool 5253EAPI Eina_Bool
5610edje_edit_program_in_from_set(Evas_Object *obj, const char *prog, double seconds) 5254edje_edit_program_in_from_set(Evas_Object *obj, const char *prog, double seconds)
5611{ 5255{
5612 eina_error_set(0);
5613
5614 GET_EPR_OR_RETURN(EINA_FALSE); 5256 GET_EPR_OR_RETURN(EINA_FALSE);
5615 5257
5616 //printf("SET IN.FROM for program: %s [%f]\n", prog, epr->in.from); 5258 //printf("SET IN.FROM for program: %s [%f]\n", prog, epr->in.from);
@@ -5621,8 +5263,6 @@ edje_edit_program_in_from_set(Evas_Object *obj, const char *prog, double seconds
5621EAPI double 5263EAPI double
5622edje_edit_program_in_range_get(Evas_Object *obj, const char *prog) 5264edje_edit_program_in_range_get(Evas_Object *obj, const char *prog)
5623{ 5265{
5624 eina_error_set(0);
5625
5626 GET_EPR_OR_RETURN(0); 5266 GET_EPR_OR_RETURN(0);
5627 5267
5628 //printf("GET IN.RANGE for program: %s [%f]\n", prog, epr->in.range); 5268 //printf("GET IN.RANGE for program: %s [%f]\n", prog, epr->in.range);
@@ -5632,8 +5272,6 @@ edje_edit_program_in_range_get(Evas_Object *obj, const char *prog)
5632EAPI Eina_Bool 5272EAPI Eina_Bool
5633edje_edit_program_in_range_set(Evas_Object *obj, const char *prog, double seconds) 5273edje_edit_program_in_range_set(Evas_Object *obj, const char *prog, double seconds)
5634{ 5274{
5635 eina_error_set(0);
5636
5637 GET_EPR_OR_RETURN(EINA_FALSE); 5275 GET_EPR_OR_RETURN(EINA_FALSE);
5638 5276
5639 //printf("SET IN.RANGE for program: %s [%f]\n", prog, epr->in.range); 5277 //printf("SET IN.RANGE for program: %s [%f]\n", prog, epr->in.range);
@@ -5644,8 +5282,6 @@ edje_edit_program_in_range_set(Evas_Object *obj, const char *prog, double second
5644EAPI Edje_Tween_Mode 5282EAPI Edje_Tween_Mode
5645edje_edit_program_transition_get(Evas_Object *obj, const char *prog) 5283edje_edit_program_transition_get(Evas_Object *obj, const char *prog)
5646{ 5284{
5647 eina_error_set(0);
5648
5649 GET_EPR_OR_RETURN(-1); 5285 GET_EPR_OR_RETURN(-1);
5650 5286
5651 //printf("GET TRANSITION for program: %s [%d]\n", prog, epr->tween.mode); 5287 //printf("GET TRANSITION for program: %s [%d]\n", prog, epr->tween.mode);
@@ -5655,8 +5291,6 @@ edje_edit_program_transition_get(Evas_Object *obj, const char *prog)
5655EAPI Eina_Bool 5291EAPI Eina_Bool
5656edje_edit_program_transition_set(Evas_Object *obj, const char *prog, Edje_Tween_Mode transition) 5292edje_edit_program_transition_set(Evas_Object *obj, const char *prog, Edje_Tween_Mode transition)
5657{ 5293{
5658 eina_error_set(0);
5659
5660 GET_EPR_OR_RETURN(EINA_FALSE); 5294 GET_EPR_OR_RETURN(EINA_FALSE);
5661 5295
5662 //printf("GET TRANSITION for program: %s [%d]\n", prog, epr->tween.mode); 5296 //printf("GET TRANSITION for program: %s [%d]\n", prog, epr->tween.mode);
@@ -5667,8 +5301,6 @@ edje_edit_program_transition_set(Evas_Object *obj, const char *prog, Edje_Tween_
5667EAPI double 5301EAPI double
5668edje_edit_program_transition_time_get(Evas_Object *obj, const char *prog) 5302edje_edit_program_transition_time_get(Evas_Object *obj, const char *prog)
5669{ 5303{
5670 eina_error_set(0);
5671
5672 GET_EPR_OR_RETURN(-1); 5304 GET_EPR_OR_RETURN(-1);
5673 5305
5674 //printf("GET TRANSITION_TIME for program: %s [%.4f]\n", prog, epr->tween.time); 5306 //printf("GET TRANSITION_TIME for program: %s [%.4f]\n", prog, epr->tween.time);
@@ -5678,8 +5310,6 @@ edje_edit_program_transition_time_get(Evas_Object *obj, const char *prog)
5678EAPI Eina_Bool 5310EAPI Eina_Bool
5679edje_edit_program_transition_time_set(Evas_Object *obj, const char *prog, double seconds) 5311edje_edit_program_transition_time_set(Evas_Object *obj, const char *prog, double seconds)
5680{ 5312{
5681 eina_error_set(0);
5682
5683 GET_EPR_OR_RETURN(EINA_FALSE); 5313 GET_EPR_OR_RETURN(EINA_FALSE);
5684 5314
5685 //printf("GET TRANSITION_TIME for program: %s [%.4f]\n", prog, epr->tween.time); 5315 //printf("GET TRANSITION_TIME for program: %s [%.4f]\n", prog, epr->tween.time);
@@ -5690,8 +5320,6 @@ edje_edit_program_transition_time_set(Evas_Object *obj, const char *prog, double
5690EAPI Edje_Action_Type 5320EAPI Edje_Action_Type
5691edje_edit_program_action_get(Evas_Object *obj, const char *prog) 5321edje_edit_program_action_get(Evas_Object *obj, const char *prog)
5692{ 5322{
5693 eina_error_set(0);
5694
5695 GET_EPR_OR_RETURN(-1); 5323 GET_EPR_OR_RETURN(-1);
5696 5324
5697 //printf("GET ACTION for program: %s [%d]\n", prog, epr->action); 5325 //printf("GET ACTION for program: %s [%d]\n", prog, epr->action);
@@ -5703,8 +5331,6 @@ edje_edit_program_action_set(Evas_Object *obj, const char *prog, Edje_Action_Typ
5703{ 5331{
5704 Program_Script *ps; 5332 Program_Script *ps;
5705 5333
5706 eina_error_set(0);
5707
5708 GET_EED_OR_RETURN(EINA_FALSE); 5334 GET_EED_OR_RETURN(EINA_FALSE);
5709 GET_EPR_OR_RETURN(EINA_FALSE); 5335 GET_EPR_OR_RETURN(EINA_FALSE);
5710 5336
@@ -5754,8 +5380,6 @@ edje_edit_program_targets_get(Evas_Object *obj, const char *prog)
5754 Eina_List *l, *targets = NULL; 5380 Eina_List *l, *targets = NULL;
5755 Edje_Program_Target *t; 5381 Edje_Program_Target *t;
5756 5382
5757 eina_error_set(0);
5758
5759 GET_ED_OR_RETURN(NULL); 5383 GET_ED_OR_RETURN(NULL);
5760 GET_EPR_OR_RETURN(NULL); 5384 GET_EPR_OR_RETURN(NULL);
5761 5385
@@ -5789,8 +5413,6 @@ edje_edit_program_targets_get(Evas_Object *obj, const char *prog)
5789EAPI Eina_Bool 5413EAPI Eina_Bool
5790edje_edit_program_targets_clear(Evas_Object *obj, const char *prog) 5414edje_edit_program_targets_clear(Evas_Object *obj, const char *prog)
5791{ 5415{
5792 eina_error_set(0);
5793
5794 GET_EPR_OR_RETURN(EINA_FALSE); 5416 GET_EPR_OR_RETURN(EINA_FALSE);
5795 5417
5796 while (epr->targets) 5418 while (epr->targets)
@@ -5811,8 +5433,6 @@ edje_edit_program_target_add(Evas_Object *obj, const char *prog, const char *tar
5811 int id; 5433 int id;
5812 Edje_Program_Target *t; 5434 Edje_Program_Target *t;
5813 5435
5814 eina_error_set(0);
5815
5816 GET_ED_OR_RETURN(EINA_FALSE); 5436 GET_ED_OR_RETURN(EINA_FALSE);
5817 GET_EPR_OR_RETURN(EINA_FALSE); 5437 GET_EPR_OR_RETURN(EINA_FALSE);
5818 5438
@@ -5853,8 +5473,6 @@ edje_edit_program_target_del(Evas_Object *obj, const char *prog, const char *tar
5853 Eina_List *l; 5473 Eina_List *l;
5854 Edje_Program_Target *t; 5474 Edje_Program_Target *t;
5855 5475
5856 eina_error_set(0);
5857
5858 GET_ED_OR_RETURN(EINA_FALSE); 5476 GET_ED_OR_RETURN(EINA_FALSE);
5859 GET_EPR_OR_RETURN(EINA_FALSE); 5477 GET_EPR_OR_RETURN(EINA_FALSE);
5860 5478
@@ -5894,8 +5512,6 @@ edje_edit_program_afters_get(Evas_Object *obj, const char *prog)
5894 Eina_List *l, *afters = NULL; 5512 Eina_List *l, *afters = NULL;
5895 Edje_Program_After *a; 5513 Edje_Program_After *a;
5896 5514
5897 eina_error_set(0);
5898
5899 GET_ED_OR_RETURN(NULL); 5515 GET_ED_OR_RETURN(NULL);
5900 GET_EPR_OR_RETURN(NULL); 5516 GET_EPR_OR_RETURN(NULL);
5901 5517
@@ -5917,8 +5533,6 @@ edje_edit_program_afters_get(Evas_Object *obj, const char *prog)
5917EAPI Eina_Bool 5533EAPI Eina_Bool
5918edje_edit_program_afters_clear(Evas_Object *obj, const char *prog) 5534edje_edit_program_afters_clear(Evas_Object *obj, const char *prog)
5919{ 5535{
5920 eina_error_set(0);
5921
5922 GET_EPR_OR_RETURN(EINA_FALSE); 5536 GET_EPR_OR_RETURN(EINA_FALSE);
5923 5537
5924 while (epr->after) 5538 while (epr->after)
@@ -5939,8 +5553,6 @@ edje_edit_program_after_add(Evas_Object *obj, const char *prog, const char *afte
5939 Edje_Program *af; 5553 Edje_Program *af;
5940 Edje_Program_After *a; 5554 Edje_Program_After *a;
5941 5555
5942 eina_error_set(0);
5943
5944 GET_EPR_OR_RETURN(EINA_FALSE); 5556 GET_EPR_OR_RETURN(EINA_FALSE);
5945 5557
5946 af = _edje_program_get_byname(obj, after); 5558 af = _edje_program_get_byname(obj, after);
@@ -5963,8 +5575,6 @@ edje_edit_program_after_del(Evas_Object *obj, const char *prog, const char *afte
5963 Edje_Program_After *a; 5575 Edje_Program_After *a;
5964 Eina_List *l; 5576 Eina_List *l;
5965 5577
5966 eina_error_set(0);
5967
5968 GET_EPR_OR_RETURN(EINA_FALSE); 5578 GET_EPR_OR_RETURN(EINA_FALSE);
5969 5579
5970 af = _edje_program_get_byname(obj, after); 5580 af = _edje_program_get_byname(obj, after);
@@ -5983,8 +5593,6 @@ edje_edit_program_after_del(Evas_Object *obj, const char *prog, const char *afte
5983EAPI const char * 5593EAPI const char *
5984edje_edit_program_api_name_get(Evas_Object *obj, const char *prog) 5594edje_edit_program_api_name_get(Evas_Object *obj, const char *prog)
5985{ 5595{
5986 eina_error_set(0);
5987
5988 GET_EPR_OR_RETURN(NULL); 5596 GET_EPR_OR_RETURN(NULL);
5989 5597
5990 return eina_stringshare_add(epr->api.name); 5598 return eina_stringshare_add(epr->api.name);
@@ -5993,8 +5601,6 @@ edje_edit_program_api_name_get(Evas_Object *obj, const char *prog)
5993EAPI const char * 5601EAPI const char *
5994edje_edit_program_api_description_get(Evas_Object *obj, const char *prog) 5602edje_edit_program_api_description_get(Evas_Object *obj, const char *prog)
5995{ 5603{
5996 eina_error_set(0);
5997
5998 GET_EPR_OR_RETURN(NULL); 5604 GET_EPR_OR_RETURN(NULL);
5999 5605
6000 return eina_stringshare_add(epr->api.description); 5606 return eina_stringshare_add(epr->api.description);
@@ -6003,8 +5609,6 @@ edje_edit_program_api_description_get(Evas_Object *obj, const char *prog)
6003EAPI Eina_Bool 5609EAPI Eina_Bool
6004edje_edit_program_api_name_set(Evas_Object *obj, const char *prog, const char* name) 5610edje_edit_program_api_name_set(Evas_Object *obj, const char *prog, const char* name)
6005{ 5611{
6006 eina_error_set(0);
6007
6008 GET_ED_OR_RETURN(EINA_FALSE); 5612 GET_ED_OR_RETURN(EINA_FALSE);
6009 GET_EPR_OR_RETURN(EINA_FALSE); 5613 GET_EPR_OR_RETURN(EINA_FALSE);
6010 5614
@@ -6017,8 +5621,6 @@ edje_edit_program_api_name_set(Evas_Object *obj, const char *prog, const char* n
6017EAPI Eina_Bool 5621EAPI Eina_Bool
6018edje_edit_program_api_description_set(Evas_Object *obj, const char *prog, const char *description) 5622edje_edit_program_api_description_set(Evas_Object *obj, const char *prog, const char *description)
6019{ 5623{
6020 eina_error_set(0);
6021
6022 GET_ED_OR_RETURN(EINA_FALSE); 5624 GET_ED_OR_RETURN(EINA_FALSE);
6023 GET_EPR_OR_RETURN(EINA_FALSE); 5625 GET_EPR_OR_RETURN(EINA_FALSE);
6024 5626
@@ -6034,8 +5636,6 @@ edje_edit_program_api_description_set(Evas_Object *obj, const char *prog, const
6034EAPI char * 5636EAPI char *
6035edje_edit_script_get(Evas_Object *obj) 5637edje_edit_script_get(Evas_Object *obj)
6036{ 5638{
6037 eina_error_set(0);
6038
6039 GET_EED_OR_RETURN(NULL); 5639 GET_EED_OR_RETURN(NULL);
6040 GET_ED_OR_RETURN(NULL); 5640 GET_ED_OR_RETURN(NULL);
6041 5641
@@ -6048,8 +5648,6 @@ edje_edit_script_get(Evas_Object *obj)
6048EAPI void 5648EAPI void
6049edje_edit_script_set(Evas_Object *obj, const char *code) 5649edje_edit_script_set(Evas_Object *obj, const char *code)
6050{ 5650{
6051 eina_error_set(0);
6052
6053 GET_EED_OR_RETURN(); 5651 GET_EED_OR_RETURN();
6054 5652
6055 free(eed->embryo_source); 5653 free(eed->embryo_source);
@@ -6071,8 +5669,6 @@ edje_edit_script_program_get(Evas_Object *obj, const char *prog)
6071{ 5669{
6072 Program_Script *ps; 5670 Program_Script *ps;
6073 5671
6074 eina_error_set(0);
6075
6076 GET_EED_OR_RETURN(NULL); 5672 GET_EED_OR_RETURN(NULL);
6077 GET_EPR_OR_RETURN(NULL); 5673 GET_EPR_OR_RETURN(NULL);
6078 5674
@@ -6091,8 +5687,6 @@ edje_edit_script_program_set(Evas_Object *obj, const char *prog, const char *cod
6091{ 5687{
6092 Program_Script *ps; 5688 Program_Script *ps;
6093 5689
6094 eina_error_set(0);
6095
6096 GET_EED_OR_RETURN(); 5690 GET_EED_OR_RETURN();
6097 GET_EPR_OR_RETURN(); 5691 GET_EPR_OR_RETURN();
6098 5692
@@ -7778,16 +7372,12 @@ _edje_edit_internal_save(Evas_Object *obj, int current_only)
7778EAPI Eina_Bool 7372EAPI Eina_Bool
7779edje_edit_save(Evas_Object *obj) 7373edje_edit_save(Evas_Object *obj)
7780{ 7374{
7781 eina_error_set(0);
7782
7783 return _edje_edit_internal_save(obj, 1); 7375 return _edje_edit_internal_save(obj, 1);
7784} 7376}
7785 7377
7786EAPI Eina_Bool 7378EAPI Eina_Bool
7787edje_edit_save_all(Evas_Object *obj) 7379edje_edit_save_all(Evas_Object *obj)
7788{ 7380{
7789 eina_error_set(0);
7790
7791 return _edje_edit_internal_save(obj, 0); 7381 return _edje_edit_internal_save(obj, 0);
7792} 7382}
7793 7383
@@ -7799,8 +7389,6 @@ edje_edit_print_internal_status(Evas_Object *obj)
7799 unsigned int i; 7389 unsigned int i;
7800 int j; 7390 int j;
7801*/ 7391*/
7802 eina_error_set(0);
7803
7804 GET_EED_OR_RETURN(); 7392 GET_EED_OR_RETURN();
7805 7393
7806 _edje_generate_source(obj); 7394 _edje_generate_source(obj);
diff --git a/src/lib/eina/eina_array.c b/src/lib/eina/eina_array.c
index b460acfa32..ff727f34eb 100644
--- a/src/lib/eina/eina_array.c
+++ b/src/lib/eina/eina_array.c
@@ -28,7 +28,6 @@
28 28
29#include "eina_config.h" 29#include "eina_config.h"
30#include "eina_private.h" 30#include "eina_private.h"
31#include "eina_error.h"
32#include "eina_log.h" 31#include "eina_log.h"
33 32
34/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */ 33/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */
@@ -185,13 +184,8 @@ eina_array_grow(Eina_Array *array)
185 EINA_MAGIC_CHECK_ARRAY(array); 184 EINA_MAGIC_CHECK_ARRAY(array);
186 185
187 total = array->total + array->step; 186 total = array->total + array->step;
188 eina_error_set(0);
189 tmp = realloc(array->data, sizeof (void *) * total); 187 tmp = realloc(array->data, sizeof (void *) * total);
190 if (EINA_UNLIKELY(!tmp)) 188 if (EINA_UNLIKELY(!tmp)) return 0;
191 {
192 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
193 return 0;
194 }
195 189
196 array->total = total; 190 array->total = total;
197 array->data = tmp; 191 array->data = tmp;
@@ -266,13 +260,8 @@ eina_array_new(unsigned int step)
266{ 260{
267 Eina_Array *array; 261 Eina_Array *array;
268 262
269 eina_error_set(0);
270 array = malloc(sizeof (Eina_Array)); 263 array = malloc(sizeof (Eina_Array));
271 if (!array) 264 if (!array) return NULL;
272 {
273 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
274 return NULL;
275 }
276 265
277 EINA_MAGIC_SET(array, EINA_MAGIC_ARRAY); 266 EINA_MAGIC_SET(array, EINA_MAGIC_ARRAY);
278 267
@@ -390,13 +379,8 @@ eina_array_remove(Eina_Array *array, Eina_Bool (*keep)(void *data,
390 return EINA_TRUE; 379 return EINA_TRUE;
391 } 380 }
392 381
393 eina_error_set(0);
394 tmp = malloc(sizeof (void *) * array->total); 382 tmp = malloc(sizeof (void *) * array->total);
395 if (!tmp) 383 if (!tmp) return EINA_FALSE;
396 {
397 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
398 return EINA_FALSE;
399 }
400 384
401 memcpy(tmp, array->data, limit * sizeof(void *)); 385 memcpy(tmp, array->data, limit * sizeof(void *));
402 total = limit; 386 total = limit;
@@ -438,13 +422,8 @@ eina_array_iterator_new(const Eina_Array *array)
438 EINA_SAFETY_ON_NULL_RETURN_VAL(array, NULL); 422 EINA_SAFETY_ON_NULL_RETURN_VAL(array, NULL);
439 EINA_MAGIC_CHECK_ARRAY(array); 423 EINA_MAGIC_CHECK_ARRAY(array);
440 424
441 eina_error_set(0);
442 it = calloc(1, sizeof (Eina_Iterator_Array)); 425 it = calloc(1, sizeof (Eina_Iterator_Array));
443 if (!it) 426 if (!it) return NULL;
444 {
445 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
446 return NULL;
447 }
448 427
449 EINA_MAGIC_SET(it, EINA_MAGIC_ARRAY_ITERATOR); 428 EINA_MAGIC_SET(it, EINA_MAGIC_ARRAY_ITERATOR);
450 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); 429 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR);
@@ -468,13 +447,8 @@ eina_array_accessor_new(const Eina_Array *array)
468 EINA_SAFETY_ON_NULL_RETURN_VAL(array, NULL); 447 EINA_SAFETY_ON_NULL_RETURN_VAL(array, NULL);
469 EINA_MAGIC_CHECK_ARRAY(array); 448 EINA_MAGIC_CHECK_ARRAY(array);
470 449
471 eina_error_set(0);
472 ac = calloc(1, sizeof (Eina_Accessor_Array)); 450 ac = calloc(1, sizeof (Eina_Accessor_Array));
473 if (!ac) 451 if (!ac) return NULL;
474 {
475 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
476 return NULL;
477 }
478 452
479 EINA_MAGIC_SET(ac, EINA_MAGIC_ARRAY_ACCESSOR); 453 EINA_MAGIC_SET(ac, EINA_MAGIC_ARRAY_ACCESSOR);
480 EINA_MAGIC_SET(&ac->accessor, EINA_MAGIC_ACCESSOR); 454 EINA_MAGIC_SET(&ac->accessor, EINA_MAGIC_ACCESSOR);
diff --git a/src/lib/eina/eina_array.h b/src/lib/eina/eina_array.h
index a9f5c7a557..5a5199eb2b 100644
--- a/src/lib/eina/eina_array.h
+++ b/src/lib/eina/eina_array.h
@@ -253,8 +253,7 @@ struct _Eina_Array
253 * another element will increase the buffer by @p step elements again. 253 * another element will increase the buffer by @p step elements again.
254 * 254 *
255 * This function return a valid array on success, or @c NULL if memory 255 * This function return a valid array on success, or @c NULL if memory
256 * allocation fails. In that case, the error is set 256 * allocation fails.
257 * to #EINA_ERROR_OUT_OF_MEMORY.
258 */ 257 */
259EAPI Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_WARN_UNUSED_RESULT; 258EAPI Eina_Array *eina_array_new(unsigned int step) EINA_WARN_UNUSED_RESULT EINA_MALLOC EINA_WARN_UNUSED_RESULT;
260 259
@@ -325,7 +324,7 @@ EAPI void eina_array_flush(Eina_Array *array) EINA_ARG_NONNULL(1);
325 * check of @p array. If it is @c NULL or invalid, the program may crash. 324 * check of @p array. If it is @c NULL or invalid, the program may crash.
326 * 325 *
327 * If it wasn't able to remove items due to an allocation failure, it will 326 * If it wasn't able to remove items due to an allocation failure, it will
328 * return #EINA_FALSE and the error is set to #EINA_ERROR_OUT_OF_MEMORY. 327 * return #EINA_FALSE.
329 */ 328 */
330EAPI Eina_Bool eina_array_remove(Eina_Array * array, 329EAPI Eina_Bool eina_array_remove(Eina_Array * array,
331 Eina_Bool (*keep)(void *data, void *gdata), 330 Eina_Bool (*keep)(void *data, void *gdata),
@@ -363,8 +362,7 @@ static inline unsigned int eina_array_count(const Eina_Array *array) EINA_ARG_NO
363 * This function returns a newly allocated iterator associated to 362 * This function returns a newly allocated iterator associated to
364 * @p array. If @p array is @c NULL or the count member of @p array is 363 * @p array. If @p array is @c NULL or the count member of @p array is
365 * less or equal than 0, this function returns @c NULL. If the memory can 364 * less or equal than 0, this function returns @c NULL. If the memory can
366 * not be allocated, NULL is returned and #EINA_ERROR_OUT_OF_MEMORY is 365 * not be allocated, NULL is returned. Otherwise, a valid iterator is returned.
367 * set. Otherwise, a valid iterator is returned.
368 */ 366 */
369EAPI Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 367EAPI Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
370 368
@@ -377,8 +375,8 @@ EAPI Eina_Iterator *eina_array_iterator_new(const Eina_Array *array) EINA
377 * This function returns a newly allocated accessor associated to 375 * This function returns a newly allocated accessor associated to
378 * @p array. If @p array is @c NULL or the count member of @p array is 376 * @p array. If @p array is @c NULL or the count member of @p array is
379 * less or equal than 0, this function returns @c NULL. If the memory can 377 * less or equal than 0, this function returns @c NULL. If the memory can
380 * not be allocated, @c NULL is returned and #EINA_ERROR_OUT_OF_MEMORY is 378 * not be allocated, @c NULL is returned Otherwise, a valid accessor is
381 * set. Otherwise, a valid accessor is returned. 379 * returned.
382 */ 380 */
383EAPI Eina_Accessor *eina_array_accessor_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT; 381EAPI Eina_Accessor *eina_array_accessor_new(const Eina_Array *array) EINA_MALLOC EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT;
384/** 382/**
diff --git a/src/lib/eina/eina_benchmark.c b/src/lib/eina/eina_benchmark.c
index 701c1840cb..d018a0ae0d 100644
--- a/src/lib/eina/eina_benchmark.c
+++ b/src/lib/eina/eina_benchmark.c
@@ -142,13 +142,8 @@ eina_benchmark_new(const char *name, const char *run)
142{ 142{
143 Eina_Benchmark *new; 143 Eina_Benchmark *new;
144 144
145 eina_error_set(0);
146 new = calloc(1, sizeof (Eina_Benchmark)); 145 new = calloc(1, sizeof (Eina_Benchmark));
147 if (!new) 146 if (!new) return NULL;
148 {
149 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
150 return NULL;
151 }
152 147
153 new->name = name; 148 new->name = name;
154 new->run = run; 149 new->run = run;
@@ -203,13 +198,8 @@ eina_benchmark_register(Eina_Benchmark *bench,
203 if (count_step == 0) 198 if (count_step == 0)
204 return EINA_FALSE; 199 return EINA_FALSE;
205 200
206 eina_error_set(0);
207 run = calloc(1, sizeof (Eina_Run)); 201 run = calloc(1, sizeof (Eina_Run));
208 if (!run) 202 if (!run) return EINA_FALSE;
209 {
210 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
211 return EINA_FALSE;
212 }
213 203
214 run->cb = bench_cb; 204 run->cb = bench_cb;
215 run->name = name; 205 run->name = name;
diff --git a/src/lib/eina/eina_benchmark.h b/src/lib/eina/eina_benchmark.h
index a95aadf14e..8c0c5988da 100644
--- a/src/lib/eina/eina_benchmark.h
+++ b/src/lib/eina/eina_benchmark.h
@@ -365,9 +365,8 @@ typedef void (*Eina_Benchmark_Specimens)(int request);
365 * to name the gnuplot file that eina_benchmark_run() will create. 365 * to name the gnuplot file that eina_benchmark_run() will create.
366 * 366 *
367 * This function return a valid benchmark on success, or @c NULL if 367 * This function return a valid benchmark on success, or @c NULL if
368 * memory allocation fails. In that case, the error is set 368 * memory allocation fails.
369 * to #EINA_ERROR_OUT_OF_MEMORY. 369 *
370 *
371 * When the new module is not needed anymore, use 370 * When the new module is not needed anymore, use
372 * eina_benchmark_free() to free the allocated memory. 371 * eina_benchmark_free() to free the allocated memory.
373 */ 372 */
@@ -403,10 +402,8 @@ EAPI void eina_benchmark_free(Eina_Benchmark *bench);
403 * increasing by @p count_step from @p count_start to @p count_end is passed to @p 402 * increasing by @p count_step from @p count_start to @p count_end is passed to @p
404 * bench_cb when eina_benchmark_run() is called. 403 * bench_cb when eina_benchmark_run() is called.
405 * 404 *
406 * If @p bench is @c NULL, this function returns immediately. If the 405 * If @p bench is @c NULL, this function returns immediately.
407 * allocation of the memory of the test to add fails, the error is set 406 * This function returns #EINA_FALSE on failure, #EINA_TRUE otherwise.
408 * to #EINA_ERROR_OUT_OF_MEMORY. This function returns #EINA_FALSE
409 * on failure, #EINA_TRUE otherwise.
410 */ 407 */
411EAPI Eina_Bool eina_benchmark_register(Eina_Benchmark *bench, 408EAPI Eina_Bool eina_benchmark_register(Eina_Benchmark *bench,
412 const char *name, 409 const char *name,
diff --git a/src/lib/eina/eina_binbuf.h b/src/lib/eina/eina_binbuf.h
index c28df05af4..c0a2069bc6 100644
--- a/src/lib/eina/eina_binbuf.h
+++ b/src/lib/eina/eina_binbuf.h
@@ -39,8 +39,7 @@ typedef struct _Eina_Strbuf Eina_Binbuf;
39 * @return Newly allocated string buffer instance. 39 * @return Newly allocated string buffer instance.
40 * 40 *
41 * This function creates a new string buffer. On error, @c NULL is 41 * This function creates a new string buffer. On error, @c NULL is
42 * returned and Eina error is set to #EINA_ERROR_OUT_OF_MEMORY. To 42 * returned. To free the resources, use eina_binbuf_free().
43 * free the resources, use eina_binbuf_free().
44 * 43 *
45 * @see eina_binbuf_free() 44 * @see eina_binbuf_free()
46 * @see eina_binbuf_append() 45 * @see eina_binbuf_append()
@@ -58,8 +57,7 @@ EAPI Eina_Binbuf *eina_binbuf_new(void) EINA_MALLOC EINA_WARN_UNUSED_RESULT;
58 * @return Newly allocated string buffer instance. 57 * @return Newly allocated string buffer instance.
59 * 58 *
60 * This function creates a new string buffer. On error, @c NULL is 59 * This function creates a new string buffer. On error, @c NULL is
61 * returned and Eina error is set to #EINA_ERROR_OUT_OF_MEMORY. To 60 * returned. To free the resources, use eina_binbuf_free().
62 * free the resources, use eina_binbuf_free().
63 * 61 *
64 * @see eina_binbuf_manage_new() 62 * @see eina_binbuf_manage_new()
65 * @since 1.2.0 63 * @since 1.2.0
diff --git a/src/lib/eina/eina_convert.c b/src/lib/eina/eina_convert.c
index 7e397e0e6e..3eeacda5f4 100644
--- a/src/lib/eina/eina_convert.c
+++ b/src/lib/eina/eina_convert.c
@@ -92,13 +92,6 @@ EAPI Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND = 0;
92EAPI Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND = 0; 92EAPI Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND = 0;
93EAPI Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH = 0; 93EAPI Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH = 0;
94 94
95static const char EINA_ERROR_CONVERT_0X_NOT_FOUND_STR[] =
96 "Error during string conversion to float, First '0x' was not found.";
97static const char EINA_ERROR_CONVERT_P_NOT_FOUND_STR[] =
98 "Error during string conversion to float, First 'p' was not found.";
99static const char EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH_STR[] =
100 "Error outrun string limit during conversion string conversion to float.";
101
102/** 95/**
103 * @endcond 96 * @endcond
104 */ 97 */
@@ -112,10 +105,6 @@ static const char EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH_STR[] =
112 * This function sets up the convert module of Eina. It is called by 105 * This function sets up the convert module of Eina. It is called by
113 * eina_init(). 106 * eina_init().
114 * 107 *
115 * This function sets up the error module of Eina and registers the
116 * errors #EINA_ERROR_CONVERT_0X_NOT_FOUND, #EINA_ERROR_CONVERT_P_NOT_FOUND
117 * and #EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH.
118 *
119 * @see eina_init() 108 * @see eina_init()
120 */ 109 */
121Eina_Bool 110Eina_Bool
@@ -128,13 +117,6 @@ eina_convert_init(void)
128 EINA_LOG_ERR("Could not register log domain: eina_convert"); 117 EINA_LOG_ERR("Could not register log domain: eina_convert");
129 return EINA_FALSE; 118 return EINA_FALSE;
130 } 119 }
131
132#define EEMR(n) n = eina_error_msg_static_register(n ## _STR)
133 EEMR(EINA_ERROR_CONVERT_0X_NOT_FOUND);
134 EEMR(EINA_ERROR_CONVERT_P_NOT_FOUND);
135 EEMR(EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH);
136#undef EEMR
137
138 return EINA_TRUE; 120 return EINA_TRUE;
139} 121}
140 122
@@ -239,7 +221,6 @@ eina_convert_atod(const char *src, int length, long long *m, long *e)
239 221
240 if (strncmp(str, "0x", 2)) 222 if (strncmp(str, "0x", 2))
241 { 223 {
242 eina_error_set(EINA_ERROR_CONVERT_0X_NOT_FOUND);
243 DBG("'0x' not found in '%s'", src); 224 DBG("'0x' not found in '%s'", src);
244 return EINA_FALSE; 225 return EINA_FALSE;
245 } 226 }
@@ -268,7 +249,6 @@ eina_convert_atod(const char *src, int length, long long *m, long *e)
268 /* Compute the exponent. */ 249 /* Compute the exponent. */
269 if (*str != 'p') 250 if (*str != 'p')
270 { 251 {
271 eina_error_set(EINA_ERROR_CONVERT_P_NOT_FOUND);
272 DBG("'p' not found in '%s'", src); 252 DBG("'p' not found in '%s'", src);
273 return EINA_FALSE; 253 return EINA_FALSE;
274 } 254 }
@@ -304,7 +284,6 @@ eina_convert_atod(const char *src, int length, long long *m, long *e)
304 return EINA_TRUE; 284 return EINA_TRUE;
305 285
306on_length_error: 286on_length_error:
307 eina_error_set(EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH);
308 return EINA_FALSE; 287 return EINA_FALSE;
309} 288}
310 289
diff --git a/src/lib/eina/eina_convert.h b/src/lib/eina/eina_convert.h
index 6493964a2f..fa463d9da4 100644
--- a/src/lib/eina/eina_convert.h
+++ b/src/lib/eina/eina_convert.h
@@ -158,23 +158,8 @@
158 * @{ 158 * @{
159 */ 159 */
160 160
161/**
162 * @var EINA_ERROR_CONVERT_P_NOT_FOUND
163 * Error identifier corresponding to string not containing 'p'.
164 */
165
166EAPI extern Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND; 161EAPI extern Eina_Error EINA_ERROR_CONVERT_P_NOT_FOUND;
167
168/**
169 * @var EINA_ERROR_CONVERT_0X_NOT_FOUND
170 * Error identifier corresponding to string not containing '0x'.
171 */
172EAPI extern Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND; 162EAPI extern Eina_Error EINA_ERROR_CONVERT_0X_NOT_FOUND;
173
174/**
175 * @var EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH
176 * Error identifier corresponding to length of the string being too small.
177 */
178EAPI extern Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH; 163EAPI extern Eina_Error EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH;
179 164
180/** 165/**
@@ -269,14 +254,7 @@ EAPI int eina_convert_dtoa(double d, char *des) EINA_ARG_NONNULL(2);
269 * The mantiss and exponent are stored in the buffers pointed 254 * The mantiss and exponent are stored in the buffers pointed
270 * respectively by @p m and @p e. 255 * respectively by @p m and @p e.
271 * 256 *
272 * If the string is invalid, the error is set to: 257 * If the string is invalid #EINA_FALSE is returned, otherwise #EINA_TRUE is
273 *
274 * @li #EINA_ERROR_CONVERT_0X_NOT_FOUND if no 0x is found,
275 * @li #EINA_ERROR_CONVERT_P_NOT_FOUND if no p is found,
276 * @li #EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH if @p length is not
277 * correct.
278 *
279 * In those cases, #EINA_FALSE is returned, otherwise #EINA_TRUE is
280 * returned. 258 * returned.
281 */ 259 */
282EAPI Eina_Bool eina_convert_atod(const char *src, 260EAPI Eina_Bool eina_convert_atod(const char *src,
@@ -346,14 +324,7 @@ EAPI int eina_convert_fptoa(Eina_F32p32 fp,
346 * The mantiss and exponent are stored in the buffers pointed 324 * The mantiss and exponent are stored in the buffers pointed
347 * respectively by @p m and @p e. 325 * respectively by @p m and @p e.
348 * 326 *
349 * If the string is invalid, the error is set to: 327 * If the string is invalid, #EINA_FALSE is returned,
350 *
351 * @li #EINA_ERROR_CONVERT_0X_NOT_FOUND if no 0x is found,
352 * @li #EINA_ERROR_CONVERT_P_NOT_FOUND if no p is found,
353 * @li #EINA_ERROR_CONVERT_OUTRUN_STRING_LENGTH if @p length is not
354 * correct.
355 *
356 * In those cases, or if @p fp is @c NULL, #EINA_FALSE is returned,
357 * otherwise @p fp is computed and #EINA_TRUE is returned. 328 * otherwise @p fp is computed and #EINA_TRUE is returned.
358 * 329 *
359 * @note The code uses eina_convert_atod() and do the correct bit 330 * @note The code uses eina_convert_atod() and do the correct bit
diff --git a/src/lib/eina/eina_counter.c b/src/lib/eina/eina_counter.c
index 63a183de42..084788eddb 100644
--- a/src/lib/eina/eina_counter.c
+++ b/src/lib/eina/eina_counter.c
@@ -28,7 +28,6 @@
28#include "eina_config.h" 28#include "eina_config.h"
29#include "eina_private.h" 29#include "eina_private.h"
30#include "eina_inlist.h" 30#include "eina_inlist.h"
31#include "eina_error.h"
32 31
33/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */ 32/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */
34#include "eina_safety_checks.h" 33#include "eina_safety_checks.h"
@@ -70,9 +69,6 @@ struct _Eina_Clock
70}; 69};
71 70
72#ifdef _WIN32 71#ifdef _WIN32
73static const char EINA_ERROR_COUNTER_WINDOWS_STR[] =
74 "Change your OS, you moron !";
75static int EINA_ERROR_COUNTER_WINDOWS = 0;
76LARGE_INTEGER _eina_counter_frequency; 72LARGE_INTEGER _eina_counter_frequency;
77#endif 73#endif
78 74
@@ -134,8 +130,7 @@ _eina_counter_asiprintf(char *base, int *position, const char *format, ...)
134 * eina_counter_init(). It is called by eina_init(). 130 * eina_counter_init(). It is called by eina_init().
135 * 131 *
136 * This function sets up the error module of Eina and only on Windows, 132 * This function sets up the error module of Eina and only on Windows,
137 * it initializes the high precision timer. It also registers, only on 133 * it initializes the high precision timer. It is also called
138 * Windows, the error #EINA_ERROR_COUNTER_WINDOWS. It is also called
139 * by eina_init(). It returns 0 on failure, otherwise it returns the 134 * by eina_init(). It returns 0 on failure, otherwise it returns the
140 * number of times it has already been called. 135 * number of times it has already been called.
141 * 136 *
@@ -145,14 +140,7 @@ Eina_Bool
145eina_counter_init(void) 140eina_counter_init(void)
146{ 141{
147#ifdef _WIN32 142#ifdef _WIN32
148 EINA_ERROR_COUNTER_WINDOWS = eina_error_msg_static_register( 143 if (!QueryPerformanceFrequency(&_eina_counter_frequency)) return EINA_FALSE;
149 EINA_ERROR_COUNTER_WINDOWS_STR);
150 if (!QueryPerformanceFrequency(&_eina_counter_frequency))
151 {
152 eina_error_set(EINA_ERROR_COUNTER_WINDOWS);
153 return EINA_FALSE;
154 }
155
156#endif /* _WIN2 */ 144#endif /* _WIN2 */
157 return EINA_TRUE; 145 return EINA_TRUE;
158} 146}
@@ -187,14 +175,8 @@ eina_counter_new(const char *name)
187 EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL); 175 EINA_SAFETY_ON_NULL_RETURN_VAL(name, NULL);
188 176
189 length = strlen(name) + 1; 177 length = strlen(name) + 1;
190
191 eina_error_set(0);
192 counter = calloc(1, sizeof (Eina_Counter) + length); 178 counter = calloc(1, sizeof (Eina_Counter) + length);
193 if (!counter) 179 if (!counter) return NULL;
194 {
195 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
196 return NULL;
197 }
198 180
199 counter->name = (char *)(counter + 1); 181 counter->name = (char *)(counter + 1);
200 memcpy((char *)counter->name, name, length); 182 memcpy((char *)counter->name, name, length);
@@ -225,16 +207,10 @@ eina_counter_start(Eina_Counter *counter)
225 Eina_Nano_Time tp; 207 Eina_Nano_Time tp;
226 208
227 EINA_SAFETY_ON_NULL_RETURN(counter); 209 EINA_SAFETY_ON_NULL_RETURN(counter);
228 if (_eina_time_get(&tp) != 0) 210 if (_eina_time_get(&tp) != 0) return;
229 return;
230 211
231 eina_error_set(0);
232 clk = calloc(1, sizeof (Eina_Clock)); 212 clk = calloc(1, sizeof (Eina_Clock));
233 if (!clk) 213 if (!clk) return;
234 {
235 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
236 return;
237 }
238 214
239 counter->clocks = eina_inlist_prepend(counter->clocks, EINA_INLIST_GET(clk)); 215 counter->clocks = eina_inlist_prepend(counter->clocks, EINA_INLIST_GET(clk));
240 216
diff --git a/src/lib/eina/eina_counter.h b/src/lib/eina/eina_counter.h
index 677d97e86b..5d54e9050a 100644
--- a/src/lib/eina/eina_counter.h
+++ b/src/lib/eina/eina_counter.h
@@ -129,8 +129,7 @@ typedef struct _Eina_Counter Eina_Counter;
129 * 129 *
130 * This function returns a new counter. It is characterized by @p 130 * This function returns a new counter. It is characterized by @p
131 * name. If @p name is @c NULL, the function returns @c NULL 131 * name. If @p name is @c NULL, the function returns @c NULL
132 * immediately. If memory allocation fails, @c NULL is returned and the 132 * immediately. If memory allocation fails, @c NULL is returned.
133 * error is set to #EINA_ERROR_OUT_OF_MEMORY.
134 * 133 *
135 * Whe the new counter is not needed anymore, use eina_counter_free() to 134 * Whe the new counter is not needed anymore, use eina_counter_free() to
136 * free the allocated memory. 135 * free the allocated memory.
@@ -160,7 +159,7 @@ EAPI void eina_counter_free(Eina_Counter *counter) EINA_ARG_NONNULL(1);
160 * 159 *
161 * This function adds the clock associated to @p counter in a list. If 160 * This function adds the clock associated to @p counter in a list. If
162 * the memory needed by that clock can not be allocated, the function 161 * the memory needed by that clock can not be allocated, the function
163 * returns and the error is set to #EINA_ERROR_OUT_OF_MEMORY. 162 * returns and nothing is done.
164 * 163 *
165 * To stop the timing, eina_counter_stop() must be called with the 164 * To stop the timing, eina_counter_stop() must be called with the
166 * same counter. 165 * same counter.
diff --git a/src/lib/eina/eina_hash.c b/src/lib/eina/eina_hash.c
index eec34f939f..87dd68679e 100644
--- a/src/lib/eina/eina_hash.c
+++ b/src/lib/eina/eina_hash.c
@@ -33,7 +33,6 @@
33#include "eina_config.h" 33#include "eina_config.h"
34#include "eina_private.h" 34#include "eina_private.h"
35#include "eina_rbtree.h" 35#include "eina_rbtree.h"
36#include "eina_error.h"
37 36
38/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */ 37/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */
39#include "eina_safety_checks.h" 38#include "eina_safety_checks.h"
@@ -219,7 +218,6 @@ eina_hash_add_alloc_by_hash(Eina_Hash *hash,
219{ 218{
220 Eina_Hash_Element *new_hash_element = NULL; 219 Eina_Hash_Element *new_hash_element = NULL;
221 Eina_Hash_Head *hash_head; 220 Eina_Hash_Head *hash_head;
222 Eina_Error error = 0;
223 int original_key; 221 int original_key;
224 int hash_num; 222 int hash_num;
225 223
@@ -228,8 +226,6 @@ eina_hash_add_alloc_by_hash(Eina_Hash *hash,
228 EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE); 226 EINA_SAFETY_ON_NULL_RETURN_VAL(data, EINA_FALSE);
229 EINA_MAGIC_CHECK_HASH(hash); 227 EINA_MAGIC_CHECK_HASH(hash);
230 228
231 error = EINA_ERROR_OUT_OF_MEMORY;
232
233 /* Apply eina mask to hash. */ 229 /* Apply eina mask to hash. */
234 original_key = key_hash; 230 original_key = key_hash;
235 hash_num = key_hash & hash->mask; 231 hash_num = key_hash & hash->mask;
@@ -299,7 +295,6 @@ eina_hash_add_alloc_by_hash(Eina_Hash *hash,
299 return EINA_TRUE; 295 return EINA_TRUE;
300 296
301on_error: 297on_error:
302 eina_error_set(error);
303 return EINA_FALSE; 298 return EINA_FALSE;
304} 299}
305 300
@@ -729,7 +724,6 @@ eina_hash_new(Eina_Key_Length key_length_cb,
729 /* FIXME: Use mempool. */ 724 /* FIXME: Use mempool. */
730 Eina_Hash *new; 725 Eina_Hash *new;
731 726
732 eina_error_set(0);
733 EINA_SAFETY_ON_NULL_RETURN_VAL(key_cmp_cb, NULL); 727 EINA_SAFETY_ON_NULL_RETURN_VAL(key_cmp_cb, NULL);
734 EINA_SAFETY_ON_NULL_RETURN_VAL(key_hash_cb, NULL); 728 EINA_SAFETY_ON_NULL_RETURN_VAL(key_hash_cb, NULL);
735 EINA_SAFETY_ON_TRUE_RETURN_VAL(buckets_power_size <= 2, NULL); 729 EINA_SAFETY_ON_TRUE_RETURN_VAL(buckets_power_size <= 2, NULL);
@@ -754,7 +748,6 @@ eina_hash_new(Eina_Key_Length key_length_cb,
754 return new; 748 return new;
755 749
756on_error: 750on_error:
757 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
758 return NULL; 751 return NULL;
759} 752}
760 753
@@ -1234,13 +1227,8 @@ eina_hash_iterator_data_new(const Eina_Hash *hash)
1234 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL); 1227 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
1235 EINA_MAGIC_CHECK_HASH(hash); 1228 EINA_MAGIC_CHECK_HASH(hash);
1236 1229
1237 eina_error_set(0);
1238 it = calloc(1, sizeof (Eina_Iterator_Hash)); 1230 it = calloc(1, sizeof (Eina_Iterator_Hash));
1239 if (!it) 1231 if (!it) return NULL;
1240 {
1241 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
1242 return NULL;
1243 }
1244 1232
1245 it->hash = hash; 1233 it->hash = hash;
1246 it->get_content = FUNC_ITERATOR_GET_CONTENT(_eina_hash_iterator_data_get_content); 1234 it->get_content = FUNC_ITERATOR_GET_CONTENT(_eina_hash_iterator_data_get_content);
@@ -1265,13 +1253,8 @@ eina_hash_iterator_key_new(const Eina_Hash *hash)
1265 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL); 1253 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
1266 EINA_MAGIC_CHECK_HASH(hash); 1254 EINA_MAGIC_CHECK_HASH(hash);
1267 1255
1268 eina_error_set(0);
1269 it = calloc(1, sizeof (Eina_Iterator_Hash)); 1256 it = calloc(1, sizeof (Eina_Iterator_Hash));
1270 if (!it) 1257 if (!it) return NULL;
1271 {
1272 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
1273 return NULL;
1274 }
1275 1258
1276 it->hash = hash; 1259 it->hash = hash;
1277 it->get_content = FUNC_ITERATOR_GET_CONTENT( 1260 it->get_content = FUNC_ITERATOR_GET_CONTENT(
@@ -1297,13 +1280,8 @@ eina_hash_iterator_tuple_new(const Eina_Hash *hash)
1297 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL); 1280 EINA_SAFETY_ON_NULL_RETURN_VAL(hash, NULL);
1298 EINA_MAGIC_CHECK_HASH(hash); 1281 EINA_MAGIC_CHECK_HASH(hash);
1299 1282
1300 eina_error_set(0);
1301 it = calloc(1, sizeof (Eina_Iterator_Hash)); 1283 it = calloc(1, sizeof (Eina_Iterator_Hash));
1302 if (!it) 1284 if (!it) return NULL;
1303 {
1304 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
1305 return NULL;
1306 }
1307 1285
1308 it->hash = hash; 1286 it->hash = hash;
1309 it->get_content = FUNC_ITERATOR_GET_CONTENT( 1287 it->get_content = FUNC_ITERATOR_GET_CONTENT(
diff --git a/src/lib/eina/eina_hash.h b/src/lib/eina/eina_hash.h
index a127dda7c2..4f4aac9a50 100644
--- a/src/lib/eina/eina_hash.h
+++ b/src/lib/eina/eina_hash.h
@@ -330,8 +330,8 @@ typedef Eina_Bool (*Eina_Hash_Foreach)(const Eina_Hash *hash, const void *key
330 * @return The new hash table. 330 * @return The new hash table.
331 * 331 *
332 * This function creates a new hash table using user-defined callbacks 332 * This function creates a new hash table using user-defined callbacks
333 * to manage the hash table. On failure, @c NULL is returned 333 * to manage the hash table. On failure, @c NULL is returned.
334 * and #EINA_ERROR_OUT_OF_MEMORY is set. If @p key_cmp_cb or @p key_hash_cb 334 * If @p key_cmp_cb or @p key_hash_cb
335 * are @c NULL, @c NULL is returned. If @p buckets_power_size is 335 * are @c NULL, @c NULL is returned. If @p buckets_power_size is
336 * smaller or equal than 2, or if it is greater or equal than 17, 336 * smaller or equal than 2, or if it is greater or equal than 17,
337 * @c NULL is returned. 337 * @c NULL is returned.
@@ -518,9 +518,7 @@ EAPI Eina_Hash *eina_hash_stringshared_new(Eina_Free_Cb data_free_cb);
518 * values as unique. Failure to use sufficient uniqueness will 518 * values as unique. Failure to use sufficient uniqueness will
519 * result in unexpected results when inserting data pointers accessed 519 * result in unexpected results when inserting data pointers accessed
520 * with eina_hash_find(), and removed with eina_hash_del(). Key 520 * with eina_hash_find(), and removed with eina_hash_del(). Key
521 * strings are case sensitive. If an error occurs, eina_error_get() 521 * strings are case sensitive. This function returns #EINA_FALSE if an error
522 * should be used to determine if an allocation error occurred during
523 * this function. This function returns #EINA_FALSE if an error
524 * occurred, #EINA_TRUE otherwise. 522 * occurred, #EINA_TRUE otherwise.
525 */ 523 */
526EAPI Eina_Bool eina_hash_add(Eina_Hash *hash, 524EAPI Eina_Bool eina_hash_add(Eina_Hash *hash,
@@ -548,9 +546,7 @@ EAPI Eina_Bool eina_hash_add(Eina_Hash *hash,
548 * with eina_hash_find(), and removed with eina_hash_del(). This 546 * with eina_hash_find(), and removed with eina_hash_del(). This
549 * function does not make a copy of @p key, so it must be a string 547 * function does not make a copy of @p key, so it must be a string
550 * constant or stored elsewhere ( in the object being added). Key 548 * constant or stored elsewhere ( in the object being added). Key
551 * strings are case sensitive. If an error occurs, eina_error_get() 549 * strings are case sensitive. This function returns #EINA_FALSE if an error
552 * should be used to determine if an allocation error occurred during
553 * this function. This function returns #EINA_FALSE if an error
554 * occurred, #EINA_TRUE otherwise. 550 * occurred, #EINA_TRUE otherwise.
555 */ 551 */
556EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash, 552EAPI Eina_Bool eina_hash_direct_add(Eina_Hash *hash,
@@ -630,8 +626,7 @@ EAPI void *eina_hash_modify(Eina_Hash *hash,
630 * This function modifies the data of @p key with @p data in @p 626 * This function modifies the data of @p key with @p data in @p
631 * hash. If no entry is found, @p data is added to @p hash with the 627 * hash. If no entry is found, @p data is added to @p hash with the
632 * key @p key. On success this function returns the old entry, 628 * key @p key. On success this function returns the old entry,
633 * otherwise it returns @c NULL. To check for errors, use 629 * otherwise it returns @c NULL.
634 * eina_error_get().
635 */ 630 */
636EAPI void *eina_hash_set(Eina_Hash *hash, 631EAPI void *eina_hash_set(Eina_Hash *hash,
637 const void *key, 632 const void *key,
@@ -722,9 +717,7 @@ EAPI int eina_hash_population(const Eina_Hash *hash) EINA_ARG_NONNULL(1);
722 * not forget to count '\\0' for string when setting the value of 717 * not forget to count '\\0' for string when setting the value of
723 * @p key_length. @p key_hash is expected to always match 718 * @p key_length. @p key_hash is expected to always match
724 * @p key. Otherwise, one cannot be sure to find it again with @ref 719 * @p key. Otherwise, one cannot be sure to find it again with @ref
725 * eina_hash_find_by_hash. Key strings are case sensitive. If an error 720 * eina_hash_find_by_hash. Key strings are case sensitive. This function
726 * occurs, eina_error_get() should be used to determine if an
727 * allocation error occurred during this function. This function
728 * returns #EINA_FALSE if an error occurred, #EINA_TRUE otherwise. 721 * returns #EINA_FALSE if an error occurred, #EINA_TRUE otherwise.
729 * 722 *
730 * @see eina_hash_add() 723 * @see eina_hash_add()
@@ -758,9 +751,7 @@ EAPI Eina_Bool eina_hash_add_by_hash(Eina_Hash *hash,
758 * not forget to count '\\0' for string when setting the value of 751 * not forget to count '\\0' for string when setting the value of
759 * @p key_length. @p key_hash is expected to always match 752 * @p key_length. @p key_hash is expected to always match
760 * @p key. Otherwise, one cannot be sure to find it again with @ref 753 * @p key. Otherwise, one cannot be sure to find it again with @ref
761 * eina_hash_find_by_hash. Key strings are case sensitive. If an error 754 * eina_hash_find_by_hash. Key strings are case sensitive. This function
762 * occurs, eina_error_get() should be used to determine if an
763 * allocation error occurred during this function. This function
764 * returns #EINA_FALSE if an error occurred, #EINA_TRUE otherwise. 755 * returns #EINA_FALSE if an error occurred, #EINA_TRUE otherwise.
765 * 756 *
766 * @see eina_hash_direct_add() 757 * @see eina_hash_direct_add()
@@ -934,9 +925,8 @@ EAPI void *eina_hash_modify_by_hash(Eina_Hash *hash,
934 * valid iterator that will always return false on 925 * valid iterator that will always return false on
935 * eina_iterator_next(), thus keeping API sane. 926 * eina_iterator_next(), thus keeping API sane.
936 * 927 *
937 * If the memory can not be allocated, NULL is returned 928 * If the memory can not be allocated, NULL is returned.
938 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid iterator is 929 * Otherwise, a valid iterator is returned.
939 * returned.
940 * 930 *
941 * @warning if the hash structure changes then the iterator becomes 931 * @warning if the hash structure changes then the iterator becomes
942 * invalid! That is, if you add or remove items this iterator 932 * invalid! That is, if you add or remove items this iterator
@@ -955,9 +945,8 @@ EAPI Eina_Iterator *eina_hash_iterator_key_new(const Eina_Hash *hash) EINA_MALLO
955 * valid iterator that will always return false on 945 * valid iterator that will always return false on
956 * eina_iterator_next(), thus keeping API sane. 946 * eina_iterator_next(), thus keeping API sane.
957 * 947 *
958 * If the memory can not be allocated, @c NULL is returned 948 * If the memory can not be allocated, @c NULL is returned.
959 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid iterator is 949 * Otherwise, a valid iterator is returned.
960 * returned.
961 * 950 *
962 * @warning if the hash structure changes then the iterator becomes 951 * @warning if the hash structure changes then the iterator becomes
963 * invalid. That is, if you add or remove items this iterator behavior 952 * invalid. That is, if you add or remove items this iterator behavior
@@ -976,9 +965,8 @@ EAPI Eina_Iterator *eina_hash_iterator_data_new(const Eina_Hash *hash) EINA_MALL
976 * valid iterator that will always return false on 965 * valid iterator that will always return false on
977 * eina_iterator_next(), thus keeping API sane. 966 * eina_iterator_next(), thus keeping API sane.
978 * 967 *
979 * If the memory can not be allocated, @c NULL is returned 968 * If the memory can not be allocated, @c NULL is returned.
980 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid iterator is 969 * Otherwise, a valid iterator is returned.
981 * returned.
982 * 970 *
983 * @note iterator data will provide values as Eina_Hash_Tuple that should not 971 * @note iterator data will provide values as Eina_Hash_Tuple that should not
984 * be modified! 972 * be modified!
diff --git a/src/lib/eina/eina_inarray.c b/src/lib/eina/eina_inarray.c
index 1e962e4961..e674a20f3c 100644
--- a/src/lib/eina/eina_inarray.c
+++ b/src/lib/eina/eina_inarray.c
@@ -25,7 +25,6 @@
25 25
26#include "eina_config.h" 26#include "eina_config.h"
27#include "eina_private.h" 27#include "eina_private.h"
28#include "eina_error.h"
29#include "eina_log.h" 28#include "eina_log.h"
30 29
31/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */ 30/* undefs EINA_ARG_NONULL() so NULL checks are not compiled out! */
@@ -82,7 +81,6 @@ static int _eina_inarray_log_dom = -1;
82 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY); \ 81 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY); \
83 return __VA_ARGS__; \ 82 return __VA_ARGS__; \
84 } \ 83 } \
85 eina_error_set(0); \
86 } \ 84 } \
87 while(0) 85 while(0)
88 86
@@ -94,7 +92,6 @@ static int _eina_inarray_log_dom = -1;
94 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY_ITERATOR); \ 92 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY_ITERATOR); \
95 return __VA_ARGS__; \ 93 return __VA_ARGS__; \
96 } \ 94 } \
97 eina_error_set(0); \
98 } \ 95 } \
99 while(0) 96 while(0)
100 97
@@ -106,7 +103,6 @@ static int _eina_inarray_log_dom = -1;
106 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY_ACCESSOR); \ 103 EINA_MAGIC_FAIL(d, EINA_MAGIC_INARRAY_ACCESSOR); \
107 return __VA_ARGS__; \ 104 return __VA_ARGS__; \
108 } \ 105 } \
109 eina_error_set(0); \
110 } \ 106 } \
111 while(0) 107 while(0)
112 108
@@ -137,11 +133,7 @@ _eina_inarray_resize(Eina_Inarray *array, unsigned int new_size)
137 new_max = ((new_size / array->step) + 1) * array->step; 133 new_max = ((new_size / array->step) + 1) * array->step;
138 134
139 tmp = realloc(array->members, new_max * array->member_size); 135 tmp = realloc(array->members, new_max * array->member_size);
140 if ((!tmp) && (new_max > 0)) 136 if ((!tmp) && (new_max > 0)) return EINA_FALSE;
141 {
142 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
143 return EINA_FALSE;
144 }
145 137
146 array->members = tmp; 138 array->members = tmp;
147 array->max = new_max; 139 array->max = new_max;
@@ -342,12 +334,7 @@ eina_inarray_new(unsigned int member_size, unsigned int step)
342 EINA_SAFETY_ON_TRUE_RETURN_VAL(member_size == 0, NULL); 334 EINA_SAFETY_ON_TRUE_RETURN_VAL(member_size == 0, NULL);
343 335
344 ret = malloc(sizeof(*ret)); 336 ret = malloc(sizeof(*ret));
345 if (!ret) 337 if (!ret) return NULL;
346 {
347 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
348 return NULL;
349 }
350 eina_error_set(0);
351 _eina_inarray_setup(ret, member_size, step); 338 _eina_inarray_setup(ret, member_size, step);
352 return ret; 339 return ret;
353} 340}
@@ -730,13 +717,8 @@ eina_inarray_iterator_new(const Eina_Inarray *array)
730 717
731 EINA_MAGIC_CHECK_INARRAY(array, NULL); 718 EINA_MAGIC_CHECK_INARRAY(array, NULL);
732 719
733 eina_error_set(0);
734 it = calloc(1, sizeof(Eina_Iterator_Inarray)); 720 it = calloc(1, sizeof(Eina_Iterator_Inarray));
735 if (!it) 721 if (!it) return NULL;
736 {
737 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
738 return NULL;
739 }
740 722
741 EINA_MAGIC_SET(it, EINA_MAGIC_INARRAY_ITERATOR); 723 EINA_MAGIC_SET(it, EINA_MAGIC_INARRAY_ITERATOR);
742 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); 724 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR);
@@ -759,13 +741,8 @@ eina_inarray_iterator_reversed_new(const Eina_Inarray *array)
759 741
760 EINA_MAGIC_CHECK_INARRAY(array, NULL); 742 EINA_MAGIC_CHECK_INARRAY(array, NULL);
761 743
762 eina_error_set(0);
763 it = calloc(1, sizeof(Eina_Iterator_Inarray)); 744 it = calloc(1, sizeof(Eina_Iterator_Inarray));
764 if (!it) 745 if (!it) return NULL;
765 {
766 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
767 return NULL;
768 }
769 746
770 EINA_MAGIC_SET(it, EINA_MAGIC_INARRAY_ITERATOR); 747 EINA_MAGIC_SET(it, EINA_MAGIC_INARRAY_ITERATOR);
771 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR); 748 EINA_MAGIC_SET(&it->iterator, EINA_MAGIC_ITERATOR);
@@ -789,13 +766,8 @@ eina_inarray_accessor_new(const Eina_Inarray *array)
789 766
790 EINA_MAGIC_CHECK_INARRAY(array, NULL); 767 EINA_MAGIC_CHECK_INARRAY(array, NULL);
791 768
792 eina_error_set(0);
793 ac = calloc(1, sizeof(Eina_Accessor_Inarray)); 769 ac = calloc(1, sizeof(Eina_Accessor_Inarray));
794 if (!ac) 770 if (!ac) return NULL;
795 {
796 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
797 return NULL;
798 }
799 771
800 EINA_MAGIC_SET(ac, EINA_MAGIC_INARRAY_ACCESSOR); 772 EINA_MAGIC_SET(ac, EINA_MAGIC_INARRAY_ACCESSOR);
801 EINA_MAGIC_SET(&ac->accessor, EINA_MAGIC_ACCESSOR); 773 EINA_MAGIC_SET(&ac->accessor, EINA_MAGIC_ACCESSOR);
diff --git a/src/lib/eina/eina_inarray.h b/src/lib/eina/eina_inarray.h
index ed1a84b39f..9d7f9f6d8c 100644
--- a/src/lib/eina/eina_inarray.h
+++ b/src/lib/eina/eina_inarray.h
@@ -224,8 +224,8 @@ struct _Eina_Inarray
224 * 224 *
225 * If the @a step is 0, then a safe default is chosen. 225 * If the @a step is 0, then a safe default is chosen.
226 * 226 *
227 * On failure, @c NULL is returned and #EINA_ERROR_OUT_OF_MEMORY is 227 * On failure, @c NULL is returned. If @a member_size is zero, then @c NULL
228 * set. If @a member_size is zero, then @c NULL is returned. 228 * is returned.
229 * 229 *
230 * @see eina_inarray_free() 230 * @see eina_inarray_free()
231 * 231 *
@@ -618,9 +618,8 @@ EAPI unsigned int eina_inarray_count(const Eina_Inarray *array) EINA_ARG_NONNULL
618 * This function returns a newly allocated iterator associated to 618 * This function returns a newly allocated iterator associated to
619 * @p array. 619 * @p array.
620 * 620 *
621 * If the memory can not be allocated, @c NULL is returned 621 * If the memory can not be allocated, @c NULL is returned.
622 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid iterator is 622 * Otherwise, a valid iterator is returned.
623 * returned.
624 * 623 *
625 * @warning if the array structure changes then the iterator becomes 624 * @warning if the array structure changes then the iterator becomes
626 * invalid! That is, if you add or remove members this 625 * invalid! That is, if you add or remove members this
@@ -641,8 +640,7 @@ EAPI Eina_Iterator *eina_inarray_iterator_new(const Eina_Inarray *array) EINA_MA
641 * Unlike eina_inarray_iterator_new(), this will walk the array backwards. 640 * Unlike eina_inarray_iterator_new(), this will walk the array backwards.
642 * 641 *
643 * If the memory can not be allocated, @c NULL is returned 642 * If the memory can not be allocated, @c NULL is returned
644 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid iterator is 643 * Otherwise, a valid iterator is returned.
645 * returned.
646 * 644 *
647 * @warning if the array structure changes then the iterator becomes 645 * @warning if the array structure changes then the iterator becomes
648 * invalid! That is, if you add or remove nodes this iterator 646 * invalid! That is, if you add or remove nodes this iterator
@@ -660,9 +658,8 @@ EAPI Eina_Iterator *eina_inarray_iterator_reversed_new(const Eina_Inarray *array
660 * This function returns a newly allocated accessor associated to 658 * This function returns a newly allocated accessor associated to
661 * @p array. 659 * @p array.
662 * 660 *
663 * If the memory can not be allocated, @c NULL is returned 661 * If the memory can not be allocated, @c NULL is returned.
664 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, a valid accessor is 662 * Otherwise, a valid accessor is returned.
665 * returned.
666 * 663 *
667 * @since 1.2 664 * @since 1.2
668 */ 665 */
diff --git a/src/lib/eina/eina_inline_array.x b/src/lib/eina/eina_inline_array.x
index 179d43c4eb..45d7189316 100644
--- a/src/lib/eina/eina_inline_array.x
+++ b/src/lib/eina/eina_inline_array.x
@@ -52,8 +52,7 @@ EAPI Eina_Bool eina_array_grow(Eina_Array *array);
52 * reasons, there is no check of @p array. If it is @c NULL or 52 * reasons, there is no check of @p array. If it is @c NULL or
53 * invalid, the program may crash. If @p data is @c NULL, or if an 53 * invalid, the program may crash. If @p data is @c NULL, or if an
54 * allocation is necessary and fails, #EINA_FALSE is returned 54 * allocation is necessary and fails, #EINA_FALSE is returned
55 * and #EINA_ERROR_OUT_OF_MEMORY is set. Otherwise, #EINA_TRUE is 55 * Otherwise, #EINA_TRUE is returned.
56 * returned.
57 */ 56 */
58 57
59static inline Eina_Bool 58static inline Eina_Bool
diff --git a/src/lib/eina/eina_inline_value.x b/src/lib/eina/eina_inline_value.x
index 9ed7620c19..1021dca11d 100644
--- a/src/lib/eina/eina_inline_value.x
+++ b/src/lib/eina/eina_inline_value.x
@@ -64,8 +64,6 @@ EAPI extern const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_END;
64 { \ 64 { \
65 if (type->method) \ 65 if (type->method) \
66 type->method(type, ##__VA_ARGS__); \ 66 type->method(type, ##__VA_ARGS__); \
67 else \
68 eina_error_set(no_method_err); \
69 } \ 67 } \
70 while (0) 68 while (0)
71 69
@@ -74,7 +72,6 @@ EAPI extern const Eina_Value_Type *_EINA_VALUE_TYPE_BASICS_END;
74 { \ 72 { \
75 if (type->method) \ 73 if (type->method) \
76 return type->method(type, ##__VA_ARGS__); \ 74 return type->method(type, ##__VA_ARGS__); \
77 eina_error_set(no_method_err); \
78 return def_ret; \ 75 return def_ret; \
79 } \ 76 } \
80 while (0) 77 while (0)
@@ -126,12 +123,11 @@ eina_value_setup(Eina_Value *value, const Eina_Value_Type *type)
126 123
127 if (EINA_VALUE_TYPE_DEFAULT(type)) 124 if (EINA_VALUE_TYPE_DEFAULT(type))
128 { 125 {
129 eina_error_set(0);
130 return EINA_TRUE; 126 return EINA_TRUE;
131 } 127 }
132 128
133 EINA_VALUE_TYPE_DISPATCH_RETURN(type, setup, 129 EINA_VALUE_TYPE_DISPATCH_RETURN(type, setup,
134 EINA_ERROR_VALUE_FAILED, EINA_FALSE, mem); 130 0, EINA_FALSE, mem);
135} 131}
136 132
137static inline void 133static inline void
@@ -157,11 +153,10 @@ eina_value_flush(Eina_Value *value)
157 } 153 }
158 else if (type->value_size > 8) 154 else if (type->value_size > 8)
159 eina_value_inner_free(type->value_size, mem); 155 eina_value_inner_free(type->value_size, mem);
160 eina_error_set(0);
161 return; 156 return;
162 } 157 }
163 158
164 EINA_VALUE_TYPE_DISPATCH(type, flush, EINA_ERROR_VALUE_FAILED, mem); 159 EINA_VALUE_TYPE_DISPATCH(type, flush, 0, mem);
165 if (type->value_size > 8) 160 if (type->value_size > 8)
166 eina_value_inner_free(type->value_size, mem); 161 eina_value_inner_free(type->value_size, mem);
167 value->type = NULL; 162 value->type = NULL;
@@ -177,7 +172,6 @@ eina_value_compare(const Eina_Value *a, const Eina_Value *b)
177 EINA_SAFETY_ON_NULL_RETURN_VAL(b, -1); 172 EINA_SAFETY_ON_NULL_RETURN_VAL(b, -1);
178 EINA_SAFETY_ON_FALSE_RETURN_VAL(a->type == b->type, -1); 173 EINA_SAFETY_ON_FALSE_RETURN_VAL(a->type == b->type, -1);
179 174
180 eina_error_set(0);
181 type = a->type; 175 type = a->type;
182 pa = eina_value_memory_get(a); 176 pa = eina_value_memory_get(a);
183 pb = eina_value_memory_get(b); 177 pb = eina_value_memory_get(b);
@@ -306,7 +300,7 @@ eina_value_compare(const Eina_Value *a, const Eina_Value *b)
306 } 300 }
307#endif 301#endif
308 302
309 EINA_VALUE_TYPE_DISPATCH_RETURN(type, compare, EINA_ERROR_VALUE_FAILED, 303 EINA_VALUE_TYPE_DISPATCH_RETURN(type, compare, 0,
310 EINA_FALSE, pa, pb); 304 EINA_FALSE, pa, pb);
311} 305}
312 306
@@ -342,7 +336,6 @@ eina_value_vset(Eina_Value *value, va_list args)
342 336
343 type = value->type; 337 type = value->type;
344 mem = eina_value_memory_get(value); 338 mem = eina_value_memory_get(value);
345 eina_error_set(0);
346#ifndef EINA_VALUE_NO_OPTIMIZE 339#ifndef EINA_VALUE_NO_OPTIMIZE
347 if (type == EINA_VALUE_TYPE_UCHAR) 340 if (type == EINA_VALUE_TYPE_UCHAR)
348 { 341 {
@@ -433,11 +426,7 @@ eina_value_vset(Eina_Value *value, va_list args)
433 else 426 else
434 { 427 {
435 char *tmp = strdup(str); 428 char *tmp = strdup(str);
436 if (!tmp) 429 if (!tmp) return EINA_FALSE;
437 {
438 eina_error_set(EINA_ERROR_OUT_OF_MEMORY);
439 return EINA_FALSE;
440 }
441 free(value->value.ptr); 430 free(value->value.ptr);
442 value->value.ptr = tmp; 431 value->value.ptr = tmp;
443 } 432 }
@@ -445,7 +434,7 @@ eina_value_vset(Eina_Value *value, va_list args)
445 } 434 }
446#endif 435#endif
447 436
448 EINA_VALUE_TYPE_DISPATCH_RETURN(value, vset, EINA_ERROR_VALUE_FAILED, 437 EINA_VALUE_TYPE_DISPATCH_RETURN(value, vset, 0,
449 EINA_FALSE, mem, args); 438 EINA_FALSE, mem, args);
450} 439}
451 440
@@ -461,14 +450,13 @@ eina_value_vget(const Eina_Value *value, va_list args)
461