From 05b05be9f8554adc3081b71eb378940cb75428fd Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 6 Dec 2012 22:51:39 +0100 Subject: [PATCH] replaced recursivePath with shallowPath for Babel --- compiler/commands.nim | 5 ++--- doc/advopt.txt | 3 ++- todo.txt | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/compiler/commands.nim b/compiler/commands.nim index 50b4a1e6f..ad5f2b7e7 100755 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -202,9 +202,8 @@ proc addPathRec(dir: string, info: TLineInfo) = if dir[pos] in {DirSep, AltSep}: inc(pos) for k,p in os.walkDir(dir): if k == pcDir and p[pos] != '.': - addPathRec(p, info) if not contains(options.searchPaths, p): - Message(info, hintPath, p) + #Message(info, hintPath, p) lists.PrependStr(options.searchPaths, p) proc track(arg: string, info: TLineInfo) = @@ -226,7 +225,7 @@ proc processSwitch(switch, arg: string, pass: TCmdlinePass, info: TLineInfo) = of "path", "p": expectArg(switch, arg, pass, info) addPath(processPath(arg), info) - of "recursivepath": + of "shallowpath": expectArg(switch, arg, pass, info) var path = processPath(arg) addPathRec(path, info) diff --git a/doc/advopt.txt b/doc/advopt.txt index a6718572e..2498df0bc 100755 --- a/doc/advopt.txt +++ b/doc/advopt.txt @@ -25,7 +25,8 @@ Advanced options: --warning[X]:on|off turn specific warning X on|off --hints:on|off turn all hints on|off --hint[X]:on|off turn specific hint X on|off - --recursivePath:PATH add a path and all of its subdirectories + --shallowPath:PATH add a path and all of its subdirectories (but + not recursively) --lib:PATH set the system library path --import:PATH add an automatically imported module --include:PATH add an automatically included module diff --git a/todo.txt b/todo.txt index c5b5eb4e7..66d76926e 100755 --- a/todo.txt +++ b/todo.txt @@ -108,3 +108,4 @@ Bugs use a qualifier - blocks can "export" an identifier but the CCG generates {} for them ... - JS gen: fix exception handling +- the better scoping for locals is the wrong default for endb