summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* make terminal.nim work with --app:guiAraq2015-10-191-2/+4
|
* added poDemon flag for process managementAraq2015-10-191-4/+6
|
* terminal: Support both styled stdout and stderrAdam Strzelecki2015-10-161-118/+189
| | | | | | | | | | | | This is important if we want to write styled diagnostics to stderr, eg. some tool outputting results to stdout, but writing styled error messages to stderr. Previously this module was assuming we are writing only to stdout. Now all module procs take file handle as first argument. Wrappers assuming stdout are provided for backwards compatibility. The new terminal.styledWriteLine(f, args) is provided and documented as counterpart for unstyled plain writeLine(f, args).
* terminal: Remove superflous hStdout = conHandleAdam Strzelecki2015-10-161-17/+13
| | | | Use just hStdout on Windows to keep handle to process stdout.
* Merge pull request #3437 from nim-lang/threadpool-isreadyAndreas Rumpf2015-10-151-0/+11
|\ | | | | Implement isReady procedure in threadpool module.
| * Implement isReady procedure in threadpool module.Dominik Picheta2015-10-121-0/+11
| |
* | add {.pop.} for {.push debugger:off.} to balance push/popJamesP2015-10-141-1/+3
| |
* | updated httpclient to use tables.getOrDefaultAraq2015-10-141-7/+7
| |
* | Merge branch 'devel' of https://github.com/nim-lang/Nim into develAraq2015-10-132-1/+95
|\ \
| * | added all/any/allIt/anyIt with tests and inline documentationrbmz2015-10-131-0/+93
| |/ | | | | | | Signed-off-by: rbmz <rbmz@users.noreply.github.com>
| * Merge pull request #3335 from SSPkrolik/teardown-moveAndreas Rumpf2015-10-121-1/+2
| |\ | | | | | | Moved teardown call to try block for namespace access reasons
| | * Moved teardown call to try block for namespace access reasonsRostyslav Dzinko2015-09-171-1/+2
| | |
* | | udpated the compiler and tester to use getOrDefaultAraq2015-10-1310-29/+38
| | |
* | | added getOrDefault; bootstrapping works againAraq2015-10-134-34/+46
| | |
* | | Merge branch 'mget' of https://github.com/def-/Nim into def--mgetAraq2015-10-135-57/+125
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim
| * | Rename mget to `[]`def2015-03-315-90/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string
* | | 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
| | | | | |