summaryrefslogtreecommitdiff
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-18 15:04:10 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-21 09:26:05 +0100
commit423cfb5f61330bca8e53e9162aac138499b90e19 (patch)
tree45f68854df44ecfa1c338335ee10cc843767adf2 /src/bin/eolian
parent1888448dd4054dec8a99c5b37f2a1ef396619262 (diff)
eolian/generator: support for legacy-only functions
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/eo_generator.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/eolian/eo_generator.c b/src/bin/eolian/eo_generator.c
index 5be19c806c..ce498fa519 100644
--- a/src/bin/eolian/eo_generator.c
+++ b/src/bin/eolian/eo_generator.c
@@ -714,6 +714,9 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
714 itr = eolian_class_functions_get(class, EOLIAN_CTOR); 714 itr = eolian_class_functions_get(class, EOLIAN_CTOR);
715 EINA_ITERATOR_FOREACH(itr, fn) 715 EINA_ITERATOR_FOREACH(itr, fn)
716 { 716 {
717 if (eolian_function_is_legacy_only(fn, EOLIAN_CTOR))
718 continue;
719
717 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_METHOD)); 720 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_METHOD));
718 eo_op_desc_generate(class, fn, EOLIAN_CTOR, desc, tmpbuf); 721 eo_op_desc_generate(class, fn, EOLIAN_CTOR, desc, tmpbuf);
719 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf)); 722 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf));
@@ -734,7 +737,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
734 Eina_Bool prop_read = ( ftype == EOLIAN_PROP_SET ) ? EINA_FALSE : EINA_TRUE; 737 Eina_Bool prop_read = ( ftype == EOLIAN_PROP_SET ) ? EINA_FALSE : EINA_TRUE;
735 Eina_Bool prop_write = ( ftype == EOLIAN_PROP_GET ) ? EINA_FALSE : EINA_TRUE; 738 Eina_Bool prop_write = ( ftype == EOLIAN_PROP_GET ) ? EINA_FALSE : EINA_TRUE;
736 739
737 if (prop_write) 740 if (prop_write && !eolian_function_is_legacy_only(fn, EOLIAN_PROP_SET))
738 { 741 {
739 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_PROP_SET)); 742 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_PROP_SET));
740 743
@@ -743,7 +746,7 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
743 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf)); 746 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf));
744 free(desc); 747 free(desc);
745 } 748 }
746 if (prop_read) 749 if (prop_read && !eolian_function_is_legacy_only(fn, EOLIAN_PROP_GET))
747 { 750 {
748 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_PROP_GET)); 751 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_PROP_GET));
749 752
@@ -759,6 +762,9 @@ eo_source_end_generate(const Eolian_Class *class, Eina_Strbuf *buf)
759 itr = eolian_class_functions_get(class, EOLIAN_METHOD); 762 itr = eolian_class_functions_get(class, EOLIAN_METHOD);
760 EINA_ITERATOR_FOREACH(itr, fn) 763 EINA_ITERATOR_FOREACH(itr, fn)
761 { 764 {
765 if (eolian_function_is_legacy_only(fn, EOLIAN_METHOD))
766 continue;
767
762 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_METHOD)); 768 char *desc = _source_desc_get(eolian_function_description_get(fn, EOLIAN_METHOD));
763 eo_op_desc_generate(class, fn, EOLIAN_METHOD, desc, tmpbuf); 769 eo_op_desc_generate(class, fn, EOLIAN_METHOD, desc, tmpbuf);
764 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf)); 770 eina_strbuf_append(str_op, eina_strbuf_string_get(tmpbuf));