Eolian: set default value when no set/get is defined on a property.
authorDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 8 Jun 2014 05:58:46 +0000 (08:58 +0300)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Sun, 8 Jun 2014 09:40:42 +0000 (12:40 +0300)
If no set/get is defined in a property, the type will be set as
EOLIAN_PROPERTY, meaning set and get.

src/lib/eolian/eo_lexer.c
src/lib/eolian/eo_lexer.rl

index ff3c98f..7f0d460 100644 (file)
@@ -4624,6 +4624,7 @@ eo_tokenizer_database_fill(const char *filename)
                             }
                     }
                }
+             if (!prop->accessors) database_function_type_set(foo_id, EOLIAN_PROPERTY);
              database_class_function_add(class, foo_id);
           }
 
index 26227d7..e47c50e 100644 (file)
@@ -1490,6 +1490,7 @@ eo_tokenizer_database_fill(const char *filename)
                             }
                     }
                }
+             if (!prop->accessors) database_function_type_set(foo_id, EOLIAN_PROPERTY);
              database_class_function_add(class, foo_id);
           }