further adaptations

This commit is contained in:
Araq 2014-08-29 09:12:12 +02:00
commit c6034277fc
52 changed files with 87 additions and 87 deletions

View file

@ -6,7 +6,7 @@ discard """
"""
## 99 Bottles of Beer
## http://www.99-bottles-of-beer.net/
## Nimrod version
## Nim version
## Author: Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
# 2012-11-25

View file

@ -10,8 +10,8 @@ static int cvariable = 420;
""".}
proc embedsC() =
var nimrodVar = 89
{.emit: """printf("%d\n", cvariable + (int)`nimrodVar`);""".}
var nimVar = 89
{.emit: """printf("%d\n", cvariable + (int)`nimVar`);""".}
embedsC()

View file

@ -37,7 +37,7 @@ macrotest(stdout)
#GC_disable()
echo("This was compiled by Nimrod version " & system.nimrodVersion)
echo("This was compiled by Nim version " & system.nimVersion)
writeln(stdout, "Hello", " World", "!")
echo(["a", "b", "c", "d"].len)

View file

@ -1,8 +1,8 @@
discard """
cmd: "nimrod $target --hints:on -d:release $options $file"
cmd: "nim $target --hints:on -d:release $options $file"
"""
# -*- nimrod -*-
# -*- nim -*-
import math
import os