summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3442 from Dhertz/develAndreas Rumpf2015-10-231-8/+32
|\ | | | | Make sure the json module decodes UTF16 correctly
| * Add UTF-16 decoding tests to json moduleDaniel Hertz2015-10-131-3/+7
| |
| * Make sure the json module decodes UTF16 correctlyDaniel Hertz2015-10-131-5/+25
| | | | | | | | | | | | | | Javascript uses UTF-16 as its internal representation of strings, so JSON does so as well. This means that we could have surrogate pairs, with codepoints above 0xFFFF that take 2 ecape codes to decode.
* | Merge pull request #3454 from jlp765/osprocAndreas Rumpf2015-10-231-0/+14
|\ \ | | | | | | add simple example for execProcess, exeCmd, execCmdEx
| * | add simple example for execProcess, exeCmd, execCmdExJamesP2015-10-161-0/+14
| | |
* | | system/dyncalls: OS X is already handled as posixAdam Strzelecki2015-10-221-36/+0
| | | | | | | | | | | | | | | So elif defined(mac) has absolutely no effect, also this block uses some legacy discouraged NSCreateObjectFileImageFromFile function.
* | | documentation improvements; system.nim docs adapted to unix's braindead idea ↵Araq2015-10-211-8/+0
| | | | | | | | | | | | of how software should be packaged which didn't work in 1970 and surprise doesn't work in 2015 either
* | | fixes wrong doc commentsAraq2015-10-191-4/+4
| | |
* | | make terminal.nim work with --app:guiAraq2015-10-191-2/+4
| | |
* | | createThread is more convenient to use with a proc taking no argumentsAraq2015-10-191-0/+3
| | |
* | | added poDemon flag for process managementAraq2015-10-192-4/+8
| | |
* | | add example to proc headings forJamesP2015-10-191-2/+42
| | | | | | | | | | | | addr, and, or, xor, div, mod, shl, cmp, setLen
* | | 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
| | |
* | | Avoid extra copy in JS when inserting.Yuriy Glukhov2015-10-151-1/+1
| | |
* | | Fixed ret by var in jsYuriy Glukhov2015-10-152-4/+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-1313-40/+59
| | |
* | | 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-316-91/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | - 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/+0
| | |
* | | 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-122-82/+168
|\ \ \ \ | | | | | | | | | | Break sequtils
| * | | | restore {.immediate.} to toSeqPeter Mora2015-10-061-1/+1
| | | | |
| * | | | sequtils related changesPeter Mora2015-10-052-83/+169
| | | | |
* | | | | Merge branch 'gc-fixes' of https://github.com/rbehrends/Nim into ↵Araq2015-10-123-42/+74
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | rbehrends-gc-fixes
| * | | | | Remove spurious unsigned operations from system/threads.nim.Reimer Behrends2015-09-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These operations were included before the unsigned module was incorporated directly into system.nim and subsequently caused compilation errors with --gc:go due to duplicate definitions.
| * | | | | Properly register threads with the Boehm GC.Reimer Behrends2015-09-083-38/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to scan thread stacks, the Boehm GC needs to know about newly created threads. We establish the end of the stack by using GC_call_with_stack_base (this works properly also with the dual-stack Itanium architecture) and then GC_register_my_thread() to register a thrad and GC_unregister_my_thread() to unregister it again. This patch also includes a modification for the refc and markandsweep collectors to set the stack bottom for thread stacks correctly even if an optimizer aggressively inlines and optimizes procedures (this is already being done for the stack of the main thread). Finally, we use the {.noconv.} pragma for the Boehm GC, as the Boehm API uses no specific calling convention.
| * | | | | Properly initialize the Boehm GC on all platforms.Reimer Behrends2015-09-061-1/+1
| | | | | |
* | | | | | 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 #3314 from haiodo/emscripten-supportAndreas Rumpf2015-10-072-9/+58
|\ \ \ \ \ \ | | | | | | | | | | | | | | Emscripten support