further adaptations
This commit is contained in:
parent
cd2c6128d1
commit
c6034277fc
52 changed files with 87 additions and 87 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue