wildmatch: rename constants and update prototype