By the time we get here, comments have long since been stripped out; there is no need to do it again.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1034,9 +1034,6 @@ class KernelDoc: · 1033 unmodified lines | |||
| 1034 | typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args) | 1034 | typedef1 = KernRe(r'typedef' + typedef_type + r'\(' + typedef_ident + r'\)' + typedef_args) |
| 1035 | typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args) | 1035 | typedef2 = KernRe(r'typedef' + typedef_type + typedef_ident + typedef_args) |
| 1036 | 1036 | ||
| 1037 | # Strip comments | ||
| 1038 | proto = KernRe(r'/\*.*?\*/', flags=re.S).sub('', proto) | ||
| 1039 | |||
| 1040 | # Parse function typedef prototypes | 1037 | # Parse function typedef prototypes |
| 1041 | for r in [typedef1, typedef2]: | 1038 | for r in [typedef1, typedef2]: |
| 1042 | if not r.match(proto): | 1039 | if not r.match(proto): |