We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ea409 commit a0f2e07Copy full SHA for a0f2e07
dissect/cstruct/cstruct.py
@@ -368,7 +368,7 @@ def _enums(self, data):
368
def _structs(self, data):
369
compiler = Compiler(self.cstruct)
370
r = re.finditer(
371
- r'(#(?P<flags>(?:compile))\s+)?((?P<typedef>typedef)\s+)?(?P<type>[^\s]+)\s+(?P<name>[^\s]+)?(?P<fields>\s*\{[^}]+\}(?P<defs>\s+[^;\n]+)?)?\s*;',
+ r'(#(?P<flags>(?:compile))\s+)?((?P<typedef>typedef)\s+)?(?P<type>[^\s]+)\s+(__attribute__\(\([^)]+\)\)\s*)?(?P<name>[^\s]+)?(?P<fields>\s*\{[^}]+\}(?P<defs>\s+[^;\n]+)?)?\s*;',
372
data,
373
)
374
for t in r:
0 commit comments