diff options
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 440761815..b3ccaf224 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -174,9 +174,7 @@ proc setExternName(c: PContext; s: PSym, extname: string, info: TLineInfo) = localError(c.config, info, "invalid extern name: '" & extname & "'. (Forgot to escape '$'?)") when hasFFI: s.cname = $s.loc.r - if c.config.cmd == cmdNimfix and '$' notin extname: - # note that '{.importc.}' is transformed into '{.importc: "$1".}' - s.loc.flags.incl(lfFullExternalName) + proc makeExternImport(c: PContext; s: PSym, extname: string, info: TLineInfo) = setExternName(c, s, extname, info) @@ -249,7 +247,7 @@ proc processVirtual(c: PContext, n: PNode, s: PSym) = s.constraint = newEmptyStrNode(c, n, getOptionalStr(c, n, "$1")) s.constraint.strVal = s.constraint.strVal % s.name.s s.flags.incl {sfVirtual, sfInfixCall, sfExportc, sfMangleCpp} - + s.typ.callConv = ccNoConvention incl c.config.globalOptions, optMixedMode @@ -1281,7 +1279,7 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: var int, sym.flags.incl sfSystemRaisesDefect of wVirtual: processVirtual(c, it, sym) - + else: invalidPragma(c, it) elif comesFromPush and whichKeyword(ident) != wInvalid: discard "ignore the .push pragma; it doesn't apply" |