summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [backport] fix #11440, add docs to isNil for seq types needing nilseq ↵D-Nice2020-01-231-0/+12
| | | | (#13234) [ci skip]
* [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵Mera2020-01-231-2/+3
| | | | (#13231) [ci skip]
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* added note to re constructor regarding performance (#13224)whiterock2020-01-221-1/+5
| | | Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
* httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵Juan Carlos2020-01-211-5/+9
| | | | headers argument instead of hardcoded empty (#13207)
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-212-2/+6
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+2
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add idxmin() which returns the index of the minimum value * Add idxmax() which returns the index of the maximum value * Add tests for idxmin() * Add tests for idxmax() * Remove initialization of result = 0 * Adds overloading for arrays (no enums indexed arrays yet) * Add support for enum index arrays * Fix tests with enum * Fix tests for idxmax * Change names of the procedures to minIndex and maxIndex * address Araq's comments: - remove 'array' versions - add .since pragma - return 'int' instead of 'Natural' - add changelog entry Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com>
* 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.