From 9fd21ba2db34a2e1c3a7bee9a6c07791608c8dce Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 21 May 2013 22:36:46 +0200 Subject: [PATCH] fixed typos in the manual; kept trimcc tool up to date --- doc/manual.txt | 8 ++++---- tools/trimcc.nim | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/manual.txt b/doc/manual.txt index 31bd7134dc..08e5f723b9 100644 --- a/doc/manual.txt +++ b/doc/manual.txt @@ -4670,7 +4670,7 @@ Example: NoForward pragma ---------------- -The `noforward`:idx pragma can be used to turn on and off a special compilation +The `noforward`:idx: pragma can be used to turn on and off a special compilation mode that to large extent eliminates the need for forward declarations. In this mode, the proc definitions may appear out of order and the compiler will postpone their semantic analysis and compilation until it actually needs to generate code @@ -4702,9 +4702,9 @@ times, but if exhaustive compilation of all definitions is required, using Example: -.. code-block: nimrod - - {. noforward: on .} +.. code-block:: nimrod + + {.noforward: on.} proc foo(x: int) = bar x diff --git a/tools/trimcc.nim b/tools/trimcc.nim index 499f04dbd1..fd15726a5a 100644 --- a/tools/trimcc.nim +++ b/tools/trimcc.nim @@ -12,13 +12,13 @@ proc walker(dir: string) = of pcFile: moveFile(dest=newName(path), source=path) # test if installation still works: - if execShellCmd(r"nimrod c --force_build tests\tlastmod") == 0: + if execShellCmd(r"nimrod c --force_build koch") == 0: echo "Optional: ", path removeFile(newName(path)) else: echo "Required: ", path # copy back: - moveFile(path, newName(path)) + moveFile(dest=path, sourc=newName(path)) of pcDir: walker(path) else: nil