Merge ../Nim into devel
This commit is contained in:
commit
55840d9505
112 changed files with 313 additions and 311 deletions
|
|
@ -6,7 +6,7 @@ def\tskType\tsystem.string\tstring
|
|||
> idetools --track:$TESTNIM,12,35 --def $SILENT
|
||||
def\tskLet\t$MODULE.failtest.input\tTaintedString
|
||||
|
||||
# The following fail because they seem shifted one colum to the right.
|
||||
# The following fail because they seem shifted one column to the right.
|
||||
> idetools --track:$TESTNIM,12,16 --def $SILENT
|
||||
def\tskTemplate\tsequtils.toSeq\tproc \(expr\): expr
|
||||
> idetools --track:$TESTNIM,12,22 --def $SILENT
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import unicode, sequtils
|
|||
|
||||
# This example shows that idetools returns proc as signature for everything
|
||||
# which can be called. While a clever person would use the second column to
|
||||
# differentiate betwen procs, methods and others, why does the output contain
|
||||
# differentiate between procs, methods and others, why does the output contain
|
||||
# incorrect information?
|
||||
|
||||
type
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@ type
|
|||
PSegmentQueryInfo* = ptr TSegmentQueryInfo
|
||||
#/ Segment query info struct.
|
||||
TSegmentQueryInfo*{.pf.} = object
|
||||
shape*: PShape #/ The shape that was hit, NULL if no collision occured.
|
||||
shape*: PShape #/ The shape that was hit, NULL if no collision occurred.
|
||||
t*: CpFloat #/ The normalized distance along the query segment in the range [0, 1].
|
||||
n*: TVector #/ The normal of the surface hit.
|
||||
TShapeType*{.size: sizeof(cint).} = enum
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ proc compress*(source: string): string =
|
|||
result.setLen destLen
|
||||
var res = zlib.compress(cstring(result), addr destLen, cstring(source), sourceLen)
|
||||
if res != Z_OK:
|
||||
echo "Error occured: ", res
|
||||
echo "Error occurred: ", res
|
||||
elif destLen < result.len:
|
||||
result.setLen(destLen)
|
||||
|
||||
|
|
@ -17,7 +17,7 @@ proc uncompress*(source: string, destLen: var int): string =
|
|||
result.setLen destLen
|
||||
var res = zlib.uncompress(cstring(result), addr destLen, cstring(source), source.len)
|
||||
if res != Z_OK:
|
||||
echo "Error occured: ", res
|
||||
echo "Error occurred: ", res
|
||||
|
||||
|
||||
when isMainModule:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
# Test for a hard to fix internal error
|
||||
# occured in the SDL library
|
||||
# occurred in the SDL library
|
||||
|
||||
{.push dynlib: "SDL.dll", callconv: cdecl.}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue