Hi,
I'm looking to extract a statement of C code given the filename and linenumber where it begins.
I can't, of course, just take the line, as I could have something like:
foo(i,
j, "this is ); \
", k);
as the example indicates, I also can't look for the next );
either, which would make it fairly simple.
Is there anything out there, presumably on CPAN, which does this automatically?
If I could run the code through indent first, I would have it allow unlimited line lengths, and then take just that line, but if I do that, I lose the line number!