Escape double-quotes in generated #line directives
authorSteffen Mueller <smueller@cpan.org>
Wed, 28 Dec 2011 17:47:49 +0000 (18:47 +0100)
committerSteffen Mueller <smueller@cpan.org>
Wed, 28 Dec 2011 17:48:09 +0000 (18:48 +0100)
commit8629c11317fda8f4914ed5997d8c9e1fba720f14
tree2383109a8c1a644770486345338a3847e05fa343
parentd5e45555fc406945bd8e4694adaab59e4f99120e
Escape double-quotes in generated #line directives

 #line directives can be generated from commands. Those may be using
double quotes. That may not be considered friendly by preprocessors when
the result looks anything like this

 #line 123 "perl -e "foo""

Input on whether the following is portable would be appreciated.

 #line 123 "perl -e \"foo\""

gcc is happy with it. I know. The world's not just win32, osx, and linux
with a choice between three compilers.
dist/ExtUtils-ParseXS/Changes
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS.pm
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/CountLines.pm
dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Utilities.pm