use fron-end parser functions OPT_* from fe_misc
correct prototypes, use bool type for variables/function parameters