summaryrefslogtreecommitdiff
path: root/src/bin/e_path.c
diff options
context:
space:
mode:
authorrbdpngn <rbdpngn>2005-01-22 06:58:34 +0000
committerrbdpngn <rbdpngn@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-01-22 06:58:34 +0000
commitb6c300dd69ba91369644a11dedb2416b974b3c7a (patch)
tree3b1379aef3bb5b100f99b87323989e06e0f16688 /src/bin/e_path.c
parentb904a0bb2c87a73d1f4d517b09953ac7f22fd02c (diff)
Add type checking for the various E objects.
SVN revision: 13053
Diffstat (limited to '')
-rw-r--r--src/bin/e_path.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/e_path.c b/src/bin/e_path.c
index e83aafd..20ac785 100644
--- a/src/bin/e_path.c
+++ b/src/bin/e_path.c
@@ -14,7 +14,7 @@ e_path_new(void)
14{ 14{
15 E_Path *ep; 15 E_Path *ep;
16 16
17 ep = E_OBJECT_ALLOC(E_Path, _e_path_free); 17 ep = E_OBJECT_ALLOC(E_Path, E_PATH_TYPE, _e_path_free);
18 return ep; 18 return ep;
19} 19}
20 20
@@ -22,6 +22,7 @@ void
22e_path_path_append(E_Path *ep, const char *path) 22e_path_path_append(E_Path *ep, const char *path)
23{ 23{
24 E_OBJECT_CHECK(ep); 24 E_OBJECT_CHECK(ep);
25 E_OBJECT_TYPE_CHECK(ep, E_PATH_TYPE);
25 if (!path) return; 26 if (!path) return;
26 if (path[0] == '~') 27 if (path[0] == '~')
27 { 28 {
@@ -53,6 +54,7 @@ void
53e_path_path_prepend(E_Path *ep, const char *path) 54e_path_path_prepend(E_Path *ep, const char *path)
54{ 55{
55 E_OBJECT_CHECK(ep); 56 E_OBJECT_CHECK(ep);
57 E_OBJECT_TYPE_CHECK(ep, E_PATH_TYPE);
56 if (!path) return; 58 if (!path) return;
57 if (path[0] == '~') 59 if (path[0] == '~')
58 { 60 {
@@ -86,6 +88,7 @@ e_path_path_remove(E_Path *ep, const char *path)
86 Evas_List *l; 88 Evas_List *l;
87 89
88 E_OBJECT_CHECK(ep); 90 E_OBJECT_CHECK(ep);
91 E_OBJECT_TYPE_CHECK(ep, E_PATH_TYPE);
89 if (!path) return; 92 if (!path) return;
90 if (path[0] == '~') 93 if (path[0] == '~')
91 { 94 {
@@ -151,6 +154,7 @@ e_path_find(E_Path *ep, const char *file)
151 char *str; 154 char *str;
152 155
153 E_OBJECT_CHECK_RETURN(ep, NULL); 156 E_OBJECT_CHECK_RETURN(ep, NULL);
157 E_OBJECT_TYPE_CHECK_RETURN(ep, E_PATH_TYPE, NULL);
154 if (!file) return NULL; 158 if (!file) return NULL;
155 _e_path_buf[0] = 0; 159 _e_path_buf[0] = 0;
156 str = evas_hash_find(ep->hash, file); 160 str = evas_hash_find(ep->hash, file);
@@ -189,6 +193,7 @@ e_path_evas_append(E_Path *ep, Evas *evas)
189 Evas_List *l; 193 Evas_List *l;
190 194
191 E_OBJECT_CHECK(ep); 195 E_OBJECT_CHECK(ep);
196 E_OBJECT_TYPE_CHECK(ep, E_PATH_TYPE);
192 if (!evas) return; 197 if (!evas) return;
193 for (l = ep->dir_list; l; l = l->next) 198 for (l = ep->dir_list; l; l = l->next)
194 { 199 {