From: Daniel Kolesa Date: Tue, 24 May 2016 10:48:44 +0000 (+0100) Subject: eolian: add support for warning when pointer type is found (with env var) X-Git-Tag: upstream/1.20.0~6190 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39b9c7564aa7e5751adbbeaf1715cacd6f80a443;p=platform%2Fupstream%2Fefl.git eolian: add support for warning when pointer type is found (with env var) --- diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c index 6e3d895..5f83683 100644 --- a/src/lib/eolian/eo_parser.c +++ b/src/lib/eolian/eo_parser.c @@ -847,6 +847,11 @@ parse_ptr: if (ls->t.token == '*') eo_lexer_syntax_error(ls, "pointer to complex/class type"); } + if (getenv("EOLIAN_WARN_PTR") && ls->t.token == '*') + { + fprintf(stderr, "eolian:%s:%d:%d: found pointer type\n", + def->base.file, line, col); + } while (ls->t.token == '*') { Eolian_Type *pdef;