intsets are now a proper module and part of the stdlib
This commit is contained in:
parent
ca637c019c
commit
ade67f1abc
25 changed files with 297 additions and 286 deletions
|
|
@ -10,7 +10,8 @@
|
|||
# This module contains the data structures for the semantic checking phase.
|
||||
|
||||
import
|
||||
strutils, lists, options, lexer, ast, astalgo, trees, treetab, wordrecg,
|
||||
strutils, lists, intsets, options, lexer, ast, astalgo, trees, treetab,
|
||||
wordrecg,
|
||||
ropes, msgs, platform, os, condsyms, idents, renderer, types, extccomp, math,
|
||||
magicsys, nversion, nimsets, parser, times, passes, rodread
|
||||
|
||||
|
|
@ -118,7 +119,7 @@ proc newOptionEntry(): POptionEntry =
|
|||
proc newContext(module: PSym, nimfile: string): PContext =
|
||||
new(result)
|
||||
InitSymTab(result.tab)
|
||||
IntSetInit(result.AmbiguousSymbols)
|
||||
result.AmbiguousSymbols = initIntset()
|
||||
initLinkedList(result.optionStack)
|
||||
initLinkedList(result.libs)
|
||||
append(result.optionStack, newOptionEntry())
|
||||
|
|
@ -127,7 +128,7 @@ proc newContext(module: PSym, nimfile: string): PContext =
|
|||
result.threadEntries = newNode(nkStmtList)
|
||||
result.converters = @[]
|
||||
result.filename = nimfile
|
||||
IntSetInit(result.includedFiles)
|
||||
result.includedFiles = initIntSet()
|
||||
initStrTable(result.userPragmas)
|
||||
|
||||
proc addConverter(c: PContext, conv: PSym) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue