| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
Make sure the json module decodes UTF16 correctly
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
add simple example for execProcess, exeCmd, execCmdEx
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
So elif defined(mac) has absolutely no effect, also this block uses some legacy
discouraged NSCreateObjectFileImageFromFile function.
|
| | |
| | |
| | |
| | | |
of how software should be packaged which didn't work in 1970 and surprise doesn't work in 2015 either
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
addr, and, or, xor, div, mod, shl, cmp, setLen
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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).
|
|/ /
| |
| |
| | |
Use just hStdout on Windows to keep handle to process stdout.
|
|\ \
| | |
| | | |
Implement isReady procedure in threadpool module.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|/| |
|
|\ \ |
|
| |/
| |
| |
| | |
Signed-off-by: rbmz <rbmz@users.noreply.github.com>
|
| |\
| | |
| | | |
Moved teardown call to try block for namespace access reasons
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- 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
|
| | |
| | |
| | |
| | | |
buffer; refs #3270
|
| | | |
|
|\ \ \
| | | |
| | | | |
Export substituteLog
|
| | | | |
|
| | | |
| | | |
| | | | |
Allow Nim users to create their own loggers
|
|\ \ \ \
| | | | |
| | | | | |
Break sequtils
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
rbehrends-gc-fixes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Added procs:
isAlpha
isAlphaNumeric
isDigit
isSpace
isUpper
isLower
|
|\ \ \ \ \
| | | | | |
| | | | | | |
added hash procs for handling portions of strings/arrays/seqs.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Emscripten support
|