From d56359c74b5b165ed3d9e9c91063cb73d5ca829d Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Sun, 8 Jun 2014 08:58:46 +0300 Subject: [PATCH] Eolian: set default value when no set/get is defined on a property. 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 | 1 + src/lib/eolian/eo_lexer.rl | 1 + 2 files changed, 2 insertions(+) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index ff3c98f06c..7f0d4603d4 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -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); } diff --git a/src/lib/eolian/eo_lexer.rl b/src/lib/eolian/eo_lexer.rl index 26227d7a6b..e47c50ee4d 100644 --- a/src/lib/eolian/eo_lexer.rl +++ b/src/lib/eolian/eo_lexer.rl @@ -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); }