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
|
|
@ -9,6 +9,9 @@
|
|||
|
||||
{.deadCodeElim: on.} # dce option deprecated
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.push styleChecks: off.}
|
||||
|
||||
const
|
||||
hasSpawnH = true # should exist for every Posix system nowadays
|
||||
hasAioH = false
|
||||
|
|
@ -272,7 +275,7 @@ type
|
|||
sigev_signo*: cint ## Signal number.
|
||||
sigev_value*: SigVal ## Signal value.
|
||||
sigev_notify_function*: proc (x: SigVal) {.noconv.} ## Notification func.
|
||||
sigev_notify_attributes*: ptr PthreadAttr ## Notification attributes.
|
||||
sigev_notify_attributes*: ptr Pthread_attr ## Notification attributes.
|
||||
|
||||
SigVal* {.importc: "union sigval",
|
||||
header: "<signal.h>", final, pure.} = object ## struct sigval
|
||||
|
|
@ -594,3 +597,6 @@ proc WIFSTOPPED*(s: cint): bool {.importc, header: "<sys/wait.h>".}
|
|||
## True if child is currently stopped.
|
||||
proc WIFCONTINUED*(s: cint): bool {.importc, header: "<sys/wait.h>".}
|
||||
## True if child has been continued.
|
||||
|
||||
when defined(nimHasStyleChecks):
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue