diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-05-16 17:32:18 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-05-16 17:32:18 +0200 |
commit | 503f7806765f0cc6f072f578e272d12d3f9cce56 (patch) | |
tree | f6ad4a0cdf637ae9335f73cae482b3deb36fb353 /compiler/ast.nim | |
parent | 224eec595a6112c7aa3a4c06afacc99167580464 (diff) | |
parent | 3e52bb6535a70339cf4a15123be09916ef0c31f6 (diff) | |
download | Nim-503f7806765f0cc6f072f578e272d12d3f9cce56.tar.gz |
Merge branch 'zahary' into araq2
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 49ca1c5e0..5b68e9712 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -452,10 +452,12 @@ type nfExprCall # this is an attempt to call a regular expression nfIsRef # this node is a 'ref' node; used for the VM nfPreventCg # this node should be ignored by the codegen + nfBlockArg # this a stmtlist appearing in a call (e.g. a do block) TNodeFlags* = set[TNodeFlag] TTypeFlag* = enum # keep below 32 for efficiency reasons (now: 30) tfVarargs, # procedure has C styled varargs + # tyArray type represeting a varargs list tfNoSideEffect, # procedure type does not allow side effects tfFinal, # is the object final? tfInheritable, # is the object inheritable? @@ -1346,6 +1348,9 @@ proc initIdTable*(x: var TIdTable) = x.counter = 0 newSeq(x.data, StartSize) +proc newIdTable*: TIdTable = + initIdTable(result) + proc resetIdTable*(x: var TIdTable) = x.counter = 0 # clear and set to old initial size: |