| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
**--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**.
Also an empty string should be returned in case of EOF.
|
| | |
|
| |
| |
| | |
When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* io: fix SetHandleInformation signature to match Windows'
Fixes #14980
* rename Handle -> IoHandle because system.nim is a mess
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 (!).
|
| | |
|
| |
| |
| | |
The sockets which *cannot* be _[read from or written to]_ will also be removed from ``readfds``.
|
| |
| |
| |
| |
| |
| | |
nim transforms code (#14924)
* enable,document,test getImplTransformed, very useful for understanding how nim transforms code
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* make only necessary changes
|
| |
| |
| |
| |
| |
| |
| | |
* fix #14082, don't crash on incorrectly formatted input
* address code review
* remove duplication
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
* Fix #14994
* Revert misplaced "optimization"
* Typo
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
| |
| |
| |
| |
| |
| |
| | |
* Support proc in arc repr
* Typo
* Improve repr for strings and chars
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fix #6608
* minor
* fix
* clean tests
* make testamnet happy
* again
* minor
* fix #13086
|
| | |
|
| | |
|
| |
| |
| | |
Co-authored-by: Hendrik Albers <mail@hendrik.dev>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
* add testcase for #5926
* fix #12759
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
* 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
* added a test case
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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>
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
|
| | |
|
| |
| |
| | |
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* fix #14846; add macros.extractDocCommentsAndRunnables
* fixup
* update tests
* address comment
|
| |
| |
| | |
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| | |
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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)
* 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 format string
* remove try except
* add changelog
|
| |
| |
| |
| |
| | |
* Clean out dom
* Clean out dom
|
| |
| |
| |
| |
| | |
* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]
* changelog
|