eolian: Added eolian_function_is_constructor().
authorSavio Sena <savio@expertisesolutions.com.br>
Fri, 12 Sep 2014 19:51:37 +0000 (16:51 -0300)
committerSavio Sena <savio@expertisesolutions.com.br>
Fri, 12 Sep 2014 19:51:37 +0000 (16:51 -0300)
commit2d39b359fb98220b540f4f2eb85e75e60d5f60c3
tree603a8fd9d603e95dd784b50edcce35d418c4a83a
parent6500c996699e1a4ab768768ffa821ace6c3c392c
eolian: Added eolian_function_is_constructor().

This patch adds a list of strings called 'ctor_of' to
_Eolian_Function. This list will contain all classes in which this
function is a constructing function.

ctor_of is filled in two moments:

* When filling the constructors of a class, class->full_name is inserted
  in the 'ctor_of' of each constructor's function.

* When filling the implements of a class, if the function is a
  constructor of its superclass it also becomes a constructor of the
  current class, so class->full_name is also inserted in the 'ctor_of'
  of each implement's function.

eolian_function_is_constructor gets a func and klass arguments. It goes
through ctor_of of func and returns EINA_TRUE if klass->full_name is
found, otherwise it returns EINA_FALSE.
src/lib/eolian/Eolian.h
src/lib/eolian/database_function.c
src/lib/eolian/database_function_api.c
src/lib/eolian/database_implement.c
src/lib/eolian/eolian_database.c
src/lib/eolian/eolian_database.h