lib/ecore/ecore_timer.eo.c \
lib/ecore/ecore_timer.eo.h \
lib/ecore/ecore_timer.eo.legacy.h \
- lib/ecore/ecore_poll.eo.c \
- lib/ecore/ecore_poll.eo.h \
- lib/ecore/ecore_poll.eo.legacy.h \
+ lib/ecore/ecore_poller.eo.c \
+ lib/ecore/ecore_poller.eo.h \
+ lib/ecore/ecore_poller.eo.legacy.h \
lib/ecore/ecore_job.eo.c \
lib/ecore/ecore_job.eo.h \
lib/ecore/ecore_job.eo.legacy.h \
ecoreeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@
ecoreeolianfiles_DATA = \
lib/ecore/ecore_timer.eo \
- lib/ecore/ecore_poll.eo \
+ lib/ecore/ecore_poller.eo \
lib/ecore/ecore_job.eo \
lib/ecore/ecore_idler.eo \
lib/ecore/ecore_idle_enterer.eo \
nodist_installed_ecoremainheaders_DATA = \
lib/ecore/ecore_timer.eo.h \
- lib/ecore/ecore_poll.eo.h \
+ lib/ecore/ecore_poller.eo.h \
lib/ecore/ecore_job.eo.h \
lib/ecore/ecore_idler.eo.h \
lib/ecore/ecore_idle_enterer.eo.h \
lib/ecore/ecore_animator.eo.h \
lib/ecore/ecore_parent.eo.h \
lib/ecore/ecore_timer.eo.legacy.h \
- lib/ecore/ecore_poll.eo.legacy.h \
+ lib/ecore/ecore_poller.eo.legacy.h \
lib/ecore/ecore_job.eo.legacy.h \
lib/ecore/ecore_idler.eo.legacy.h \
lib/ecore/ecore_animator.eo.legacy.h
lib/ecore/ecore_job.c \
lib/ecore/ecore_main.c \
lib/ecore/ecore_pipe.c \
-lib/ecore/ecore_poll.c \
+lib/ecore/ecore_poller.c \
lib/ecore/ecore_time.c \
lib/ecore/ecore_timer.c \
lib/ecore/ecore_thread.c \
dist_installed_ecorecxxmainheaders_DATA = bindings/ecore_cxx/Ecore.hh
generated_ecore_cxx_bindings = \
-lib/ecore/ecore_poll.eo.hh \
+lib/ecore/ecore_poller.eo.hh \
lib/ecore/ecore_job.eo.hh \
lib/ecore/ecore_idler.eo.hh \
lib/ecore/ecore_idle_exiter.eo.hh \
return file;
}
+static Eina_Bool
+compare_class_file(const char *fn_ext, const char *fn_noext)
+{
+ int fnlen = strlen(fn_ext);
+ int cnlen = strlen(fn_noext);
+ if (cnlen != (fnlen - 3))
+ return EINA_FALSE;
+ return !strncmp(fn_noext, fn_ext, cnlen);
+}
+
static void
redef_error(Eo_Lexer *ls, Eolian_Type_Type type, Eolian_Type *old)
{
nm = eina_strbuf_string_get(buf);
bnm = get_filename(ls);
fnm = database_class_to_filename(nm);
- if (strncmp(bnm, fnm, strlen(bnm) - 3))
+ if (!compare_class_file(bnm, fnm))
{
const char *fname = eina_hash_find(_filenames, fnm);
eina_stringshare_del(bnm);
parse_name(ls, buf);
bnm = get_filename(ls);
fnm = database_class_to_filename(eina_strbuf_string_get(buf));
- same = !strncmp(bnm, fnm, strlen(bnm) - 3);
+ same = compare_class_file(bnm, fnm);
eina_stringshare_del(bnm);
free(fnm);
if (!same)