summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-03-27 21:24:41 +0100
committerAraq <rumpf_a@web.de>2014-03-27 21:24:41 +0100
commit31cfed0aa894caeb2dcd6d68f6465d62b0271044 (patch)
tree5dedd1c83834bab123b99140b9a779359ca5ef00
parentde5d18188fd6cba580c5d80f1787a2c9dde9fc71 (diff)
downloadNim-31cfed0aa894caeb2dcd6d68f6465d62b0271044.tar.gz
fixes a typo
-rw-r--r--compiler/pragmas.nim8
-rw-r--r--compiler/semstmts.nim2
2 files changed, 5 insertions, 5 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index b5dead5b2..692f4bac6 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -770,8 +770,8 @@ proc singlePragma(c: PContext, sym: PSym, n: PNode, i: int,
       else: invalidPragma(it)
   else: processNote(c, it)
 
-proc implictPragmas*(c: PContext, sym: PSym, n: PNode,
-                     validPragmas: TSpecialWords) =
+proc implicitPragmas*(c: PContext, sym: PSym, n: PNode,
+                      validPragmas: TSpecialWords) =
   if sym != nil and sym.kind != skModule:
     var it = POptionEntry(c.optionStack.head)
     while it != nil:
@@ -782,7 +782,7 @@ proc implictPragmas*(c: PContext, sym: PSym, n: PNode,
             internalError(n.info, "implicitPragmas")
       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)
     var lib = POptionEntry(c.optionStack.tail).dynlib
     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
   for i in countup(0, sonsLen(n) - 1):
     if singlePragma(c, sym, n, i, validPragmas): break
-  implictPragmas(c, sym, n, validPragmas)
+  implicitPragmas(c, sym, n, validPragmas)
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index 38854bc8a..2a6e797da 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1088,7 +1088,7 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
     if n.sons[pragmasPos].kind != nkEmpty:
       pragma(c, s, n.sons[pragmasPos], validPragmas)
     else:
-      implictPragmas(c, s, n, validPragmas)
+      implicitPragmas(c, s, n, validPragmas)
   else: 
     if n.sons[pragmasPos].kind != nkEmpty: 
       localError(n.sons[pragmasPos].info, errPragmaOnlyInHeaderOfProc)