tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
This commit is contained in:
parent
ac9c1cd6b9
commit
e80465dacf
372 changed files with 4486 additions and 4486 deletions
|
|
@ -15,12 +15,12 @@ type
|
|||
|
||||
echo FU.high
|
||||
|
||||
type
|
||||
type
|
||||
PKeyboard* = ptr object
|
||||
TKeyboardState* = object
|
||||
display*: pointer
|
||||
internal: array[int((KeyMax + 31)/32), cuint]
|
||||
|
||||
|
||||
echo myconst, " ", int((KeyMax + 31) / 32)
|
||||
|
||||
#bug 1304 or something:
|
||||
|
|
|
|||
|
|
@ -79,23 +79,23 @@ proc asmx64 () {.compileTime} =
|
|||
|
||||
case state:
|
||||
of leading:
|
||||
|
||||
|
||||
echo "b100 ", start
|
||||
start += code.skipWhile (leadingWhiteSpace, start)
|
||||
echo "b200 ", start
|
||||
let ch = code [start]
|
||||
if ch in endOfLine:
|
||||
inc (line)
|
||||
#echo "c100 ", start, ' ', code
|
||||
#echo "c100 ", start, ' ', code
|
||||
start += code.skipWhile (endOfline, start)
|
||||
#echo "c200 ", start, ' ', code
|
||||
#echo "c200 ", start, ' ', code
|
||||
continue
|
||||
elif ch in symbolStart:
|
||||
state = mnemonic
|
||||
elif ch in eolComment:
|
||||
state = skipToEndOfLine
|
||||
elif ch in passthrough_start:
|
||||
get_passthrough ()
|
||||
get_passthrough ()
|
||||
echo "d100 ", start
|
||||
start += code.parseUntil (token, end_or_symbol_or_comment_or_passthrough, start)
|
||||
echo "d200 ", start
|
||||
|
|
@ -124,7 +124,7 @@ proc asmx64 () {.compileTime} =
|
|||
if codeLen <= start:
|
||||
state = endCmd
|
||||
continue
|
||||
|
||||
|
||||
let ch = code [start]
|
||||
if ch in passthrough_start:
|
||||
get_passthrough ()
|
||||
|
|
@ -148,7 +148,7 @@ proc asmx64 () {.compileTime} =
|
|||
of endCmd:
|
||||
cpp.add ");\n"
|
||||
state = skipToEndOfLine
|
||||
|
||||
|
||||
of skipToEndOfLine:
|
||||
echo "a100 ", start
|
||||
start += code.skipUntil (endOfLine, start)
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ Possible Commands:
|
|||
csource [options] builds the C sources for installation
|
||||
zip builds the installation ZIP package
|
||||
inno builds the Inno Setup installer
|
||||
""" % [NimVersion & spaces(44-len(NimVersion)),
|
||||
""" % [NimVersion & spaces(44-len(NimVersion)),
|
||||
CompileDate, CompileTime]
|
||||
|
||||
echo HelpText
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ when true:
|
|||
|
||||
const
|
||||
x = testProc()
|
||||
|
||||
|
||||
echo "##", x, "##"
|
||||
|
||||
# bug #1310
|
||||
|
|
|
|||
|
|
@ -11,4 +11,4 @@ proc foobar(): int =
|
|||
discard
|
||||
0
|
||||
|
||||
const x = foobar()
|
||||
const x = foobar()
|
||||
|
|
|
|||
|
|
@ -8,19 +8,19 @@ discard """
|
|||
type
|
||||
TAggRgba8* = array[4, byte]
|
||||
|
||||
template R*(self: TAggRgba8): byte = self[0]
|
||||
template G*(self: TAggRgba8): byte = self[1]
|
||||
template B*(self: TAggRgba8): byte = self[2]
|
||||
template A*(self: TAggRgba8): byte = self[3]
|
||||
template R*(self: TAggRgba8): byte = self[0]
|
||||
template G*(self: TAggRgba8): byte = self[1]
|
||||
template B*(self: TAggRgba8): byte = self[2]
|
||||
template A*(self: TAggRgba8): byte = self[3]
|
||||
|
||||
template `R=`*(self: TAggRgba8, val: byte) =
|
||||
self[0] = val
|
||||
template `G=`*(self: TAggRgba8, val: byte) =
|
||||
self[1] = val
|
||||
template `B=`*(self: TAggRgba8, val: byte) =
|
||||
self[2] = val
|
||||
template `A=`*(self: TAggRgba8, val: byte) =
|
||||
self[3] = val
|
||||
template `R=`*(self: TAggRgba8, val: byte) =
|
||||
self[0] = val
|
||||
template `G=`*(self: TAggRgba8, val: byte) =
|
||||
self[1] = val
|
||||
template `B=`*(self: TAggRgba8, val: byte) =
|
||||
self[2] = val
|
||||
template `A=`*(self: TAggRgba8, val: byte) =
|
||||
self[3] = val
|
||||
|
||||
proc ABGR* (val: int| int64): TAggRgba8 =
|
||||
var V = val
|
||||
|
|
@ -32,5 +32,5 @@ proc ABGR* (val: int| int64): TAggRgba8 =
|
|||
result.A = (V shr 8) and 0xFF
|
||||
|
||||
const
|
||||
c1 = ABGR(0xFF007F7F)
|
||||
c1 = ABGR(0xFF007F7F)
|
||||
echo ABGR(0xFF007F7F).repr, c1.repr
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ template getScriptDir(): string =
|
|||
const
|
||||
relRes = slurp"../../readme.txt"
|
||||
absRes = slurp(parentDir(parentDir(getScriptDir())) / "readme.txt")
|
||||
|
||||
|
||||
echo relRes
|
||||
echo absRes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue