Commit | Line | Data |
---|---|---|
1e0a5178 SS |
1 | #!/usr/bin/perl |
2 | ||
3 | # This Perl script tweaks GDB sources to be more useful for Doxygen. | |
4 | ||
5 | while (<>) { | |
6 | # Allow "/* * " as an equivalent to "/** ", better for Emacs compat. | |
7 | s/\/\* \* /\/** /sg; | |
8 | # Manually expand macro seen in structs and such. | |
9 | s/ENUM_BITFIELD[ \t]*\((.*?)\)/__extension__ enum $1/sg; | |
10 | print; | |
11 | } |