summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* only compile coro.nim by avoiding "when isMainModule" string match inAman Gupta2015-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | testament/tester FAIL: coro.nim Test "lib/pure/coro.nim" in category "lib" Failure: reOutputsDiffer Expected: Gotten: c1 c2 c2 c1 c2 c1 c2 c1 c1 exits c2 exits done 1100220033
* fix float comparision failure in math testsAman Gupta2015-10-021-1/+1
| | | | | | | | | | | | | | | | | FAIL: math.nim Test "lib/pure/math.nim" in category "lib" Failure: reExitcodesDiffer Expected: exitcode: 0 Gotten: exitcode: 1 Output: Traceback (most recent call last) math.nim(478) math system.nim(3343) failedAssertImpl system.nim(3335) raiseAssert system.nim(2531) sysFatal Error: unhandled exception: tgamma(5.0'f64) == 24.0'f64 [AssertionError]
* remove trailing whitespace requirement from subexes test fileAman Gupta2015-10-021-14/+13
|
* fix rawsockets testAman Gupta2015-10-022-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL: trawsockets.nim Test "tests/cpp/trawsockets.nim" in category "cpp" Failure: reNimcCrash Expected: Gotten: Hint: system [Processing] Hint: trawsockets [Processing] Hint: rawsockets [Processing] Hint: unsigned [Processing] lib/pure/rawsockets.nim(15, 8) Warning: unsigned is deprecated [Deprecated] Hint: os [Processing] Hint: strutils [Processing] Hint: parseutils [Processing] Hint: times [Processing] Hint: posix [Processing] CC: compiler_trawsockets CC: stdlib_system CC: stdlib_rawsockets CC: stdlib_unsigned CC: stdlib_os CC: stdlib_strutils Error: execution of an external compiler program 'clang++ -c -w -I/Users/tmm1/code/nim/lib -o tests/cpp/nimcache/stdlib_rawsockets.o tests/cpp/nimcache/stdlib_rawsockets.cpp' failed with exit code: 256 tests/cpp/nimcache/stdlib_rawsockets.cpp:355:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC6 = gai_strerror(gairesult); ^ ~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:499:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC5 = hstrerror(h_errno); ^ ~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:650:8: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC9 = inet_ntop(AF_INET6, ((void*) (addr6)), result->data, ((NI32)chckRange((result ? result->len : 0), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:771:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ tests/cpp/nimcache/stdlib_rawsockets.cpp:859:10: error: assigning to 'NCSTRING' (aka 'char *') from incompatible type 'const char *' LOC17 = inet_ntop(name.sin6_family, ((void*) ((&name))), ((NCSTRING) (buf)), ((NI32)chckRange(((NI)sizeof(TY143006)), ((NI32) (-2147483647 -1)), ((NI32) 2147483647)))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 errors generated.
* Merge remote-tracking branch 'origin/devel' into fix-test-failuresAman Gupta2015-10-023-8/+14
|\
| * Added ReadIOEffect because thats what happens on OSX.Hans Raaf2015-10-021-4/+4
| |
| * Merge pull request #3402 from tmm1/exec-processes-after-cbAndreas Rumpf2015-10-021-1/+6
| |\ | | | | | | Add afterRunEvent callback to execProcesses()
| | * add afterRunEvent callback to execProcessesAman Gupta2015-09-301-1/+6
| | |
| * | add a few type checks to limit type to SomeIntegerJamesP2015-10-011-3/+3
| | | | | | | | | | | | | | | | | | (adding a compund type to the Rational type definition made it too difficult to define new variables using integer literals)
| * | add assertion for zero denominatorJamesP2015-10-011-0/+1
| |/
* | fix test failure in coro.nimAman Gupta2015-10-011-0/+1
| | | | | | | | | | | | | | | | | | FAIL: coro.nim Test "lib/pure/coro.nim" in category "lib" Failure: reNimcCrash Expected: Gotten: Coroutines require -d:nimCoroutines
* | fix test failures in subexes due to missing trailing whitespaceAman Gupta2015-10-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FAIL: subexes.nim Test "lib/pure/subexes.nim" in category "lib" Failure: reExitcodesDiffer Expected: exitcode: 0 Gotten: exitcode: 1 Output: Traceback (most recent call last) subexes.nim(385) subexes system.nim(3335) raiseAssert system.nim(2531) sysFatal Error: unhandled exception: "$#($\', \'10c\'\x0A \'{#..})" % ["doAssert", "longishA", "longish"] ==
* | fix failure in lib/pure/ospaths.nimAman Gupta2015-09-301-0/+4
|/ | | | | | | | | FAIL: ospaths.nim Test "lib/pure/ospaths.nim" in category "lib" Failure: reNimcCrash Expected: Gotten: invalid pragma: rtl
* Merge pull request #3345 from rbehrends/no-unmapAndreas Rumpf2015-09-301-4/+7
|\ | | | | Add option to disable munmap() use in the allocator.
| * Add option to disable munmap() use in the allocator.Reimer Behrends2015-09-181-4/+7
| | | | | | | | | | | | When compiling with '-d:nimAllocNoUnmap', the allocator will not attempt to return large chunks to the OS. For certain allocation behaviors, this can be a significant speedup.
* | NimScript: --threads:on works in a nims fileAraq2015-09-301-1/+1
| |
* | use const instead of letRadu Oana2015-09-301-1/+1
| |
* | Move magic numbers to constRadu Oana2015-09-301-5/+6
| |
* | Merge pull request #3388 from nanoant/patch/kqueue-support-for-osx-and-freebsdDominik Picheta2015-09-292-10/+155
|\ \ | | | | | | kqueue support for OS X and Free/Open/NetBSD
| * | selectors: Cleanup a bit epoll flavorAdam Strzelecki2015-09-291-10/+2
| | | | | | | | | | | | | | | | | | 1. Remove select documentation that is duplicate of nimdoc section below 2. Simplify a bit register proc code
| * | Selectors using OS X & Free/Open/NetBSD kqueue APIAdam Strzelecki2015-09-291-0/+82
| | |
| * | lib/posix: OS X & Free/Open/NetBSD kqueue APIAdam Strzelecki2015-09-291-0/+71
| | |
* | | NimScript: setCommand takes an optional project filenameAraq2015-09-291-1/+1
| | |
* | | osproc: free resources properly for the new poInteractive flagAraq2015-09-291-0/+1
| | |
* | | added osproc.poInteractive and osproc.hasData; both experimentalAraq2015-09-291-25/+105
| | |
* | | winlean additions; preparing for osproc patch to use named pipesAraq2015-09-291-0/+32
| | |
* | | os.walkDir supports yielding relative pathsAraq2015-09-291-4/+8
| | |
* | | fixesunicode.lastRuneAraq2015-09-291-2/+1
| | |
* | | added streams.readAll procAraq2015-09-291-0/+12
| | |
* | | Fixes #3207.Dominik Picheta2015-09-281-0/+10
|/ /
* | Merge pull request #3378 from jlp765/streamsExDominik Picheta2015-09-271-1/+21
|\ \ | | | | | | Streams examples & default newFileStream() file mode
| * | add default file mode to newFileStream()JamesP2015-09-261-1/+1
| | |
| * | add examples to top of module for stringStream and fileStreamJamesP2015-09-261-0/+20
| | |
* | | Merge pull request #3376 from TheAnonymous/develDominik Picheta2015-09-261-0/+46
|\ \ \ | |/ / |/| | Added examples in documenation for add del delete repr insert sizeof high low
| * | fixed wrong examplesJakob Oesterling2015-09-261-2/+2
| | |
| * | Merge branch 'devel' of github.com:TheAnonymous/Nim into develJakob Oesterling2015-09-251-0/+2
| |\ \
| * | | added examples in documenation for add del delete repr insertJakob Oesterling2015-09-251-0/+22
| | | |
| * | | added examples in documenation for sizeof high lowJakob Oesterling2015-09-251-0/+24
| | | |
* | | | Merge pull request #3369 from TheAnonymous/develDominik Picheta2015-09-251-0/+25
|\ \ \ \ | | |/ / | |/| | Added examples in documenation for len dec inc incl excl
| * | | Update system.nimJakob O.2015-09-241-0/+2
| |/ /
| * | added examples in documenation for len dec inc incl exclJakob Oesterling2015-09-241-0/+23
| | |
* | | Merge pull request #3316 from jlp765/memfilesWinCloseAndreas Rumpf2015-09-241-4/+9
|\ \ \ | | | | | | | | bug fix: close() only unmapViewOfFile when fHandle is valid.
| * | | Bug fix: change non-fmRead file mode to set GENERIC_READ or GENERIC_WRITEJamesP2015-09-241-1/+2
| | | | | | | | | | | | | | | | | | | | instead of GENERIC_ALL which on 64bit windows rasied an [OSError] exception
| * | | change type of windows handles to HandleJamesP2015-09-241-3/+3
| | | |
| * | | fix wasOpened reference and set to false on closeJamesP2015-09-231-1/+2
| | | |
| * | | Add wasOpened flag for windows, so not attempt close when unopenedJamesP2015-09-221-1/+4
| | | |
| * | | Undo zero checkJamesP2015-09-221-1/+1
| | | |
| * | | bug fix: close() only unmapViewOfFile() when fHandle is valid.JamesP2015-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | Added extra test on windows close so if already closed it doesn't throw an exception.
* | | | Merge pull request #3364 from tmm1/osx-ssl-compileDominik Picheta2015-09-242-8/+2
|\ \ \ \ | |_|/ / |/| | | Avoid referencing undefined SSLv2_method on MacOSX
| * | | raise with error messageAman Gupta2015-09-232-2/+2
| | | |