From: Ulya T. <skv...@gm...> - 2017-09-13 07:31:42
|
> I've run into a problem. > > In most places where options are already passed, they are passed as > 'const opt_t *opts'. However, that type does not contain 'source_file'; > 'source_file' is only in the higher level Opt type. > > So either I need to add an Opt arg to all the places that already get > opt_t (that seems awkward), or move source_file into conopt_t. > > Any advice? The right way would be to move 'source_file' into 'mutopt_t': the name of the source file might be changed by one of the '#line' directives (which are handled by re2c). > I'm tempted to give up; I won't be editing that many .re files, so the > error message format is not too annoying. Sure, you can file an issue on github -- then I'll fix it myself. |