This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Errno parsing: Skip expressions containing function names etc
authorSteve Hay <steve.m.hay@googlemail.com>
Wed, 24 Sep 2014 08:13:26 +0000 (09:13 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Thu, 25 Sep 2014 07:29:37 +0000 (08:29 +0100)
commitcc192ed19bd1c52dd1711a900ce276043ce418ae
tree2c81a6f4328d1babb3414ff5ec4dbd81d67d7c4c
parent2d4a3ccef465111dae0e5e71cf008e97efeb057c
Errno parsing: Skip expressions containing function names etc

Expressions containing a function name are no more eval()able than
expressions which are just a function name, so skip them too. This also
picks up on text in the expression and stops eval()s from whining about
"String found where operator expected" on Win32 (with VC10) on expressions
like L"\\Enlistment\\" and (sizeof(L"\\Enlistment\\")+(38*sizeof(WCHAR))),
encountered when parsing ENLISTMENT_OBJECT_PATH and
ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES respectively.
ext/Errno/Errno_pm.PL