styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
This commit is contained in:
parent
96523cdd3e
commit
c94647aeca
90 changed files with 680 additions and 652 deletions
|
|
@ -73,7 +73,7 @@ type
|
|||
tyVoidHidden
|
||||
|
||||
TNimNodeKind = enum nkNone, nkSlot, nkList, nkCase
|
||||
TNimNode {.compilerProc.} = object
|
||||
TNimNode {.compilerproc.} = object
|
||||
kind: TNimNodeKind
|
||||
offset: int
|
||||
typ: ptr TNimType
|
||||
|
|
@ -86,7 +86,7 @@ type
|
|||
ntfAcyclic = 1, # type cannot form a cycle
|
||||
ntfEnumHole = 2 # enum has holes and thus `$` for them needs the slow
|
||||
# version
|
||||
TNimType {.compilerProc.} = object
|
||||
TNimType {.compilerproc.} = object
|
||||
size: int
|
||||
kind: TNimKind
|
||||
flags: set[TNimTypeFlag]
|
||||
|
|
@ -105,7 +105,7 @@ type
|
|||
when defined(nimTypeNames):
|
||||
# Declare this variable only once in system.nim
|
||||
when declared(ThisIsSystem):
|
||||
var nimTypeRoot {.compilerProc.}: PNimType
|
||||
var nimTypeRoot {.compilerproc.}: PNimType
|
||||
else:
|
||||
var nimTypeRoot {.importc.}: PNimType
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue