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
Merge pull request #22 from pkit/minor_fixes

moved static macros definition from func to module