summaryrefslogtreecommitdiff
path: root/src/bin/edje/edje_cc_parse.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-17 11:21:47 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:09 +0900
commit88b81d240a3d29aebbc1d9b05dcb4335a69d1e63 (patch)
tree81e5dd20b671650edb7933aa639dfdec8a9cc390 /src/bin/edje/edje_cc_parse.c
parent707b979ffdd25d63990c2b9c740b7331e0f94a4a (diff)
Edje: Move filter desc to common desc
This will be shared between IMAGE and TEXT. In the future it can also be shared with PROXY and TEXTBLOCK.
Diffstat (limited to '')
-rw-r--r--src/bin/edje/edje_cc_parse.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_parse.c b/src/bin/edje/edje_cc_parse.c
index 6327e8e3ba..49da4766a6 100644
--- a/src/bin/edje/edje_cc_parse.c
+++ b/src/bin/edje/edje_cc_parse.c
@@ -1374,6 +1374,29 @@ check_min_arg_count(int min_required_args)
1374 } 1374 }
1375} 1375}
1376 1376
1377int
1378check_range_arg_count(int min_required_args, int max_required_args)
1379{
1380 int num_args = eina_array_count(&params);
1381
1382 if (num_args < min_required_args)
1383 {
1384 ERR("%s:%i got %i arguments, but expected at least %i",
1385 file_in, line - 1, num_args, min_required_args);
1386 err_show();
1387 exit(-1);
1388 }
1389 else if (num_args > max_required_args)
1390 {
1391 ERR("%s:%i got %i arguments, but expected at most %i",
1392 file_in, line - 1, num_args, max_required_args);
1393 err_show();
1394 exit(-1);
1395 }
1396
1397 return num_args;
1398}
1399
1377/* simple expression parsing stuff */ 1400/* simple expression parsing stuff */
1378 1401
1379/* 1402/*