Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created January 31, 2012 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jef-n/1709985 to your computer and use it in GitHub Desktop.
Save jef-n/1709985 to your computer and use it in GitHub Desktop.
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