summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add link to packaging.html (#13194)Federico Ceratto2020-01-191-0/+2
|
* fix docs + API for fieldPairs, fields (#13189)Timothee Cour2020-01-181-26/+40
|
* maybe: allows optional chaining of field access and indexing when LHS i snil ↵Timothee Cour2020-01-181-0/+109
| | | | | | | | | (#13023) * maybe: allows optional chaining * fix tools/kochdocs.nim * improve semantics to distinguish valid from invalid values * for now, wrapnil, isValid, unwrap are not exported
* times: toUnixFloat, fromUnixFloat (#13044)Timothee Cour2020-01-182-10/+29
|
* refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} ↵Timothee Cour2020-01-181-11/+7
| | | | | | | (#13136) * refs #13054 correctly handle {.exportc,dynlib.} and {.exportcpp,dynlib.} * put back NIM_EXTERNC for N_LIB_EXPORT; causes issues with compilerproc
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-173-38/+39
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-1612-58/+58
|
* Remove obsolete code from osalloc (#13158)Ico Doornekamp2020-01-161-10/+0
|
* ARC: misc bugfixes (#13156)Andreas Rumpf2020-01-151-1/+1
| | | | | | | | * fixes #13102 * closes #13149 * ARC: fixes a move optimizer bug (there are more left regarding array and tuple indexing) * proper fix; fixes #12957 * fixes yet another case object '=' code generation problem
* export normalizePathEnd (#13152)Timothee Cour2020-01-151-0/+9
|
* System cleanup, part 2 (#13155)Miran2020-01-159-1649/+1700
| | | | | | | | * create basic_types, arithmetics, exceptions, comparisons * create setops.nim * create memalloc.nim * create gc_interface.nim * create iterators_1.nim
* Added 'ansic' os support for minimal (embedded) targets (#13088)Ico Doornekamp2020-01-155-70/+80
| | | | | | | | * os:any implementation * os:asny: omit flock/funlock calls in echoBinSafe * Disabled default "unhandled expection" reporting for `--os:any` to reduce code size. Added unhandledExceptionHook instead which can be used to get a notification from Nim and handle it from the application.
* Expose more openSSL methods. (#13131)treeform2020-01-131-0/+43
|
* fix the ftp store function read the local file bug (#13108) [backport]perter lee2020-01-131-4/+4
| | | | | | | | * Update asyncftpclient.nim When use newStringOfCap function not have assign memory for the string data,so if use this address the fault is rasise. * complelete the bugfix
* VM FFI: write(stderr, msg) and fprintf(cstderr, msg) now work at CT (#13083)Timothee Cour2020-01-122-5/+16
|
* Add link to posix_utils.html in posix.nim (#13111)Federico Ceratto2020-01-121-1/+4
|
* Remove some unused/disabled OpenSSL functions (#13106)treeform2020-01-111-135/+0
|
* more arc features (#13098)Andreas Rumpf2020-01-102-12/+189
| | | | | * config update * ARC now supports 'repr' and 'new' with finalizers is supported
* [backport] fix #12813, fix #13079 (#13099)Miran2020-01-101-4/+14
| | | Correctly remove a key from CountTable when it is set to zero.
* System cleanup, part 1 (#13069)Miran2020-01-101-496/+512
| | | | | | * system.nim: mark what every .pop does * system.nim: un-nest when statements
* fixes an asyncftpclient bug; refs #13096 [backport]Andreas Rumpf2020-01-101-1/+1
|
* [backport] system/io.nim fix wrong documentation comment [ci skip]narimiran2020-01-101-2/+2
|
* typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get ↵Timothee Cour2020-01-102-0/+42
| | | | | | (#13064)
* fixes #13070Araq2020-01-101-2/+2
|
* Fix error check code in osproc (#13090) [backport]Tomohiro2020-01-091-1/+1
|
* Use '__noinline' instead of 'noinline' for N_NOINLINE gcc attribute, this ↵Ico Doornekamp2020-01-091-1/+1
| | | | prevents clashes with systems where 'noinline' might be already defined (#13089)
* take the one good idea from --os:standalone and enable it via ↵Andreas Rumpf2020-01-092-8/+8
| | | | -d:StandaloneHeapSize (#13077)
* Deleted misplaced separator (#13085) [backport]Teashrock2020-01-091-1/+0
| | | Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
* distinctBase type trait for distinct types (#13031)cooldome2020-01-082-32/+8
|
* basename supports pragmaexpr (#13045)b3liever2020-01-071-2/+4
| | | | | | * basename supports pragmaexpr * update changelog
* add pqserverVersion,pqconnectionNeedsPassword,pqconnectionUsedPassword (#13060)Bung2020-01-071-0/+6
|
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+1
|
* Rst parser respect `:start-after:` and `:end-before:` in `include` directive ↵Kamanji2020-01-051-10/+39
| | | | | | | | | | | | | (#12972) * [FEATURE] rst parser respect :start-after: in include Rst parser now respects `:start-after:` and `:end-before:` attributes for `include` directive. * [DOC] include directive parsing proc update * [TEST] Added unit tests for include rst directive in `rst` module
* fixes #12996Araq2020-01-051-1/+2
|
* reprjs: style changesAraq2020-01-051-12/+12
|
* fixes #13013, reverts previous changes to readLines() (#13036) [backport]cooldome2020-01-051-3/+5
| | | | | | | * Revert "remove default argument for readLines (#12807) [backport]" This reverts commit c949b81efdeb08b38224e1678ad140b7b7663b15.
* fixes #13032Araq2020-01-043-8/+8
|
* remove default argument for readLines (#12807) [backport]cooldome2020-01-021-3/+3
|
* --exception:goto switch for deterministic exception handling (#12977)Andreas Rumpf2020-01-014-103/+127
| | | | | This implements "deterministic" exception handling for Nim based on goto instead of setjmp. This means raising an exception is much cheaper than in C++'s table based implementations. Supports hard realtime systems. Default for --gc:arc and the C target because it's generally a good idea and arc is all about deterministic behavior. Note: This implies that fatal runtime traps are not catchable anymore! This needs to be documented.
* fixes #12965 (#12991)Andreas Rumpf2019-12-311-10/+11
|
* c_fflush() the rawWrite() buffer (#12987)Ștefan Talpalaru2019-12-301-0/+4
| | | | | | Stack traces on an unbuffered stderr get out of sync with line-buffered stdout - usually on Windows terminals or CI logs. This fixes it by calling C's fflush() on the output buffer in the procedure used for printing stack traces.
* Check pqntuples > 0 in getValue. Fixes #12973 (#12974)Chris Heller2019-12-291-4/+12
|
* Added fix for handling TaintedStrings in streams and httpclient (#12969)Sam Wang2019-12-292-6/+14
| | | | | | * Added fix for taint mode in streams and httpclient * Removed taintMode export from system.nim
* generic stack trace overriding mechanism (#12922)Ștefan Talpalaru2019-12-291-10/+33
| | | | | | | | | | | | | | | | * libbacktrace support * switch to a generic stack trace overriding mechanism When "nimStackTraceOverride" is defined, once of the imported modules can register its own procedure to replace the default stack trace generation by calling `registerStackTraceOverride(myOwnProc)`. Tested with `./koch boot -d:release --debugger:native -d:nimStackTraceOverride --import:libbacktrace` for the compiler itself and `./bin/nim c -r -f --stacktrace:off --debugger:native -d:nimStackTraceOverride --import:libbacktrace foo.nim` for an external program. * make the StackTraceOverrideProc {.noinline.}
* parsecfg: retain CRLF line breaks, fixes #12970 (#12971)Simon Krauter2019-12-291-3/+3
|
* Allow customize Host headerJack Tang2019-12-281-4/+5
|
* minor refactoringsAndreas Rumpf2019-12-271-9/+9
|
* osproc: fixes regressionAraq2019-12-241-1/+1
|
* ARC: default to a shared heap with --threads:onAraq2019-12-243-5/+15
|
* ported re.nim to ARCAraq2019-12-241-1/+10
|