diff --git a/compiler/evalffi.nim b/compiler/evalffi.nim index cb383a393..d53fba816 100644 --- a/compiler/evalffi.nim +++ b/compiler/evalffi.nim @@ -9,7 +9,7 @@ ## This file implements the FFI part of the evaluator for Nim code. -import ast, astalgo, ropes, types, options, tables, dynlib, msgs, os, lineinfos +import ast, types, options, tables, dynlib, msgs, lineinfos import pkg/libffi when defined(windows): @@ -70,7 +70,7 @@ proc importcSymbol*(conf: ConfigRef, sym: PSym): PNode = if theAddr.isNil: globalError(conf, sym.info, "cannot import: " & name) result.intVal = cast[ByteAddress](theAddr) -proc mapType(conf: ConfigRef, t: ast.PType): ptr libffi.TType = +proc mapType(conf: ConfigRef, t: ast.PType): ptr libffi.Type = if t == nil: return addr libffi.type_void case t.kind @@ -415,7 +415,7 @@ proc callForeignFunction*(conf: ConfigRef, call: PNode): PNode = internalAssert conf, call[0].kind == nkPtrLit var cif: TCif - var sig: TParamList + var sig: ParamList # use the arguments' types for varargs support: for i in 1..