enable style:usages for stdlib tests [backport: 1.6] (#19715)
* enable style:usages for stdlib tests * freeAddrInfo * more tests * importc * bufSize * fix more * => parseSql and renderSql
This commit is contained in:
parent
26bcf18f91
commit
98cebad7de
42 changed files with 149 additions and 146 deletions
|
|
@ -1023,7 +1023,7 @@ template eventParser*(pegAst, handlers: untyped): (proc(s: string): int) =
|
|||
## Symbols declared in an *enter* handler can be made visible in the
|
||||
## corresponding *leave* handler by annotating them with an *inject* pragma.
|
||||
proc rawParse(s: string, p: Peg, start: int, c: var Captures): int
|
||||
{.genSym.} =
|
||||
{.gensym.} =
|
||||
|
||||
# binding from *macros*
|
||||
bind strVal
|
||||
|
|
@ -1058,7 +1058,7 @@ template eventParser*(pegAst, handlers: untyped): (proc(s: string): int) =
|
|||
matchOrParse(parseIt)
|
||||
parseIt(s, p, start, c)
|
||||
|
||||
proc parser(s: string): int {.genSym.} =
|
||||
proc parser(s: string): int {.gensym.} =
|
||||
# the proc to be returned
|
||||
var
|
||||
ms: array[MaxSubpatterns, (int, int)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue