preparations for the new symbol binding rules for clean templates

This commit is contained in:
Araq
2013-05-18 10:05:06 +02:00
parent b75d23b5e7
commit ce5a1365c2
3 changed files with 4 additions and 3 deletions

View File

@@ -163,7 +163,7 @@ proc genClosureCall(p: BProc, le, ri: PNode, d: var TLoc) =
app(pl, genArgNoParam(p, ri.sons[i]))
if i < length - 1: app(pl, ~", ")
template genCallPattern =
template genCallPattern {.dirty.} =
lineF(p, cpsStmts, CallPattern & ";$n", op.r, pl, pl.addComma, rawProc)
let rawProc = getRawProcType(p, typ)

View File

@@ -1028,7 +1028,7 @@ proc readIntoBuf(socket: TSocket, flags: int32): int =
socket.bufLen = result
socket.currPos = 0
template retRead(flags, readBytes: int) =
template retRead(flags, readBytes: int) {.dirty.} =
let res = socket.readIntoBuf(flags.int32)
if res <= 0:
if readBytes > 0:

View File

@@ -194,7 +194,8 @@ when not defined(JS) and not defined(NimrodVM):
data: array[0..100_000_000, char]
NimString = ptr NimStringDesc
template space(s: PGenericSeq): int = s.reserved and not seqShallowFlag
template space(s: PGenericSeq): int {.dirty.} =
s.reserved and not seqShallowFlag
include "system/hti"