fixes a typo
This commit is contained in:
parent
de5d18188f
commit
31cfed0aa8
2 changed files with 5 additions and 5 deletions
|
|
@ -770,8 +770,8 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: int,
|
||||||
else: invalidPragma(it)
|
else: invalidPragma(it)
|
||||||
else: processNote(c, it)
|
else: processNote(c, it)
|
||||||
|
|
||||||
proc implictPragmas*(c: PContext, sym: PSym, n: PNode,
|
proc implicitPragmas*(c: PContext, sym: PSym, n: PNode,
|
||||||
validPragmas: TSpecialWords) =
|
validPragmas: TSpecialWords) =
|
||||||
if sym != nil and sym.kind != skModule:
|
if sym != nil and sym.kind != skModule:
|
||||||
var it = POptionEntry(c.optionStack.head)
|
var it = POptionEntry(c.optionStack.head)
|
||||||
while it != nil:
|
while it != nil:
|
||||||
|
|
@ -782,7 +782,7 @@ proc implictPragmas*(c: PContext, sym: PSym, n: PNode,
|
||||||
internalError(n.info, "implicitPragmas")
|
internalError(n.info, "implicitPragmas")
|
||||||
it = it.next.POptionEntry
|
it = it.next.POptionEntry
|
||||||
|
|
||||||
if lfExportLib in sym.loc.flags and sfExportc notin sym.flags:
|
if lfExportLib in sym.loc.flags and sfExportc notin sym.flags:
|
||||||
localError(n.info, errDynlibRequiresExportc)
|
localError(n.info, errDynlibRequiresExportc)
|
||||||
var lib = POptionEntry(c.optionStack.tail).dynlib
|
var lib = POptionEntry(c.optionStack.tail).dynlib
|
||||||
if {lfDynamicLib, lfHeader} * sym.loc.flags == {} and
|
if {lfDynamicLib, lfHeader} * sym.loc.flags == {} and
|
||||||
|
|
@ -806,4 +806,4 @@ proc pragma(c: PContext, sym: PSym, n: PNode, validPragmas: TSpecialWords) =
|
||||||
if n == nil: return
|
if n == nil: return
|
||||||
for i in countup(0, sonsLen(n) - 1):
|
for i in countup(0, sonsLen(n) - 1):
|
||||||
if singlePragma(c, sym, n, i, validPragmas): break
|
if singlePragma(c, sym, n, i, validPragmas): break
|
||||||
implictPragmas(c, sym, n, validPragmas)
|
implicitPragmas(c, sym, n, validPragmas)
|
||||||
|
|
|
||||||
|
|
@ -1088,7 +1088,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
|
||||||
if n.sons[pragmasPos].kind != nkEmpty:
|
if n.sons[pragmasPos].kind != nkEmpty:
|
||||||
pragma(c, s, n.sons[pragmasPos], validPragmas)
|
pragma(c, s, n.sons[pragmasPos], validPragmas)
|
||||||
else:
|
else:
|
||||||
implictPragmas(c, s, n, validPragmas)
|
implicitPragmas(c, s, n, validPragmas)
|
||||||
else:
|
else:
|
||||||
if n.sons[pragmasPos].kind != nkEmpty:
|
if n.sons[pragmasPos].kind != nkEmpty:
|
||||||
localError(n.sons[pragmasPos].info, errPragmaOnlyInHeaderOfProc)
|
localError(n.sons[pragmasPos].info, errPragmaOnlyInHeaderOfProc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue