wrc: Allow quotes in resource nameID.

Artur Świgoń artur.swigon at gmail.com
Fri Apr 7 10:56:53 CDT 2017


Fixes https://bugs.winehq.org/show_bug.cgi?id=786

This patch introduces two new parser states to differentiate between strings
and nameID's. An additional initial condition (id_initial) was added. Without
it, all quoted nameID's are properly recognized except for the first one.
Any number of single quotes is allowed in a double-quoted resource nameID and
vice versa.

Tested on macOS 10.12 and Fedora 25.

Signed-off-by: Artur Świgoń <artur.swigon at gmail.com>
---
tools/wrc/parser.l | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 60 insertions(+), 3 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wrc-Allow-quotes-in-resource-nameID.patch
Type: application/octet-stream
Size: 3223 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20170407/846c8e04/attachment.obj>


More information about the wine-patches mailing list