moved static macros definition from func to module

RE_ILLEGAL was redefined each time on has_control_chars() execution
there is no need for that