File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
hs-bindgen/src-internal/HsBindgen/Frontend/Pass Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ handleDecl td decl =
49
49
case declKind of
50
50
C. DeclTypedef dtd
51
51
| C. TypePointer (C. TypeFun args res) <- C. typedefType dtd ->
52
- let derefDecl = C. Decl {
52
+ let derefDecl, mainDecl :: C. Decl HandleTypedefs
53
+ derefDecl = C. Decl {
53
54
declInfo = declInfo' { C. declId = C. DeclId (curName <> " _Deref" ) (C. NameOriginGenerated (C. AnonId declLoc)) }
54
55
, declKind = handleUseSites td
55
56
$ C. DeclTypedef $ C. Typedef {
@@ -58,7 +59,7 @@ handleDecl td decl =
58
59
}
59
60
, declAnn = defaultTypeSpec
60
61
}
61
- mainDecl = decl {
62
+ mainDecl = C. Decl {
62
63
C. declInfo = declInfo'
63
64
, C. declKind = C. DeclTypedef $ C. Typedef {
64
65
typedefType = C. TypePointer
@@ -68,6 +69,7 @@ handleDecl td decl =
68
69
$ C. declInfo derefDecl
69
70
, typedefAnn = NoAnn
70
71
}
72
+ , C. declAnn = declAnn
71
73
}
72
74
in ( Nothing
73
75
, Just [ derefDecl
You can’t perform that action at this time.
0 commit comments