diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-03-14 01:25:25 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-03-14 01:25:25 +0100 |
commit | 7bf98411b6d4dfd203371b5d2ec0a5ef3a2305df (patch) | |
tree | 23f76f650800ca9508e17869cc83fc8061d1f310 /lib/pure/strtabs.nim | |
parent | 3dafd6856bfd644e9cf518b36e5bfedc3220a702 (diff) | |
download | Nim-7bf98411b6d4dfd203371b5d2ec0a5ef3a2305df.tar.gz |
version 0.8.8
Diffstat (limited to 'lib/pure/strtabs.nim')
-rwxr-xr-x | lib/pure/strtabs.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/strtabs.nim b/lib/pure/strtabs.nim index 8ea59637a..38be1e983 100755 --- a/lib/pure/strtabs.nim +++ b/lib/pure/strtabs.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2008 Andreas Rumpf +# (c) Copyright 2010 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -36,7 +36,7 @@ proc newStringTable*(keyValuePairs: openarray[string], ## var mytab = newStringTable("key1", "val1", "key2", "val2", ## modeCaseInsensitive) -proc newStringTable*(mode: TStringTableMode = modeCaseSensitive): PStringTable +proc newStringTable*(mode: TStringTableMode): PStringTable ## creates a new string table that is empty. proc `[]=`*(t: PStringTable, key, val: string) @@ -79,7 +79,7 @@ const growthFactor = 2 startSize = 64 -proc newStringTable(mode: TStringTableMode = modeCaseSensitive): PStringTable = +proc newStringTable(mode: TStringTableMode): PStringTable = new(result) result.mode = mode result.counter = 0 |