From: Jean-Philippe Andre Date: Tue, 10 Dec 2013 06:47:27 +0000 (+0900) Subject: Evas filters: Allow empty commands X-Git-Tag: v1.9.0-alpha1~46^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0634dc04e62e163ca54333007fc2f210329e9cd;p=platform%2Fupstream%2Fefl.git Evas filters: Allow empty commands If an instruction line contains only ';', skip it. This is a convenience for Textblock and C++ style comments. --- diff --git a/src/lib/evas/filters/evas_filter_parser.c b/src/lib/evas/filters/evas_filter_parser.c index 87e8ec6..7ffc4f3 100644 --- a/src/lib/evas/filters/evas_filter_parser.c +++ b/src/lib/evas/filters/evas_filter_parser.c @@ -1057,6 +1057,9 @@ evas_filter_program_parse(Evas_Filter_Program *pgm, const char *str) break; } + // Empty command + if (next == token + 1) continue; + // Parse "instrname(options)" options = token; instrname = strsep(&options, "(");