Closed intgr closed 12 years ago
Hi intgr,
thanks for the report. I see, a958828 has introduced the regression. I'll pull your fix tonight (after figuring out how to do so...)
Cheers Th
Actually, I would prefer a different fix for this bug. The empty line could be avoided by placing the semicolon out of the macro blocks {: ... :}, something like this:
Can you rework your pull request to change this please?
Thanks a lot.
PS: yes, I know the macro language I've come up with is a bit simplistic/unflexible/crap/you-name-it, but one important goal for pycrc was that running pycrc must be as painless as possible, so I did not want to include dependencies on external code generators.
Good idea, I pushed a new commit to my fork.
(I was trying to think of prettier ways to solve the problem, but couldn't think of that)
Currently pycrc generates bad-looking C code like this:
This bug was introduced in 0.7.9. The parser eats newline characters after block delimiters, so a double-newline is necessary. This patch fixes it.