Subject: | Add support for #warn/#warning |
Date: | Fri, 16 May 2014 21:02:02 +0000 |
To: | "bug-Convert-Binary-C [...] rt.cpan.org" <bug-Convert-Binary-C [...] rt.cpan.org> |
From: | Jon DuSaint <jdusaint [...] teslamotors.com> |
Seen with Convert::Binary::C 0.76 on Mac OS 10.9.2 with perl 5.16.2.
Neither #warn nor #warning are recognized by ucpp.
To reproduce:
use Convert::Binary::C;
Convert::Binary::C->new->parse(qq[#warning "Warning!"\n]);
There will be an error:
[buffer], line 1: unknown cpp directive '#warning' at - line 2.
The accompanying patch adds both #warn and #warning to ucpp.
Message body is not shown because sender requested not to inline it.