summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* distinctBase type trait for distinct types (#13031)cooldome2020-01-082-32/+8
|
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+1
|
* fixes #12996Araq2020-01-051-1/+2
|
* fixes #13032Araq2020-01-041-2/+2
|
* 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
* parsecfg: retain CRLF line breaks, fixes #12970 (#12971)Simon Krauter2019-12-291-3/+3
|
* Allow customize Host headerJack Tang2019-12-281-4/+5
|
* osproc: fixes regressionAraq2019-12-241-1/+1
|
* ported osproc.nim to ARCAraq2019-12-241-1/+1
|
* fixes the distros.nim regressionAraq2019-12-241-1/+1
|
* Auto-initialize deques (#12879)Ico Doornekamp2019-12-211-3/+17
|
* Implement NixOS distro check (#12914)Emery Hemingway2019-12-181-1/+5
|
* fix json regression D20191212T144944 (#12902) [backport]Timothee Cour2019-12-151-0/+1
|
* remove unused import (#12900)Krzysztof Majk2019-12-151-1/+1
|
* fixes #12874 (#12890)Andreas Rumpf2019-12-131-8/+42
| | | | | | * fixes #12874 * fixes introduced regressions
* introduce capture macro (#12712)Judd2019-12-101-0/+26
| | | | capture works for more cases than `closureScope`.
* feature dracula themed doc (#12816)Andreas Rumpf2019-12-101-2/+2
| | | | | | | | | | * Implement gorgeous Dracula themed Nim documentation * Add color for escape sequences * fixes the test cases * the big CSS cleanup
* add a StringTable.clear that requires no mode specification (#12853)Andy Davidoff2019-12-091-1/+5
| | | | | | * add clear overload, test, changelog * add since annotation
* Fixes #12832 (#12842) [backport]Neelesh Chandola2019-12-081-1/+1
| | | | | | * Fix #12832 * nimVm -> nimvm in json.nim * Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
* Fixes classify function to detect subnormal floating points (#12836)KeepCoolWithCoolidge2019-12-081-16/+20
| | | | | | | | * Fix classify to test for subnormality. * Minor fix. * Modified to maintain existing API. * Minor change. * Removed 32-bit case since float is always 64-bit.
* nimgrep improvements (#12779)Andrey Makarov2019-12-051-5/+12
| | | | | | | | | | | | | | | | | | * fix sticky colors in styledWrite * nimgrep: context printing, colorthemes and other * add context printing (lines after and before a match) * nimgrep: add exclude/include options * nimgrep: improve error printing & symlink handling * nimgrep: rename dangerous `-r` argument * add a `--newLine` style option for starting matching/context lines from a new line * add color themes: 3 new themes besides default `simple` * enable printing of multi-line matches with line numbers * proper display of replace when there was another match replaced at the same line / context block * improve cmdline arguments error reporting
* Fix #12812Clyybber2019-12-051-1/+1
|
* fixes #12798 [backport]Araq2019-12-041-0/+1
|
* [minor] fix doc for $(Time) (#12795) [backport]Timothee Cour2019-12-031-1/+1
|
* #12103 - CI for FreeBSD (#12179)Euan2019-11-291-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Ref #12103 - adds FreeBSD CI * Fix getApplFreebsd - length of the string includes the null terminator byte, so minus 1 for result length * Show last commit in setup task. * Remove .git from repository URL * Don't include noisy details showing last commit. * Add FreeBSD build status badge * Fix #12182 - disable tconsole on FreeBSD * Disable tgetaddrinfo on FreebSD as getaddrinfo doesn't support the ICMP protocol. * Install boehm-gc-threaded * Use libgc-threaded.so on FreeBSD rather than libgc.so. * Simplify build failure handling. Update alt text for CI badge. * Disable test on FreeBSD * Simplify build config - use GNU make to build csources - set PATH variable using the environment key - remove modification of config to set CC as this is already set * Install git which seems to be missing from current freebsd images * Revert change to how path is set * Add a comment explaining why the length is truncated * Fix tconsole.
* fix httpclient.lastModified bad pattern in parsing (#12698)Pierre-Jean Grenier2019-11-291-1/+1
|
* Fix sequtils.delete bug with out of bounds indexes (#12506)Oscar Nihlgård2019-11-291-1/+6
|
* ARC: implemented a simple cycle detectorAraq2019-11-281-0/+2
|
* Fix for 16 bit platforms (#12760) [backend]PMunch2019-11-282-7/+9
| | | | | This fixes some tiny issues with using Nim on 16-bit platforms. Not entirely sure why the AVR chip I was compiling for with "cpu = avr" was detected as 16-bit, but that's probably another issue..
* [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵3n-k12019-11-285-91/+91
| | | | (#12754)
* replace some runtime repr in stdlib for gc:arc (#12716)Andy Davidoff2019-11-253-4/+5
|
* delete list comprehension (#12392)Arne Döring2019-11-221-58/+0
| | | The `lc` macro is now part of `graveyard` repository.
* index out of bounds exception when data is empty (#12428)Jack Tang2019-11-221-9/+11
|
* add collect macro (#12708)b3liever2019-11-221-0/+97
| | | | | | * add collect macro * Add to changelog
* fixes #11863 multipart data need $ (#12707)Andreas Rumpf2019-11-221-0/+13
| | | | | * fixes #11863 * improved the code; refs #12412
* Discussion both in (#12678)c-blake2019-11-201-31/+41
| | | | | | | | | | | https://github.com/nim-lang/Nim/pull/12600 and in https://forum.nim-lang.org/t/5499 indicates that everyone is happy/happier with ``pop``. This just renames the brand new ``take``s to ``pop`` and installs inline aliases/wrappers to preserve ``Table.take`` and ``TableRef.take``. Update apis.rst to try to maintain consistency of remove-and-return procs.
* Fixes ambiguity errors when evaluating Nimble files. (#12674) [backport]Dominik Picheta2019-11-181-6/+6
| | | | | | | | When trying to evaluate a Nimble file which imports a Nim module I was getting the following errors for some reason: ``` /Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: () ```
* Fix htmlgen html lang (#12668) [backport]Juan Carlos2019-11-151-1/+1
| | | | | * Fix HTMLGen enable lang on html tag
* fix documentation of `$`*(dt: DateTime) (#12660)David Krause2019-11-151-1/+1
| | | | (cherry picked from commit 39122ecd93854dd696aad2a5a0a5ad04d6dcdbfa)
* async: cleaner solution that avoids GC_ref on strings which doesn't exist ↵Araq2019-11-131-6/+5
| | | | for --gc:arc
* remove long-deprecated 'mapIt'narimiran2019-11-131-7/+0
|
* .cursor implementation (#12637)Andreas Rumpf2019-11-121-4/+7
| | | | | | | | | | | * cursors: first implementation * added currently failing test * .cursor works for doubly linked lists * make -d:useMalloc work again * added code to nil out refs in a destructor * it's now called --gc:arc * renderer.nim: render nkBreakState properly * make simple closure iterators work without leaking
* Version of trimZeros without temp strings (#12633)b3liever2019-11-111-13/+11
|
* Implemented outplace differently (#12599)Clyybber2019-11-091-0/+45
| | | | | * implemented sugar.outplace; refs #12550 * Different approach, allows for chaining
* fix #12519: introduce OrderedTable.take, CountTable.del, CountTable.take ↵Miran2019-11-081-4/+148
| | | | | | | | | | | | (#12600) * add OrderedTable.take * add CountTable.del and CountTable.take * add .since pragma to the introduced public procs * add changelog entry [ci skip]
* make parsexml compatible with --gc:destructors/newruntimeAndreas Rumpf2019-11-071-2/+2
|
* added support for openArray's for `gcd` and `lcm` (#12621)Yanis Zafirópulos2019-11-071-1/+25
|
* allow random module to be used in standalone: (#12617)Judd2019-11-071-1/+1
| | | | proc randomized*() uses time releated function which is not available on standalone, so disable this function for standalone.
* osproc needs 'import linux' for -d:useCloneAndreas Rumpf2019-11-071-0/+3
|
* Merge pull request #12613 from nim-lang/miran-unused-importsDominik Picheta2019-11-064-10/+4
|\ | | | | Remove unused imports