wmaker-check: rewrote parsing of structure fields for callback checker
commitfa5f8d99375649df869e079d084af6dcc5bf25c2
authorChristophe CURIS <christophe.curis@free.fr>
Thu, 14 May 2015 13:07:04 +0000 (14 15:07 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 15 May 2015 16:44:50 +0000 (15 17:44 +0100)
tree6ded9189d0be22f1e3892399528d5bb20af2b86b
parentea42641033ec4dacd232e7d3017c5fe6636f5226
wmaker-check: rewrote parsing of structure fields for callback checker

Doug Torrance reported a problem with some versions of AWK which caused the
signed/unsigned attribute to not be properly ignored, because the regular
expression was using a GNU extension to keep it simple.

While trying to reproduce it, I discovered that mawk was chocking on one
regexp used in parsing the type+names parsing of structure members.

This patch is rewriting the parsing, because hacking regexp to make them
fall working is still not the best solution for maintainability. There is
now a clearer code which is also safer because it will handle more
gracefully corner cases.

Reported-by: Doug Torrance <dtorrance@monmouthcollege.edu>
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
script/check-wmaker-loaddef-callbacks.sh