summaryrefslogtreecommitdiff
path: root/tools/pidl/idl.yp
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-11-06 22:48:50 +0000
committerJörg Mayer <jmayer@loplof.de>2013-11-06 22:48:50 +0000
commit02fe7ff23a82034fdde5d0c1d0c3bd433559ac6a (patch)
tree7456539e9cb063cef287cd9edc3ce11cc5b7f638 /tools/pidl/idl.yp
parentf9e5c14dde5b06b7a92c31babd0213c7a5a0ebcc (diff)
downloadwireshark-02fe7ff23a82034fdde5d0c1d0c3bd433559ac6a.tar.gz
Copy over the current WIP from samba.org::ftp/unpacked/samba_4_0_test/pidl
- As the pidl in Wireshark doesn't work anyway we can just mirror the WIP so that patches to our code base are against the current code. svn path=/trunk/; revision=53120
Diffstat (limited to 'tools/pidl/idl.yp')
-rw-r--r--tools/pidl/idl.yp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pidl/idl.yp b/tools/pidl/idl.yp
index b5c5185fbe..c8a65f6f62 100644
--- a/tools/pidl/idl.yp
+++ b/tools/pidl/idl.yp
@@ -610,7 +610,9 @@ again:
for ($parser->YYData->{INPUT}) {
if (/^\#/) {
- if (s/^\# (\d+) \"(.*?)\"( \d+|)//) {
+ # Linemarker format is described at
+ # http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html
+ if (s/^\# (\d+) \"(.*?)\"(( \d+){1,4}|)//) {
$parser->YYData->{LINE} = $1-1;
$parser->YYData->{FILE} = $2;
goto again;