summaryrefslogtreecommitdiff
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-11 18:40:35 +0200
commit6751171d2689b2c862426b9fe56f8b7a0478d63a (patch)
tree50a4d55ecfe125c2007c2eb8145e5c37707b905f
parenta3afb16f6f5ea5f0375aeae4a1b4961672c40645 (diff)
downloadefl-devs/jackdanielz/espion_support.tar.gz
Eolian: improve the class searching.devs/jackdanielz/espion_support
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.
-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)
Eina_Bool failed_dep = EINA_FALSE;
if (!class)
{
- if (!eo_parser_database_fill(filepath, EINA_FALSE))
+ const char *full_filepath = eina_hash_find(_filenames, bfilename);
+ if (!full_filepath) full_filepath = filepath;
+ if (!eo_parser_database_fill(full_filepath, EINA_FALSE))
{
free(bfiledup);
goto error;