Replaced deprecated repeatStr() with repeat().

This commit is contained in:
Hans Raaf 2015-03-04 03:44:09 +01:00
commit b902ea887b
7 changed files with 14 additions and 14 deletions

View file

@ -949,7 +949,7 @@ proc genEcho(p: BProc, n: PNode) =
initLocExpr(p, n.sons[i], a)
appf(args, ", $1? ($1)->data:\"nil\"", [rdLoc(a)])
linefmt(p, cpsStmts, "printf($1$2);$n",
makeCString(repeatStr(n.len, "%s") & tnl), args)
makeCString(repeat("%s", n.len) & tnl), args)
proc gcUsage(n: PNode) =
if gSelectedGC == gcNone: message(n.info, warnGcMem, n.renderTree)