Bung
2a4a43b05f
add bindParams to db_sqlite ( #14408 )
...
* 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 >
2020-05-26 07:44:47 +02:00
Timothee Cour
55758920f4
docgen: fix #14448 show @@ as .. in href text ( #14451 )
2020-05-25 18:16:00 -07:00
cooldome
6635874a85
make get for options use lent T ( #14442 )
...
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-05-25 15:31:02 +02:00
Max Grender-Jones
cbfe9325c5
Add support for mktemps ( #14347 )
2020-05-25 12:18:35 +02:00
treeform
acae3b02c7
Add clipPath to dom.nim. ( #14435 )
...
Just adds a single new css atribute, see: https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path .
2020-05-24 07:32:24 +02:00
hlaaftana
f70d01a7d5
fix repr(char) example assert ( #14437 )
2020-05-23 21:26:49 -07:00
genotrance
b012205b2e
Fix #14057 - moveFile should overwrite on Windows ( #14433 )
2020-05-23 17:06:04 +01:00
Bung
6668b43409
add insert,tryInsert unify for postgres that need pk name ( #14416 )
...
* 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 >
2020-05-22 19:24:52 +02:00
Mildred Ki'Lya
7b3dcfde20
Add missing attributes and methods to JavaScript DOM ( #14428 )
...
- 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
2020-05-22 14:34:20 +02:00
Andreas Rumpf
f7b73e6bfd
make malloc.nim consistent in style ( #14427 )
2020-05-22 09:55:10 +02:00
Andreas Rumpf
3eaa870c0a
ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour ( #14423 )
2020-05-21 22:38:13 +02:00
Andreas Rumpf
063229a301
fixes a bug reported in https://forum.nim-lang.org/t/6361 ( #14422 )
2020-05-21 22:18:58 +02:00
Mamy Ratsimbazafy
f71f8b0239
The whole options module should be inline ( #14417 ) [backport:1.2]
...
* The whole options module should be inline
* Use inline per proc and tag `lent` where appropriate
* Remove lent annotation (failing at compiletime)
2020-05-21 17:52:40 +02:00
Timothee Cour
5caaa4bf6f
fix #14404 foldr had the classic multiple evaluation bug ( #14413 )
2020-05-21 11:01:43 +02:00
Clyybber
7fe4c66f35
Small improvements for string and char repr with gc:arc ( #14400 )
...
* Small improvements for string and char repr with gc:arc
* Fix test
2020-05-20 12:54:04 +02:00
Timothee Cour
3d20f14193
fix #10731 ; runnableExamples "-b:cpp --run:off": code works ( #14384 )
...
* runnableExamples "-b:cpp -r:off": code
2020-05-20 09:45:34 +02:00
alaviss
4ae341353d
asyncdispatch, asyncnet: add inheritance control ( #14362 )
...
* asyncdispatch, asyncnet: add inheritance control
* asyncnet, asyncdispatch: cleanup
2020-05-20 09:42:55 +02:00
Andreas Rumpf
b35d370d88
specialize genericReset ( #14398 )
...
* progress
* make tests green
* maybe we also want to reset pointers, dunno
* progress
* cleanup; fixes #13879 [backport:1.2]
2020-05-19 21:42:53 +02:00
Timothee Cour
e909486e5c
trunner was not actually being tested in non-CTFFI mode; minor testament 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
2020-05-19 09:41:31 +02:00
Clyybber
ac65986aae
Fix #14394 ( #14395 )
2020-05-18 17:43:06 +01:00
John
40ac19572a
add OpenBSD MAP_STACK for coroutines ( #14353 )
2020-05-16 21:56:52 +02:00
Andreas Rumpf
7f377da1d2
fixes #14370 ( #14371 )
2020-05-16 17:03:25 +02:00
Dominik Picheta
7361e2627b
Emscripten: disable epoll ( #14361 )
...
Epoll is not supported by epoll.
2020-05-16 15:50:41 +02:00
Bung
390ff428f0
add SqlPrepared api fix #13559 ( #14365 )
...
Co-authored-by: bung87 <crc32@qq.com >
2020-05-16 15:50:04 +02:00
Timothee Cour
c777f2fb60
fix some issues with --backend ( #14363 )
...
* fix some issues with --backend
* fix https://github.com/timotheecour/Nim/issues/175 ; improve upon #14306
2020-05-16 13:09:18 +02:00
Kaushal Modi
bf0e1c696f
Remove the uses of {.procvar.} pragma ( #14359 )
...
This pragma did nothing.
Ref:
- https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469
- https://github.com/nim-lang/Nim/issues/12975
2020-05-15 23:37:24 +02:00
Bung
ce0552c100
fix #9771 ( #14357 )
...
* fix #9771
* map SQLLEN SQLULEN
* fix proc params take TSqlLen
Co-authored-by: bung87 <crc32@qq.com >
2020-05-15 21:00:06 +02:00
PMunch
13cfaf5fd5
Improve nimeval, changes some defaults ( #14351 )
...
* 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
2020-05-15 19:32:52 +02:00
Kaushal Modi
a2a3fa1039
Fail quickly if re or nre module is attempted to be compiled with js [backport] ( #14341 )
...
Fixes https://github.com/nim-lang/Nim/issues/14338 .
2020-05-14 07:27:57 +02:00
Araq
8a339d1178
fixes #13862
2020-05-13 23:56:40 +02:00
Andreas Rumpf
79fe87500f
fixes #13935
2020-05-13 22:17:38 +02:00
Araq
a3719df8b3
fixes #14331
2020-05-13 14:29:53 +02:00
Timothee Cour
041ee92bba
osproc.execCmdEx now takes an optional input for stdin, env, workingDir (#14211 )
...
* `osproc.execCmdEx` now takes an optional `input` for stdin
* execCmdEx now also takes an optional ``workingDir` and `env`
2020-05-13 13:45:36 +02:00
Araq
82f008158c
cycle collector: make it threadsafe
2020-05-12 20:13:06 +02:00
Andreas Rumpf
06dfd31612
fixes #13881
...
* fixes #13881
* documented changed requirements for system.onThreadDestruction
* destructors.rst: update the documentation
2020-05-12 15:46:24 +02:00
Timothee Cour
b8ec07f19e
properly fixes #13758 so that import std/macros stays legal ( #14291 )
...
* properly fix https://github.com/nim-lang/Nim/issues/12389
* use --lib:lib in koch.nim.cfg instead
* third time is the charm
2020-05-12 08:27:47 +02:00
Kaushal Modi
86669ef5b4
Make --backend:cpp|js work for :test: code-blocks as well ( #14306 )
...
Continues 9502e39b63
Ref:
- 9502e39b63 (commitcomment-39087584)
- https://github.com/nim-lang/Nim/pull/14278
Fixes https://github.com/nim-lang/Nim/issues/13129 .
2020-05-11 20:45:35 +02:00
slangmgh
76f7e95814
Fix #14289 ( #14304 ) [backport]
2020-05-11 19:17:37 +02:00
Andreas Rumpf
0f344a70c9
fixes #13946 ( #14302 )
2020-05-11 19:12:40 +02:00
Andreas Rumpf
03c146cd93
do not track 'raise Defect' in the .raises: [] clause anymore ( #14298 )
...
* do not track 'raise Defect' in the .raises: [] clause anymore
* --panics:on maps 'raise Defect' to an unrecoverable fatal error
* make tests green again
* update the documentation too
2020-05-11 16:25:56 +02:00
Antonis
73c9d2c9d7
Fix for --styleCheck:error
2020-05-11 15:39:44 +02:00
Timothee Cour
9502e39b63
nim doc --backend:js, nim doc --doccmd:-d:foo, nim r --backend:js, --doccmd:skip + other improvements (#14278 )
...
* `nim doc --backend:js|cpp...`
`nim doc --doccmd:'-d:foo --threads:on'`
`nim r --backend:cpp...` (implies --run --usenimcache)
* --usenimcache works with all targets
* --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
2020-05-11 12:01:18 +02:00
Timothee Cour
d11cb9d495
fix a critical bug in windows.osproc leading to resource leaks and blocking IO [backport] ( #14296 )
2020-05-11 11:14:21 +02:00
Andy Davidoff
8018449319
simple typo in locks.nim ( #14297 )
2020-05-11 02:59:31 -04:00
Timothee Cour
411be506a3
--hint:processing (+friends) is now supported and means --hint:processing:on, like all other bool flags ( #14271 )
2020-05-08 18:54:16 +02:00
Andreas Rumpf
ce16115e79
Merge pull request #14265 from alaviss/quickfix
...
nativesockets: add missing inheritable pass-through
2020-05-08 17:33:38 +02:00
Clyybber
120ea906fb
Fix #14270 and add testcases ( #14276 )
2020-05-08 15:54:34 +02:00
Leorize
73a42ce941
nativesockets: add missing inheritable pass-through
2020-05-07 14:43:53 -05:00
alaviss
1a1e9986a3
net: remove more erroneous set constructions ( #14252 ) [backport]
...
Refs #13764
2020-05-07 13:37:54 +02:00
awr1
b70b8a7cdd
Fix runnable examples for bitops ( #14247 )
2020-05-06 19:29:36 +02:00