summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* logging.nim: expose underlying 'file' object; errors and fatals flush the ↵Araq2015-10-121-10/+13
| | | | buffer; refs #3270
* docs now build againAraq2015-10-122-2/+178
|
* Merge pull request #3432 from FedericoCeratto/patch-4Andreas Rumpf2015-10-121-1/+3
|\ | | | | Export substituteLog
| * Add substituteLog docsFederico Ceratto2015-10-091-0/+2
| |
| * Export substituteLogFederico Ceratto2015-10-091-1/+1
| | | | | | Allow Nim users to create their own loggers
* | Merge pull request #3423 from petermora/breakSequtilsAndreas Rumpf2015-10-121-35/+168
|\ \ | | | | | | Break sequtils
| * | restore {.immediate.} to toSeqPeter Mora2015-10-061-1/+1
| | |
| * | sequtils related changesPeter Mora2015-10-051-36/+169
| | |
* | | cleaned up ospaths moduleAraq2015-10-121-19/+27
| | |
* | | Made strutils string test procs less redundant.Joey Payne2015-10-101-49/+49
| | |
* | | Added tests for string test procs.Joey Payne2015-10-101-0/+52
| | |
* | | Changed alphanumeric check to "or" instead of "and".Joey Payne2015-10-101-1/+1
| | |
* | | Added useful procs to strutils for string testing.Joey Payne2015-10-091-0/+126
| |/ |/| | | | | | | | | | | | | | | | | | | Added procs: isAlpha isAlphaNumeric isDigit isSpace isUpper isLower
* | Merge pull request #3425 from jlp765/hashes1Dominik Picheta2015-10-081-4/+70
|\ \ | | | | | | added hash procs for handling portions of strings/arrays/seqs.
| * | added hash procs for handling portions of strings/arrays/seqs.JamesP2015-10-071-4/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | added tests at bottom of file changed some doco layout Makes hashing iteratively through buffers faster when you don't have to pass copied portions of the buffer to the hash function
* | | osproc: fixes a long standing buffering bug on WindowsAraq2015-10-071-1/+1
| | |
* | | fixes regressionAraq2015-10-071-3/+3
| | |
* | | Merge pull request #3380 from greyanubis/develAndreas Rumpf2015-10-071-0/+13
|\ \ \ | |/ / |/| | Add proc to change an element tag and proc to insert xmlnode child
| * | added proc to change an element tag and proc to insert xmlnode childsergey.anufriev2015-09-261-0/+13
| | |
* | | Merge remote-tracking branch 'origin/devel' into fix-test-failuresAman Gupta2015-10-0616-3721/+149
|\ \ \
| * | | added critbits.inc procAraq2015-10-061-0/+8
| | | |
| * | | strutils: wrap too long linesAraq2015-10-061-8/+14
| | | |
| * | | add assert test to end of moduleJamesP2015-10-061-6/+9
| | | |
| * | | bug fix #3416 add wrapper around `[]=` to account forJamesP2015-10-051-3/+6
| | |/ | |/| | | | | | | changes in StringTableRef disabling inc of counter
| * | Merge pull request #3415 from jlp765/rationals2Dominik Picheta2015-10-041-0/+62
| |\ \ | | | | | | | | rationals add toRational(float) conversion
| | * | Add toRational(float) conversion from any float to closestJamesP2015-10-041-0/+62
| | | | | | | | | | | | | | | | approx for specified precision
| * | | Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-035-51/+56
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.
| * | Merge pull request #3389 from nanoant/patch/separate-deprecated-modulesDominik Picheta2015-10-037-3661/+0
| |\ \ | | | | | | | | Patch/separate deprecated modules
| | * | Move deprecated modules into lib/deprecated/Adam Strzelecki2015-09-307-3661/+0
| | | | | | | | | | | | | | | | | | | | This gives clear indication what modules are now deprecated and reduce clutter in non-deprecated module directories.
| * | | Merge pull request #3393 from nanoant/patch/fix-freebsd-getaddrinfoDominik Picheta2015-10-031-1/+3
| |\ \ \ | | | | | | | | | | rawsockets: Fix getaddrinfo on FreeBSD
| | * | | rawsockets: Fix getaddrinfo on FreeBSDAdam Strzelecki2015-09-301-1/+3
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently due bug in FreeBSD passing AI_V4MAPPED to addrinfo.ai_flags causes getaddrinfo to fail with EAI_BADFLAGS ("Invalid value for ai_flags"). That's why we should disable this flag for now on FreeBSD. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092
* | | | 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-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | 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-291-10/+84
|\ \ | | | | | | 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
| | |
* | | osproc: free resources properly for the new poInteractive flagAraq2015-09-291-0/+1
| | |