From 6f2657c3fb65a2ea4f1216686e27f170742456fe Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Tue, 11 Mar 2014 14:02:31 +0200 Subject: [PATCH] Eolian/Lexer: support of legacy overriding for properties. --- src/lib/eolian/eo_lexer.c | 6 ++++++ src/lib/eolian/eo_lexer.rl | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index 120a0ee..27a9893 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -4412,6 +4412,12 @@ eo_tokenizer_database_fill(const char *filename) database_function_return_flag_set_as_warn_unused(foo_id, accessor->type == SETTER?SET:GET, accessor->ret.warn_unused); } + if (accessor->legacy) + { + database_function_data_set(foo_id, + (accessor->type == SETTER?EOLIAN_LEGACY_SET:EOLIAN_LEGACY_GET), + accessor->legacy); + } database_function_description_set(foo_id, (accessor->type == SETTER?EOLIAN_COMMENT_SET:EOLIAN_COMMENT_GET), accessor->comment); diff --git a/src/lib/eolian/eo_lexer.rl b/src/lib/eolian/eo_lexer.rl index 6a34cf5..a62b39b 100644 --- a/src/lib/eolian/eo_lexer.rl +++ b/src/lib/eolian/eo_lexer.rl @@ -1328,6 +1328,12 @@ eo_tokenizer_database_fill(const char *filename) database_function_return_flag_set_as_warn_unused(foo_id, accessor->type == SETTER?SET:GET, accessor->ret.warn_unused); } + if (accessor->legacy) + { + database_function_data_set(foo_id, + (accessor->type == SETTER?EOLIAN_LEGACY_SET:EOLIAN_LEGACY_GET), + accessor->legacy); + } database_function_description_set(foo_id, (accessor->type == SETTER?EOLIAN_COMMENT_SET:EOLIAN_COMMENT_GET), accessor->comment); -- 2.7.4