check-code: make casting style check more precise
check-code: check C patterns against .h files