mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 22:33:49 +00:00
misc cleanups (#16383)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user