potools icon indicating copy to clipboard operation
potools copied to clipboard

Handle some preprocessor macros to re-fix parentheses matching logic

Open MichaelChirico opened this issue 4 years ago • 0 comments

Follow-up to #199 which implemented a really hacky fix that in turn broke some old logic for detecting erroneous C files. See discussion there.

Doing complete macro expansion seems prohibitively difficult (and is one of the biggest stumbling blocks I encountered in starting the parsec project), and xgettext itself doesn't seem to do so.

Maybe it's time to give up the :ghost: of writing a half-assed targeted C parser & just let xgettext do the work, then build the calls ex-post? How would one even build a call in the cases causing this issue though?

MichaelChirico avatar Jul 11 '21 08:07 MichaelChirico