genius257 / DllStructEx

Extended DllStruct for AutoIt3
MIT License
2 stars 1 forks source link

Struct strings without semicolon at the end of the string, fails. #8

Open genius257 opened 3 years ago

genius257 commented 3 years ago
DllStructExCreate("INT a;"); Works
DllStructExCreate("INT a"); Fails

The RegEx needs to be updated, to allow for this.

genius257 commented 3 years ago

This may need some work on the RegEx with lookahead

DllStructExCreate("INT a;struct {INT a; INT b};"); Fails

Brackets are not part of the named group struct_line_declaration. Another solution is to remove the semicolon from the struct_line_declaration group, and add it to each use case as needed, to gain control.