summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* StringStreams no longer errors when intialized with literals on arc/orc (#19708)Jason Beetham2022-04-111-0/+2
|
* typetraits: add toSigned, toUnsigned (#18445)Timothee Cour2022-04-074-31/+54
| | | | | | | | * typetraits: add toSigned, toUnsigned * improve and add tests Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* improve the error messages for std/tasks [backport: 1.6] (#19695)flywind2022-04-071-6/+6
|
* use two spaces indentation (#19696)flywind2022-04-071-14/+14
|
* No need to export pos from OptParser (#19688)Nan Xiao2022-04-061-1/+1
| | | Co-authored-by: flywind <xzsflywind@gmail.com>
* std/tasks: fix spelling (#19691) [backport]Jacek Sieka2022-04-061-2/+2
| | | | | | why aren't these not being caught by style check options? --styleCheck:usages finds it. Co-authored-by: flywind <xzsflywind@gmail.com>
* add somes links to docs (#19668)flywind2022-04-011-5/+5
|
* fix 19655 - fixing more url fragments (#19669)Nan Xiao2022-04-011-2/+2
|
* fix 19655 - fixing url fragment (#19667)rockcavera2022-04-011-1/+1
|
* Deprecate selfExe (#19660)Juan Carlos2022-03-311-2/+1
| | | | | * Deprecate selfExe Nimscript * Deprecate selfExe Nimscript
* Embedded Network patches - eventfd & socket getters (#19632)Jaremy Creechley2022-03-282-9/+36
|
* Fix dial ignoring buffered parameter (#19650) [backport]John Titor2022-03-261-1/+1
|
* Add support for `Window.matchMedia` (#19648)tandy10002022-03-261-0/+6
|
* remove unnecessary framePtr code (#19645)flywind2022-03-251-1/+2
|
* Remove deprecated typo poDemon (#19631)Juan Carlos2022-03-231-5/+0
| | | | | * Remove Deprecated poDemon * Remove Deprecated poDemon
* Remove Deprecated domextension (#19630)Juan Carlos2022-03-231-3/+0
| | | | | * Remove Deprecated domextension * Remove Deprecated domextension
* Remove Deprecated Nimscript proc (#19629)Juan Carlos2022-03-231-8/+0
|
* move assertions out of system (#19599)flywind2022-03-2331-9/+110
|
* Fix process lines iterator (#19605)Dominic Ward2022-03-231-6/+8
| | | | | | | * Ensure lines when process done * eliminate post-EOF exit test * Recommend fixes for execCmdEx/execProcess
* system: thread: stack dealloction on Zephyr (#19633) [backport:1.6]Jaremy Creechley2022-03-221-2/+16
| | | Try to free the stack allocation when a thread exits. Possibly works for FreeRTOS as well.
* db_sqlite: added a spaceAraq2022-03-181-1/+1
|
* Removed deprecated httpcore func (#19550)Juan Carlos2022-03-181-10/+0
| | | | | | | | | * Remove Deprecated httpcore func * Remove Deprecated httpcore func * Fix a test with Deprecated func * Restart CI, Apple can code shit anymore I tell you
* register callback for marshal in VM (#19578)flywind2022-03-081-8/+20
| | | | | | | | | | | | | * register callback for marshal in VM * remove unrelated code * polish * more tests * more tests * add loadVM and toVM
* fix not flushing stdout in MSYS (#19590)Hamid Bluri2022-03-071-0/+1
| | | I did this pull request according to what xflywind said: https://github.com/nim-lang/Nim/pull/19584#issuecomment-1060085141
* apply changes from #18017 and some fixes (#19571)flywind2022-03-011-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/369 * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * merge * remove * fix bug Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Add error message to pointer size check assert in lib/nimbase.h (#19549)Tomohiro2022-02-271-1/+1
|
* Remove define for jsfetch (#19530)Juan Carlos2022-02-252-97/+96
| | | | | | | | | * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch * Remove define nimExperimentalAsyncjsThen for std/asyncjs.then and std/jsfetch
* Allow std/macros.params to work with nnkProcTy (#19563)Tanguy2022-02-251-4/+11
| | | | | * Allow std/macros.params to work with nnkProcTy * Add tests for proc params & pragma
* Remove Deprecated jsre func (#19551)Juan Carlos2022-02-251-4/+0
| | | | | | | * Remove Deprecated jsre func * Remove Deprecated jsre func * ReStart CI, because OSX is dumb and I have no permission to restart
* Update chcks.nim (#19540)rockcavera2022-02-171-1/+1
|
* Documentation: Fix word usage (#19529)Sizhe Zhao2022-02-144-7/+7
|
* Remove deprecated math.c_frexp (#19518)Juan Carlos2022-02-141-5/+0
| | | | | | | * Remove Deprecated math proc * Remove Deprecated math proc * Remove Deprecated math proc
* Remove Deprecated oids.oidsToString (#19519)Juan Carlos2022-02-141-5/+0
| | | | | * Remove deprecated oids.oidToString * Remove deprecated oids.oidToString
* use OrderedTable instead of OrderedTableRef for mimedb (#19522)David Krause2022-02-141-2/+2
| | | | | | | | | * use OrderedTable instead of OrderedTableRef for mimedb Signed-off-by: David Krause <enthus1ast@users.noreply.github.com> * added changelog entry for mimedb change Signed-off-by: David Krause <enthus1ast@users.noreply.github.com>
* Remove backslash in glob pattern (#19524)konsumlamm2022-02-141-3/+3
|
* fix #16458; make useNimRtl compile for --gc:orc (#19512)flywind2022-02-113-5/+7
| | | | | * fix #16458; make useNimRtl compile for --gc:orc/arc * fix tests
* Fix bug 27 of #17340 (#19433)Andrey Makarov2022-02-072-32/+51
| | | | | | Fixes silent disappearance of Markdown (pseudo-)link when it's detected as unsafe protocol. Now it will be converted to plain text in spirit of [the specification](https://spec.commonmark.org/0.30/#links). For that sake the check for protocol is added to rst.nim also.
* fix parseEnum cannot parse enum with const fields (#19466)flywind2022-02-041-2/+7
| | | fix #19463
* correct typos (#19485)flywind2022-02-031-1/+1
|
* move io out of system (#19442)flywind2022-02-0217-36/+76
| | | | | | | | | | | | | | | | | | | | | | | | | * move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
* Clonkk fix2 11923 (#19451)Regis Caillaud2022-02-021-5/+22
| | | | | | | * fix nnkBracketExpr not compiling for getImpl on customPragmaNode * fix test import * fix alias not working with hasCustomPragmas
* Update jsfetch with latest API and fix missing bindings (#19473)tandy10002022-02-011-21/+25
| | | | | | | | | | | | | | | | | | | | * Update with latest API and fix missing bindings remove deprecated `Body` remove implicit `cstring` convs add `Headers` to `FetchOptions` add `Request` init proc which takes `FetchOptions` * Update lib/std/jsfetch.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * Update lib/std/jsfetch.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * remove experimental flag Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* Merge pull request from GHSA-ggrq-h43f-3w7mDominik Picheta2022-01-291-3/+19
| | | | This fixes a CVE (currently https://github.com/nim-lang/Nim/security/advisories/GHSA-ggrq-h43f-3w7m)
* os: faster getFileSize (#19438)ehmry2022-01-241-5/+4
| | | | Use "stat" rather than "open", "seek", and "close" system calls. The Windows implementation remains the same.
* RST: allow empty number-lines directives just like it was done for a decade; ↵Andreas Rumpf2022-01-221-1/+2
| | | | all my documents rely on this feature [backport (#19431)
* New/better macro pragmas, mark some as experimental (#19406)metagn2022-01-201-13/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New/better macro pragmas, make some experimental fix #15920, close #18212, close #14781, close #6696, close https://github.com/nim-lang/RFCs/issues/220 Variable macro pragmas have been changed to only take a unary section node. They can now also be applied in sections with multiple variables, as well as `const` sections. They also accept arguments. Templates now support macro pragmas, mirroring other routine types. Type and variable macro pragmas have been made experimental. Symbols without parentheses instatiating nullary macros or templates has also been documented in the experimental manual. A check for a redefinition error based on the left hand side of variable definitions when using variable macro pragmas was disabled. This nerfs `byaddr` specifically, however this has been documented as a consequence of the experimental features `byaddr` uses. Given how simple these changes are I'm worried if I'm missing something. * accomodate compiler boot * allow weird pragmas * add test for #10994 * remove some control flow, try remove some logic
* Fix #11923 (#19427)Regis Caillaud2022-01-201-1/+6
| | | | | * Apply commit https://github.com/nim-lang/Nim/commit/5da931fe811717a45f2dd272ea6281979c3e8f0b that was never merged (was part of a bigger PR). Should fix issue #11932 * add a generic object for custom pragma
* Resolve cross file resolution errors in atomics (#19422) [backport:1.6]James2022-01-201-10/+7
| | | | | * Resolve call undeclared routine testAndSet * Fix undeclared field atomicType
* Added `std/envvars` for env vars handling (#19421)flywind2022-01-201-0/+212
|
* Add noQuit option (#19419) [backport:1.6]Tom2022-01-191-2/+5
| | | | | | | | | * Add noQuit option * Add nim prefix in case of conflicts Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com>