summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* implemented alignas pragma (#12643)Arne Döring2019-11-131-0/+1
| | | | | | | | | | | | * implemented alignas pragma * fix bootstrap * generate c++ compatible syntax for alignas * Make it work. * Multiple alignof expressions. Implement top level alignof.
* fixes #12644Andreas Rumpf2019-11-121-7/+10
|
* .cursor implementation (#12637)Andreas Rumpf2019-11-123-7/+10
| | | | | | | | | | | * 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
* Fix #12135 and #12109 (#12137)Euan2019-11-113-0/+570
| | | | | | * Fix #12135 and fix #12109 - fix OpenBSD type defs * Fix Mode definition as in #12132
* 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]
* fix compilation warning (#12618)cooldome2019-11-081-5/+5
| | | | | | * fix compilation warning * comments incorporated
* Fix crash in terminate handler (#12572) [backport]Volodymyr Lashko2019-11-071-0/+6
| | | | | | | | | | | | | | | | * fix undefined behavior in terminate handler * fix failing unit test * Revert "fix failing unit test" This reverts commit 0e5e385fbf972d53909347e246a2e9b018fe9906. * Revert "fix undefined behavior in terminate handler" This reverts commit 2b582871f1981492838cc70d30e8c0e00ab8c9a9. * do not throw inside terminate handler with msvc < 1923
* 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
|
* fix #12597 (#12604)Arne Döring2019-11-071-4/+4
|
* 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.
* backtick and export marker handling in `eqIdent` (#12574)Arne Döring2019-11-071-6/+12
|
* added 'since' template for further stdlib additionsAndreas Rumpf2019-11-072-1/+5
|
* 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
| * remove unused importsnarimiran2019-11-064-10/+4
| |
* | [backport] print more information for the previous commitnarimiran2019-11-061-0/+2
| |
* | [backport] rewrite flaky runnable examplenarimiran2019-11-061-3/+5
|/
* async: use $ and not repr in debug modeAraq2019-11-051-1/+1
|
* Add `or detectOs(Manjaro)` (#12587) [backport]jiro2019-11-051-1/+1
| | | | | | Using `pacman` command in Manjaro Linux (cherry picked from commit 1ff3494dabd0fa5bf619fc8bd558381ead7c358d)
* remove deprecated procs (#12535)Andreas Rumpf2019-11-057-395/+18
|
* fix #8242, fix #12586: fix 'formatFloat' with 'precision = 0' (#12592)Miran2019-11-052-17/+8
| | | | | | | | | | | | | | * fix #8242, fix #12586: fix 'formatFloat' with 'precision = 0' 'formatFloat' with 'precision = 0' now gives the same result (a number without a decimal point) in all backends. This is compatible with Python's formatters, too. * fix failing tests * add changelog entry * add version switch
* Make sequtils.zip return seq of anonymous tuples (#12575)Kaushal Modi2019-11-041-40/+64
| | | | | | | | | | * Make sequtils.zip return seq of anonymous tuples Earlier the tuples had named fields "a" and "b" and that made it difficult to assign the zip returned seqs to other vars which expected seqs of tuples with field names other than "a" and "b". * Make sequtils.zip backwards compatible with Nim 1.0.x
* [backport] fix #12395 (#12590)Miran2019-11-041-3/+3
| | | | | 'countBits32' is now fixed in the same way that 'countBits64' was already patched earlier (by adding 'u32 where needed).
* fix conversions to uint in varints.nim (#12564)Arne Döring2019-11-041-22/+22
|
* NimPatch of devel version should be an odd number because of the earlier hacksnarimiran2019-11-031-1/+1
|
* newruntime: only check for dangling refs when 'owned ref T' support is enabledAndreas Rumpf2019-11-031-7/+8
|
* [backport] Add docs to better distinguish among getProjectPath, ↵Kaushal Modi2019-10-313-5/+42
| | | | | getCurrentDir and currentSourcePath (#12565) Fixes https://github.com/nim-lang/Nim/issues/10477.
* introduce csize_t instead of fixing csize (#12497)Arne Döring2019-10-3112-48/+56
|
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-306-18/+34
|
* Improve Math.Trunc code emit on JS, had weird whitespaces and indents (#12549)Juan Carlos2019-10-301-10/+10
|
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-3022-29/+29
|
* Fix newLit for objects having string fields (#12542) [backport]zah2019-10-281-5/+5
|
* [backport] fix #12528, fix #12525: incorrect generic type resolution for ↵Andreas Rumpf2019-10-281-0/+3
| | | | | | default values (#12538)
* proof that refcounting can handle Nim's async (#12533)Andreas Rumpf2019-10-281-1/+8
|
* colors: fix 'mix' template and make most examples runnable (#12532) [backport]Jjp1372019-10-281-61/+61
| | | | | * colors: fix the 'mix' template * colors: make most examples runnable
* splitPath() behavior synchronized with splitFile() (#12481)Artem V L2019-10-281-3/+16
| | | | | | | | * splitPath() behavior synchronized with splitFile() having the expected behavior in all languages splitPath() docstrings update, tests added for both splitPath() and splitFile() * Path splitting refined and described
* [feature]strformat: add 2 'fmt' macros that use specified characters instead ↵Tomohiro2019-10-281-14/+25
| | | | | | | | | | of '{}' (#11748) * [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}' * strformat: revert documentation comments of `&` and 'fmt' * strformat: removed single open/close char variant of fmt
* Extent json.to testing to VM, add workrounds for VM bugs. (#12493)Arne Döring2019-10-282-52/+135
| | | fixes #12479
* fix deprecation warnings related to Int128 (#12474)Miran2019-10-281-1/+1
| | | | | | | | * semfold: fix deprecation warnings related to Int128 * semmagic: fix deprecation warnings related to Int128 * system/io: remove unneeded conversion of TaintedString to itself
* fixes #12502Andreas Rumpf2019-10-271-2/+2
|
* development version should be 1.1.0 so that version checking can work properlyAndreas Rumpf2019-10-271-2/+2
|
* minor improvementsAndreas Rumpf2019-10-272-8/+9
|
* Remove sentences referring to the graphics module (#12522)Jjp1372019-10-261-2/+1
|
* sequtils: replace deprecated 'random' call within example (#12515) [backport]Jjp1372019-10-251-1/+1
|
* Fix many broken links and prefer relative links within docs (#12463)Miran2019-10-2424-91/+101
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix many broken links Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol. * Prefer relative links for Nim documentation This is more friendly to those browsing the documentation without a network connection. The nim-doc package in Debian allows this, for example. Also, the domain name being used was not consistent. It could have been either nim-lang.org or nim-lang.github.io, and those reading the stable docs could have found themselves suddenly reading the devel docs instead. * koch.rst: remove link to nonexistent section * manual.rst: remove unintended link cast[T](0) is interpreted as a link to id 0 with text T, so escape the opening parentheses to display the intended output. * asyncstreams: replace unintended link with emphasis * Fix word wrapping