summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* fixes #10456,#12928 issues when chaining templates to sortedByIt (#15734)shirleyquirk2020-10-271-1/+1
| | | | | | | | | | | | | | | * update c_malloc's to csize_t fix for broken --os:ios * I'm an idiot sorry * Create talgorithm.nim * workaround for #10456 I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is. * working test, use typeof rather than auto
* fix #15698 (#15699)rockcavera2020-10-251-0/+4
| | | | | | | | | | | * fix in the net.`$` to print zeros that are not in the compressed group * Update lib/pure/net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update net.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Fix #12410 (#15685)Clyybber2020-10-231-1/+1
| | | | | * Fix #12410, big thanks to @pmetras for this fix * Add testcase
* Tables, use sink val arguments more actively (#15625)cooldome2020-10-192-10/+10
|
* Fix crash in parsexml (#15582) (#15583)Igor Ribeiro de Assis2020-10-151-0/+3
| | | Co-authored-by: Igor Ribeiro de Assis <igor.ribeiro_de_assis@zeiss.com>
* terminal: fix fgColor/bgColor commands [backport] (#15554)alaviss2020-10-131-4/+3
| | | | | Since #8296, fgSetColor is no longer a global. These commands were probably left out from the change as an oversight, so some tests have been added to make sure this won't happen again.
* dup docs: add an example with `addQuoted` (#15548)Timothee Cour2020-10-131-0/+5
| | | | | * dup docs: add addQuoted example * fixup
* Fix doc for CountTable (#15561) [backport]Christopher Dunn2020-10-131-1/+1
|
* close socket in getPrimaryIPAddr even if exception occurs (#15558)Christian Ulrich2020-10-121-3/+5
|
* docs minor (#15550)flywind2020-10-111-2/+2
|
* os: add overload copyFile*(source, dest: string, isDir = false) (#15537)Timothee Cour2020-10-111-1/+7
| | | | | * os: add overload copyFile*(source, dest: string, isDir = false) * renamed to copyFileToDir
* close socket in getPrimaryIPAddr (#15538) [backport]Christian Ulrich2020-10-101-1/+2
|
* Update parsecfg.nim (#15513)lihaifeng2020-10-081-4/+5
| | | | | | | | | | | | | | | | | | | * Update parsecfg.nim Returns the specified default value if the specified key value does not exist. * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/pure/parsecfg.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* update unittest docs with correct exit code info (#15502)Serban Constantin2020-10-061-2/+2
|
* inline tiny proc (#15498)Juan Carlos2020-10-061-6/+6
|
* Iterate over smaller set when computing intersection (#15497)Benjamin Lee2020-10-061-2/+9
| | | Closes #15496
* typoAraq2020-10-061-1/+1
|
* inline tiny func on httpcore (#15480)Juan Carlos2020-10-051-16/+14
|
* use func in uri module (#15486)flywind2020-10-051-26/+26
|
* doc(sugar): added description and examples to dup (#15455)Luis Felipe Manfroni2020-10-051-1/+19
|
* Provide a configurable progressInterval. (#15477)supakeen2020-10-041-6/+11
|
* Installation Instruction (#15485)Abhishek Dubey2020-10-041-2/+2
| | | The instruction command was missing `install` for Ubuntu.
* Return type of asyncftpclient to fix example. (#15476)supakeen2020-10-031-1/+1
| | | Related to: #13641
* heapqueue.nim: Add `toHeapQueue` proc (#15459)ee72020-10-021-0/+18
| | | | | | | | | Similar to: - `critbits.toCritBitTree` - `deques.toDeque` - `sets.toHashSet` - `tables.toTable` Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* intsets.nim: Add `toIntSet` proc (#15460)ee72020-10-021-3/+25
| | | | | | | Similar to: - `critbits.toCritBitTree` - `deques.toDeque` - `sets.toHashSet` - `tables.toTable`
* closureiters: fixes #15243 (#15454) [backport:1.2]Andreas Rumpf2020-10-021-2/+2
| | | | * fixes #15243 [backport:1.2]
* use func in httpcore (#15457)flywind2020-10-021-22/+22
|
* Add first draft of new osproc.readLines (#15429)c-blake2020-10-011-0/+51
| | | | | | | | | | | | | | | | | | | | | * Add first draft of new osproc.readLines * Add test for new osproc.readLines * Rename test to start w/t to run; Also add newline to output * Suppress hint messages. * Output should match this time. * Shoulda picked a program with simpler syntax than ..lol * Address https://github.com/nim-lang/Nim/pull/15429#issuecomment-701890898 and https://github.com/nim-lang/Nim/pull/15429#issuecomment-701985976 by factoring `readLines` into `iterator lines` and a wrapper `proc`. * Address https://github.com/nim-lang/Nim/pull/15429#issuecomment-702127289 and also add a `ReadIOEffect` tag to the iterator (called by the wrapper.. so it should need no separate tag, if I understand correctly).
* [docs minor] unify generates and Generates (#15434)flywind2020-10-011-110/+110
| | | | | * [docs] unify generates and Generates * fix typo
* Add critbits.toCritBitTree (#15444)Juan Carlos2020-10-011-8/+20
| | | | | * Add critbits.toCritBitTree * https://github.com/nim-lang/Nim/pull/15444#discussion_r498035342
* Clean out (#15440)Juan Carlos2020-10-011-4/+0
|
* Add 1 overload to apply (#15439)Juan Carlos2020-10-011-0/+5
|
* various documentation fixes [backport] (#15422)Miran2020-09-291-1/+1
|
* fix #15333 (#15336)flywind2020-09-241-2/+26
|
* add `enumerate` macro (#15297)Miran2020-09-221-0/+1
| | | | | | | * add `enumerate` macro * address the comments * put `enumerate` in its own module
* deinitLock (#15383)flywind2020-09-221-0/+1
| | | | | * deinitLock * minor
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-3/+10
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* Add strutils.indentation and make unindent use it (#15264)Clyybber2020-09-221-11/+36
| | | | | | | | | | | | | | | | | | | | | | | * Add strutils.indentation and make unindent use it * Code style * Fix bootstrapping * Improve wording * Fix test * Introduce without breaking change * Fix * Reduce diff * Fix docs link * Add since annotation * Update changelog
* os: make getApplFreebsd available for NetBSD (#15381)alaviss2020-09-211-1/+1
| | | | | | NetBSD was switched to getApplFreebsd() in #15359, however the proc was not made available for the said target. This commit exposes `getApplFreebsd()` to NetBSD.
* async: removed the 'unown' references, async never worked with --newruntime ↵Andreas Rumpf2020-09-201-6/+5
| | | | anyway and --newruntime is dead (#15374)
* fixes #15369 (#15371)Andreas Rumpf2020-09-201-3/+3
|
* ORC/ARC async progress (#15370)Andreas Rumpf2020-09-202-10/+9
| | | | | | | * ARC/ORC: fixes memory leak for empty seqs that have a non-zero capacity * async: minor refactorings * it helps to finish a refactoring
* base64: fixes the error message for an invalid base64 input character ↵Andreas Rumpf2020-09-201-1/+1
| | | | [backport:1.2]
* ORC and stdlib optimizations (#15362)Andreas Rumpf2020-09-192-6/+18
|
* doc fix typo in lib/pure/httpclient.nim (#15364)Timothee Cour2020-09-191-1/+1
|
* Use sysctl on NetBSD to get exe name (#15359)Euan2020-09-181-3/+10
|
* fix coro proc crash for stack problem when run long enough than a GC cycle ↵yatsen12020-09-181-0/+8
| | | | | | (#7612) (#11410) Co-authored-by: drswinghead <drswinghead@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* async: minor refactorings (#15354)Andreas Rumpf2020-09-185-66/+47
|
* string is not nil anymore (#15352)flywind2020-09-182-8/+3
|
* Fixed undeclared nimIdentNormalize compilation error in parseEnum (#15343)Yuriy Glukhov2020-09-161-2/+1
|