Teach mktables script to parse enums. Works only with clang build. As a
demo repair shutdown(2) argument parsing, that was broken since
c3276e02beab.
Details
Details
- Reviewers
kp - Group Reviewers
Src Committers
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 74306 Build 71189: arc lint + arc unit
Event Timeline
| lib/libsysdecode/mktables | ||
|---|---|---|
| 139 | This is missing the TABLE_ENTRY. (Discovered test-building the follow-up pf patch). | |
Comment Actions
There's no need for a clang-only solution, you can handle enums just fine with only regular expressions as long as the names are sufficiently distinctive.
Comment Actions
I don't want this library to dictate naming of enums all around. The whole idea of using text parser to parse C files is fragile. Clang delivers a proper solution. Hopefully gcc will catch up.