misc cleanups (#16383)

This commit is contained in:
Timothee Cour 2020-12-17 23:53:43 -08:00 • committed by GitHub
commit df17cf5e9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 7 deletions

View file

@ -7,20 +7,21 @@
# distribution, for details about the copyright. # distribution, for details about the copyright.
# #
# This is the documentation generator. It is currently pretty simple: No # This is the documentation generator. Cross-references are generated
# semantic checking is done for the code. Cross-references are generated
# by knowing how the anchors are going to be named. # by knowing how the anchors are going to be named.
import import
ast, strutils, strtabs, options, msgs, os, ropes, idents, ast, strutils, strtabs, options, msgs, os, ropes, idents,
wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast, wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast,
packages/docutils/rst, packages/docutils/rstgen, packages/docutils/rst, packages/docutils/rstgen,
json, xmltree, cgi, trees, types, json, xmltree, trees, types,
typesrenderer, astalgo, lineinfos, intsets, typesrenderer, astalgo, lineinfos, intsets,
pathutils, trees, tables, nimpaths, renderverbatim, osproc pathutils, trees, tables, nimpaths, renderverbatim, osproc
from uri import encodeUrl
from std/private/globs import nativeToUnixPath from std/private/globs import nativeToUnixPath
const const
exportSection = skField exportSection = skField
docCmdSkip = "skip" docCmdSkip = "skip"

View file

@ -28,7 +28,7 @@
import ast, intsets, tables, options, lineinfos, hashes, idents, import ast, intsets, tables, options, lineinfos, hashes, idents,
incremental, btrees, md5 incremental, btrees, md5
import ic / packed_ast # import ic / packed_ast
type type
SigHash* = distinct MD5Digest SigHash* = distinct MD5Digest

View file

@ -873,9 +873,9 @@ else:
template `<//>`*(t: untyped): untyped = t template `<//>`*(t: untyped): untyped = t
template disarm*(x: typed) = template disarm*(x: typed) =
## Useful for ``disarming`` dangling pointers explicitly for the ## Useful for `disarming` dangling pointers explicitly for `--newruntime`.
## --newruntime. Regardless of whether --newruntime is used or not ## Regardless of whether `--newruntime` is used or not
## this sets the pointer or callback ``x`` to ``nil``. This is an ## this sets the pointer or callback `x` to `nil`. This is an
## experimental API! ## experimental API!
x = nil x = nil