stylecheck usages part two: stdlib cleanup (#19338)
* stylecheck usages part two: stdlib cleanup typeinfo.nim: importCompilerProc => importcompilerproc nre.nim: newLineFlags => newlineFlags system.nim: JSRoot => JsRoot ref #19319 * prefer importCompilerProc
This commit is contained in:
parent
58656aa5bb
commit
ae92eac060
3 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ type
|
||||||
wImmediate = "immediate", wConstructor = "constructor", wDestructor = "destructor",
|
wImmediate = "immediate", wConstructor = "constructor", wDestructor = "destructor",
|
||||||
wDelegator = "delegator", wOverride = "override", wImportCpp = "importcpp",
|
wDelegator = "delegator", wOverride = "override", wImportCpp = "importcpp",
|
||||||
wCppNonPod = "cppNonPod",
|
wCppNonPod = "cppNonPod",
|
||||||
wImportObjC = "importobjc", wImportCompilerProc = "importcompilerproc",
|
wImportObjC = "importobjc", wImportCompilerProc = "importCompilerProc",
|
||||||
wImportc = "importc", wImportJs = "importjs", wExportc = "exportc", wExportCpp = "exportcpp",
|
wImportc = "importc", wImportJs = "importjs", wExportc = "exportc", wExportCpp = "exportcpp",
|
||||||
wExportNims = "exportnims",
|
wExportNims = "exportnims",
|
||||||
wIncompleteStruct = "incompleteStruct", # deprecated
|
wIncompleteStruct = "incompleteStruct", # deprecated
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ proc matchesCrLf(pattern: Regex): bool =
|
||||||
let newlineFlags = flags and (pcre.NEWLINE_CRLF or
|
let newlineFlags = flags and (pcre.NEWLINE_CRLF or
|
||||||
pcre.NEWLINE_ANY or
|
pcre.NEWLINE_ANY or
|
||||||
pcre.NEWLINE_ANYCRLF)
|
pcre.NEWLINE_ANYCRLF)
|
||||||
if newLineFlags > 0u32:
|
if newlineFlags > 0u32:
|
||||||
return true
|
return true
|
||||||
|
|
||||||
# get flags from build config
|
# get flags from build config
|
||||||
|
|
|
||||||
|
|
@ -2888,7 +2888,7 @@ when defined(nimdoc):
|
||||||
|
|
||||||
elif defined(nimscript): discard
|
elif defined(nimscript): discard
|
||||||
elif defined(nodejs):
|
elif defined(nodejs):
|
||||||
type Argv = object of JSRoot
|
type Argv = object of JsRoot
|
||||||
let argv {.importjs: "process.argv".} : Argv
|
let argv {.importjs: "process.argv".} : Argv
|
||||||
proc len(argv: Argv): int {.importjs: "#.length".}
|
proc len(argv: Argv): int {.importjs: "#.length".}
|
||||||
proc `[]`(argv: Argv, i: int): cstring {.importjs: "#[#]".}
|
proc `[]`(argv: Argv, i: int): cstring {.importjs: "#[#]".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue