... | ... | @@ -2,8 +2,8 @@ I was also writing something before you published those scripts. My method reads |
|
|
|
|
|
`pp.sed` - removes preprocessor directives and `#if 0` blocks.
|
|
|
```
|
|
|
/^[[:blank:]]\*#if 0/,/^[[:blank:]]*#endif/
|
|
|
/^[[:blank:]]\*#/d
|
|
|
/^\[\[:blank:]]\*#if 0/,/^[[:blank:]]*#endif/
|
|
|
/^\[\[:blank:]]\*#/d
|
|
|
```
|
|
|
|
|
|
* `enum.sed` - grabs enum definitions and permits the opening brace to be on either the same line or the next.
|
... | ... | |