summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* readLine: Unicode support for Windows console (#14782)Andreas Rumpf2020-07-201-0/+62
|\ | | | | | | | | | | | | | | | | | | | | | | * readLine: Unicode support for Windows console When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8. * readLine: Remove recursive imports * readLine: Fix issues with --gc:arc **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Fix issues with --gc:arcktamp2020-06-261-6/+11
| | | | | | | | **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Remove recursive importsktamp2020-06-251-10/+31
| |
| * readLine: Unicode support for Windows consolektamp2020-06-231-0/+36
| | | | | | When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8.
* | 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011)Andreas Rumpf2020-07-201-0/+31
| |
* | io: fix SetHandleInformation signature to match Windows' (#15017)alaviss2020-07-201-2/+7
| | | | | | | | | | | | | | * io: fix SetHandleInformation signature to match Windows' Fixes #14980 * rename Handle -> IoHandle because system.nim is a mess
* | [Backport] Fixes callbacks being dropped on Linux/macOS/BSD. (#15012)Dominik Picheta2020-07-191-1/+6
| | | | | | | | | | | | | | | | | | Fixes #15003. This is a serious bug which occurs when data cannot be read/sent immediately and there are a bunch of other read/write events pending. What happens is that the new events are dropped which results in the case of the reported bug resulted in some data not being sent (!).
* | threadpool.nim: minor code style changesAraq2020-07-181-5/+5
| |
* | fix docs for nativesocket read/write selects (#15010)Andy Davidoff2020-07-181-2/+2
| | | | | | The sockets which *cannot* be _[read from or written to]_ will also be removed from ``readfds``.
* | enable,document,test getImplTransformed, very useful for understanding how ↵Timothee Cour2020-07-181-2/+5
| | | | | | | | | | | | nim transforms code (#14924) * enable,document,test getImplTransformed, very useful for understanding how nim transforms code
* | Fix #14906 (#14949)Tomohiro2020-07-182-7/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix #14906 by wrapping outputStream with PipeOutStream * Fix compile error when ./build_all.sh * Use PipeOutStream on posix * Fix compile error when build_all.sh * Use ptr UncheckedArray * Replace copyRefObj * Remove tmp buffer from posPeekData * Add more tests for outputStream * Add comments about PipeOutStream.buffer * Fix bug in posReadLine * Move implementation of newPipeOutStream to streamwrapper module
* | fix odbc regressions (#15009) [backport]cooldome2020-07-181-2/+2
| | | | | | | | | | * fix odbc regressions * make only necessary changes
* | fix #14082, don't crash on incorrectly formatted input (#14977) [backport]Miran2020-07-173-42/+42
| | | | | | | | | | | | | | * fix #14082, don't crash on incorrectly formatted input * address code review * remove duplication
* | fix #15006 (#15007)flywind2020-07-171-1/+1
| |
* | Fix #14994 (#14996)Clyybber2020-07-152-1/+3
| | | | | | | | | | | | | | * Fix #14994 * Revert misplaced "optimization" * Typo
* | An optimizer for ARC (#14962)Andreas Rumpf2020-07-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: an optimizer for ARC * do not optimize away destructors in 'finally' if unstructured control flow is involved * optimized the optimizer * minor code cleanup * first steps to .cursor inference * cursor inference: big steps to a working solution * baby steps * better .cursor inference * new feature: expandArc for easy inspection of the AST after ARC transformations * added topt_cursor test * adapt tests * cleanups, make tests green * optimize common traversal patterns * moved test case * fixes .cursor inference so that npeg compiles once again * cursor inference: more bugfixes Co-authored-by: Clyybber <darkmine956@gmail.com>
* | repr_v2 improvements (#14992)Clyybber2020-07-151-10/+28
| | | | | | | | | | | | | | * Support proc in arc repr * Typo * Improve repr for strings and chars
* | fix #13086 (#14987)flywind2020-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #6608 * minor * fix * clean tests * make testamnet happy * again * minor * fix #13086
* | Clean up macros (#14959)Juan Carlos2020-07-142-35/+1
| |
* | add missing props,procs (#14978)Bung2020-07-141-0/+12
| |
* | fix index error (#14974)Hendrik2020-07-141-1/+2
| | | | | | Co-authored-by: Hendrik Albers <mail@hendrik.dev>
* | fix #14475; unittest.require now works with `nim c`; require and check now ↵Timothee Cour2020-07-143-12/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | works with -d:nodejs (#14676) * fix #14475; make unittest work with -d:nodejs * fixup * fixup * disable inim, delaunay which failed after unittest.require got fixed * re-enable tests that have been fixed
* | asyncftpclient.nim - don't assume a sufficiend line length (#14973)Miran2020-07-141-1/+1
| |
* | optimize the new nimPrepareStrMutationV2 with inlining (#14969)Andreas Rumpf2020-07-121-6/+9
| |
* | Fix #12759 (#14967)flywind2020-07-121-1/+1
| | | | | | | | | | * add testcase for #5926 * fix #12759
* | Move `wasMoved` out of `=destroy`Clyybber2020-07-102-3/+1
| |
* | Add missing dom.nim things (#14944)treeform2020-07-091-2/+30
| |
* | add docs and more tests for debug format strings (#14861)flywind2020-07-081-1/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add debug format string * remove try except * add changelog * add docs and more tests * Update lib/pure/strformat.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * minor Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* | remove a condition that table size must be passed as power of 2 (#14926)Miran2020-07-087-92/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove a condition that table size must be passed as power of 2 * remove power-of-2 condition from sets and sharedtables * remove power-of-2 condition from deques * use 'correctSize' for both branches * prettify changelog.md and fix typos * add a changelog entry * fix double-call of 'right-size' * fix the same thing in sets.nim * introduce a new internal proc `slotsNeeded` Deprecate the public proc `rightSize`, which is not needed anymore. Now it is an identity function, allowing the old code to work correctly and without extra allocations.
* | fixes #14402 (#14908)Andreas Rumpf2020-07-081-1/+1
| | | | | | | | | | * fixes #14402 * added a test case
* | fix mistake in times.nim docsnarimiran2020-07-071-1/+1
| |
* | Revert commit 3e843ab3358. Closes #14930.Dominik Picheta2020-07-071-1/+1
| |
* | tables.nim: Add named fields in `smallest` and `largest` (#14919)ee72020-07-061-2/+2
| | | | | | | | | | | | | | | | | | | | The `smallest` and `largest` procs for `CountTable` returned a tuple with named fields, but the same procs for `CountTableRef` returned an anonymous tuple. This commit makes those `CountTableRef` procs more consistent, and adds a test. Fixes: #14918
* | fixes #14830Araq2020-07-061-1/+1
| |
* | Fix style inconsistencies due to the previous commitnarimiran2020-07-065-68/+68
| |
* | revert 0944b0f4narimiran2020-07-065-68/+68
| |
* | Fix logging tiny bug (#14910)Juan Carlos2020-07-061-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix logging tiny bug * Update changelog.md Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> * Update changelog.md Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> * Update changelog.md Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> * https://github.com/nim-lang/Nim/pull/14910#discussion_r450012032 Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* | deprecate existsDir; use dirExists instead (#14884)Timothee Cour2020-07-033-25/+18
| |
* | Add jsre (#14870)Juan Carlos2020-07-033-2/+45
| |
* | {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-026-27/+27
| | | | | | | | | | | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* | Clean out sharedlists (#14857)Juan Carlos2020-07-021-6/+0
| |
* | Clean out strutils (#14859)Juan Carlos2020-07-011-5/+0
| | | | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | fix #14846; add macros.extractDocCommentsAndRunnables (#14849)Timothee Cour2020-07-012-3/+39
| | | | | | | | | | | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* | Clean out sharedtables (#14858)Juan Carlos2020-06-301-10/+0
| | | | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 (#14854)Juan Carlos2020-06-301-10/+0
| | | | | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | typetraits: features and fixes (#14791)alaviss2020-06-301-3/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | * typetraits: add support for nnkTypeOfExpr * typetraits: don't wrap typedesc symbols in StaticParam * typetraits: add nested generics support to genericParams * typetraits: make genericParams understand array[I, T] whackiness Also moved tests to ttypetraits * typetraits: clarify comment on genericParams
* | Fix asyncdispatch drain behavior (#14820) (#14838)Ray Imber2020-06-301-4/+9
| | | | | | | | | | | | | | | | | | | | | | * Fix asyncdispatch drain behavior (#14820) * Changed test to use asyncCheck instead of discard after code review (#14820) * Added some debug statements to help understand what is happening in Azure. * Removed debug statements and increased timeouts by 1 order of magnitude to account for slow Azure VMs Co-authored-by: Ray Imber <ray@crankuptheamps.com>
* | add debug fmt string like python's (#14808)flywind2020-06-301-2/+12
| | | | | | | | | | | | | | * add debug format string * remove try except * add changelog
* | Clean out dom (#14855)Juan Carlos2020-06-301-4/+0
| | | | | | | | | | * Clean out dom * Clean out dom
* | fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] (#14799)Timothee Cour2020-06-291-21/+0
| | | | | | | | | | * typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] * changelog