summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2015-02-11 17:03:08 +0200
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2015-02-12 15:58:50 +0200
commit024c9dc858380431c956998df117f5efcbebb38e (patch)
tree3ba0acd2db6689ea49081534198db8be41dbac55 /src
parent2349e1ac41345ba73c2a2a1a0d8435114ba613ef (diff)
Eolian: improve the class searching.
If the class is not found, we retrieve its full path if it has already been scanned. This patch is needed by Espion so Eolian can find the full path of a class by its name. Espion has no way to determine it by itself.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eolian/eolian_database.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eolian/eolian_database.c b/src/lib/eolian/eolian_database.c
index f1f6067a98..83beb0dc4d 100644
--- a/src/lib/eolian/eolian_database.c
+++ b/src/lib/eolian/eolian_database.c
@@ -228,7 +228,9 @@ eolian_eo_file_parse(const char *filepath)
228 Eina_Bool failed_dep = EINA_FALSE; 228 Eina_Bool failed_dep = EINA_FALSE;
229 if (!class) 229 if (!class)
230 { 230 {
231 if (!eo_parser_database_fill(filepath, EINA_FALSE)) 231 const char *full_filepath = eina_hash_find(_filenames, bfilename);
232 if (!full_filepath) full_filepath = filepath;
233 if (!eo_parser_database_fill(full_filepath, EINA_FALSE))
232 { 234 {
233 free(bfiledup); 235 free(bfiledup);
234 goto error; 236 goto error;