Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created Jan 31, 2012
Embed
What would you like to do?
SIP 4.13.1 fix
--- ../orig/sip4-4.13.1/sipgen/parser.y 2011-12-19 13:29:28.000000000 +0100
+++ sipgen/parser.y 2012-02-03 22:05:25.810230624 +0100
@@ -792,7 +792,8 @@ exception: TK_EXCEPTION scopedname base
/* Complete the definition. */
xd->iff->module = currentModule;
- appendCodeBlock(&xd->iff->hdrcode, $5.type_header_code);
+ if( $5.token == TK_TYPEHEADERCODE )
+ appendCodeBlock(&xd->iff->hdrcode, $5.type_header_code);
xd->pyname = pyname;
xd->bibase = $3.bibase;
xd->base = $3.base;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment