New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h2ph produces invalid code for a struct definition with #define #11615
Comments
From mmaslano@redhat.comCreated by mmaslano@redhat.comA definition of the form: Create a test file test.h, which contains: Run command: And run perl on test.ph: Proposed fix by Martin Poole: Inline Patch--- /usr/bin/h2ph 2009-10-05 22:14:35.000000000 +0530
+++ /usr/bin/h2ph.new 2009-10-05 22:14:29.000000000 +0530
@@ -454,7 +454,8 @@ sub expr {
s/^([_a-zA-Z]\w*)// && do {
my $id = $1;
if ($id eq 'struct' || $id eq 'union') {
- s/^\s+(\w+)//;
+ # Get the entire thing to cater for an anonymous
Perl Info
|
From mmaslano@redhat.comAfter regression testing this patch is not correct, because it would It looks like there is needed skip of { and } in struct or union. But |
mmaslano@redhat.com - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#98062 (status was 'open')
Searchable as RT98062$
The text was updated successfully, but these errors were encountered: