misc cleanups (#16383)

This commit is contained in:
Timothee Cour
2020-12-17 23:53:43 -08:00
committed by GitHub
parent 868c31e88a
commit df17cf5e9e
3 changed files with 8 additions and 7 deletions

View File

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

View File

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

View File

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