4 BLACKLIST="tests/test_setter_blacklist.txt"
7 func=$(echo $1 | grep -oe '_\?elm_\w\+')
9 cat $BLACKLIST | grep -q $func
13 echo $1 | grep -qe "_set(const \+[^\(char \+\*\)]"
15 echo -e "\e[31;1mCONST\e[m\t $func"
18 echo $1 | grep -qe "EAPI \+\(void\|Eina_Bool\)"
20 echo -e "\e[31;1mUNKNOWN RETURN\e[m\t $func"
23 echo $1 | grep -qe "\(cb_set\|all_set\)("
25 grep -qe "EAPI.*\<${base}_get\>" $2
27 echo -e "\e[31;1mMISSING GETTER\e[m\t $func"
30 echo $1 | grep -qe "\(content\|icon\|end\)_set(\w\+ \+\*obj, \w\+ \+\*\w\+);"
32 grep -qe "EAPI.*\<${base}_unset\>" $2
34 echo -e "\e[31;1mMISSING UNSETTER\e[m\t $func"
41 HEADERS="src/lib/Elementary.h.in
42 src/lib/Elementary_Cursor.h
47 for header in $HEADERS; do
48 grep -e "^ *EAPI.*(.*)" $header | grep -e 'elm_\w\+_set' >eapi.list
50 for i in $(cat eapi.list); do