ned14 / pcpp

A C99 preprocessor written in pure Python
Other
215 stars 39 forks source link

Enable the 'nothing' in a `--line-directive` option. #44

Closed kuri65536 closed 4 years ago

kuri65536 commented 4 years ago

this is the patch to fix --line-directive option, help text discribe the behavior at nothing and found the codes check line_directive to None.

but line_directive never set to None at pcmd.py

ned14 commented 4 years ago

Thanks for the PR, I'll see if I can find some time to review this.

kuri65536 commented 4 years ago

I removed the commit related to my needs passthru-ws, now changes are couple of lines please review at your time:

                if self.line_directive.lower() in ("nothing", "none", ""):
                    self.line_directive = None
ned14 commented 4 years ago

Merged. Thanks for the fix!