summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + ↵Timothee Cour2020-06-011-0/+54
| | | | | | | | | | | various other fixes (#14501) * update doc CI filter to include the files mostly likely to require doc rebuild * remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes * walkDirRecFilter, factor nativeToUnixPath workaround * glob for getRst2html * docslocal: 40s to build all docs * revert code dedup in github actions which did not work alas... * fixups
* Disable unused warnings for error await template too (#14531)Danil Yarantsev2020-06-011-1/+1
|
* fix CI doc windows: style error in lib/std/time_t.nim (#14523)Timothee Cour2020-05-311-2/+2
|
* Disable unused warnings for await in async macro (#14517)Danil Yarantsev2020-05-311-2/+2
| | | | | * Disable unused warnings for await in async macro * Remove used for the error template
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-291-3/+28
| | | | | * fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
* hotfix doc comments for procs without body (#14494)Timothee Cour2020-05-291-5/+0
|
* more checking for --gc:arc, no need for valgrind (#14467)Andreas Rumpf2020-05-298-69/+145
| | | | * sigmatch: removed dead code
* close #14284 document semantics for start for re,nre; improve examples (#14483)Timothee Cour2020-05-282-196/+67
|
* Propagate the outDir to rstgen to fix hrefs for modules in subdirs (#14479)Kaushal Modi2020-05-281-3/+13
|
* Add thiscall calling convention, mostly for hooking purpose (#14466)Huy Doan2020-05-271-0/+2
| | | | * Add thiscall calling convention, mostly for hooking purpose * add changelog and documentation
* Change `UnpackError` with `UnpackDefect` (#14457)Ivan Bobev2020-05-272-9/+10
| | | | | | | | | | | | | | | | | | * Change `UnpackError` with `UnpackDefect` The deprecation warning for `UnpackError` exception raised by some `inline` procedures in the Nim standard library propagates to the user code. If the user code has a requirement for building without warnings this is a problem for the successful execution of the tests. In order to resolve this, all occurrences of `UnpackError` in the Nim code base are changed to `UnpackDefect`. Only the type alias is retained to not break other people's user code since `UnpackError` is exported type. * Remove the catching of `UnpackDefect` Defect exceptions should not be cached, because they indicate problem in the API usage. The code in `nimblesocket.nim` is rewritten to first check whether there is a value set into the `knownDomain` variable from the `Option` type before usage.
* docgen: mangling using _. instead of @@ to avoid issue (#14454)Timothee Cour2020-05-261-2/+2
|
* add bindParams to db_sqlite (#14408)Bung2020-05-261-41/+159
| | | | | | | | | | | | | | | | | | | | | * add bindParams to db_sqlite * no need typeinfo * remove extro spaces * reduce bindParams to two branches,raise DbError * Update lib/impure/db_sqlite.nim * change bindParams to macro,accept varargs[untyped] as params * change bind blob val to openArray[byte] * remove unused err type * explicitly using i32 param * using import std/private/since * SQLITE_OK to right hand * bindParam val int using bindParam overload * copy data by default * change exec to template * remove SqlPrepared procs unused varargs * fix setupquery for prepared,reset first for exec prepared,add bindNull for literal nil Co-authored-by: alaviss <leorize+oss@disroot.org>
* docgen: fix #14448 show @@ as .. in href text (#14451)Timothee Cour2020-05-251-1/+6
|
* make get for options use lent T (#14442)cooldome2020-05-251-2/+2
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Add support for mktemps (#14347)Max Grender-Jones2020-05-252-8/+24
|
* Add clipPath to dom.nim. (#14435)treeform2020-05-241-1/+2
| | | Just adds a single new css atribute, see: https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path .
* fix repr(char) example assert (#14437)hlaaftana2020-05-231-1/+1
|
* Fix #14057 - moveFile should overwrite on Windows (#14433)genotrance2020-05-231-2/+2
|
* add insert,tryInsert unify for postgres that need pk name (#14416)Bung2020-05-224-0/+67
| | | | | | | | | | | * add insert,tryInsert unify for postgres that need pk name * add ReadDbEffect to new procs * add .since and changelog * change since to 1.3 * Update lib/impure/db_postgres.nim Co-authored-by: bung87 <crc32@qq.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: alaviss <leorize+oss@disroot.org>
* Add missing attributes and methods to JavaScript DOM (#14428)Mildred Ki'Lya2020-05-221-0/+14
| | | | | | | | | | | | | | | | | - content attribute to access HTML template element: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/content - ownerDocument to access the owning document from a DOM Node: https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument - outerHTML to get/set the outer HTML representation of a Node: https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument - createComment() to create comment Nodes: https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment - querySelector() and querySelectorAll() on Nodes: https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll
* make malloc.nim consistent in style (#14427)Andreas Rumpf2020-05-221-9/+9
|
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-2/+1
|
* fixes a bug reported in https://forum.nim-lang.org/t/6361 (#14422)Andreas Rumpf2020-05-211-31/+31
|
* The whole options module should be inline (#14417) [backport:1.2]Mamy Ratsimbazafy2020-05-211-15/+14
| | | | | | | * The whole options module should be inline * Use inline per proc and tag `lent` where appropriate * Remove lent annotation (failing at compiletime)
* fix #14404 foldr had the classic multiple evaluation bug (#14413)Timothee Cour2020-05-211-7/+7
|
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-201-6/+8
| | | | | * Small improvements for string and char repr with gc:arc * Fix test
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-3/+8
| | | | * runnableExamples "-b:cpp -r:off": code
* asyncdispatch, asyncnet: add inheritance control (#14362)alaviss2020-05-202-25/+90
| | | | | * asyncdispatch, asyncnet: add inheritance control * asyncnet, asyncdispatch: cleanup
* specialize genericReset (#14398)Andreas Rumpf2020-05-191-1/+1
| | | | | | | * progress * make tests green * maybe we also want to reset pointers, dunno * progress * cleanup; fixes #13879 [backport:1.2]
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-191-1/+1
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* Fix #14394 (#14395)Clyybber2020-05-181-1/+1
|
* add OpenBSD MAP_STACK for coroutines (#14353)John2020-05-161-4/+10
|
* fixes #14370 (#14371)Andreas Rumpf2020-05-162-2/+2
|
* Emscripten: disable epoll (#14361)Dominik Picheta2020-05-161-2/+2
| | | Epoll is not supported by epoll.
* add SqlPrepared api fix #13559 (#14365)Bung2020-05-161-0/+101
| | | Co-authored-by: bung87 <crc32@qq.com>
* fix some issues with --backend (#14363)Timothee Cour2020-05-161-1/+1
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-157-53/+52
| | | | | | | This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
* fix #9771 (#14357)Bung2020-05-152-17/+19
| | | | | | | * fix #9771 * map SQLLEN SQLULEN * fix proc params take TSqlLen Co-authored-by: bung87 <crc32@qq.com>
* Improve nimeval, changes some defaults (#14351)PMunch2020-05-151-1/+1
| | | | | | | | | | * Improve nimeval, changes some defaults This improves nimeval to make it easier to use NimScript as an embedded scripting languages. It does change some of the defaults, so in case anything used the old version and depended on the old behaviour these would have to be changed. * Remove dependency on nimhcr for nimscript
* Fail quickly if re or nre module is attempted to be compiled with js ↵Kaushal Modi2020-05-142-1/+6
| | | | | [backport] (#14341) Fixes https://github.com/nim-lang/Nim/issues/14338 .
* fixes #13862Araq2020-05-131-1/+1
|
* fixes #13935Andreas Rumpf2020-05-131-0/+3
|
* fixes #14331Araq2020-05-131-0/+28
|
* `osproc.execCmdEx` now takes an optional `input` for stdin, `env`, ↵Timothee Cour2020-05-132-13/+33
| | | | | | | workingDir (#14211) * `osproc.execCmdEx` now takes an optional `input` for stdin * execCmdEx now also takes an optional ``workingDir` and `env`
* cycle collector: make it threadsafeAraq2020-05-121-5/+5
|
* fixes #13881Andreas Rumpf2020-05-126-20/+36
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* properly fixes #13758 so that `import std/macros` stays legal (#14291)Timothee Cour2020-05-121-2/+1
| | | | | * properly fix https://github.com/nim-lang/Nim/issues/12389 * use --lib:lib in koch.nim.cfg instead * third time is the charm
* Make --backend:cpp|js work for :test: code-blocks as well (#14306)Kaushal Modi2020-05-111-1/+1
| | | | | | | | | Continues https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322 Ref: - https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322#commitcomment-39087584 - https://github.com/nim-lang/Nim/pull/14278 Fixes https://github.com/nim-lang/Nim/issues/13129 .
* Fix #14289 (#14304) [backport]slangmgh2020-05-111-1/+2
|