Andreas Rumpf
8df20276c9
fixes #14458 [backport:1.2] ( #14756 )
2020-06-22 13:06:22 +02:00
alaviss
c8554ebc0c
posix_other: add define to force time_t to 64 bit [backport] ( #14753 )
...
This is a temporary remedy for time_t transition to 64 bit on newer
Linux libc (musl >= 1.2.0, glibc >= 2.32).
In the future we might want to move away from libc, or figure out a way
to reliably detect the real size of C types at compile time, both of
which are difficult.
2020-06-22 09:23:24 +02:00
ee7
1e484ed62b
[backport] Docs: Fix broken code-block ( #14749 )
...
This commit indents the contents of a `code-block` in `httpclient.nim`
so that it displays correctly. The bug was introduced by 42a64245f8 .
I did a quick search for other `code-block`s that are broken in the same
way, but the only other one I found (in `pegs.nim`) is not included in
the generated documentation.
2020-06-22 08:12:50 +02:00
treeform
1ffe113450
Export fields from the Selection object. ( #14752 )
...
See: https://developer.mozilla.org/en-US/docs/Web/API/Selection
2020-06-21 20:41:24 +02:00
Andreas Rumpf
3ba0c30758
sizeof for empty objects/tuples should be 1; fixes #14690 ( #14751 )
2020-06-21 19:58:37 +02:00
alaviss
c7dee55b87
encodings: use only one iconv definition [backport:1.2] ( #14741 )
...
Fix an issue reported on IRC: using encodings with --dynlibOverrideAll
result in duplicated iconv definitions, causing compile errors.
This commit remove the `var` wrapper of iconv and go all out on
pointers, as it should due to how the API accepts nil. Also corrected
the API to resemble iconv(3p).
2020-06-21 19:28:03 +02:00
treeform
ca71a60ff6
Add css white-space property to dom.nim. ( #14743 )
...
https://developer.mozilla.org/en-US/docs/Web/CSS/white-space
2020-06-21 19:25:29 +02:00
Timothee Cour
79c90b30ee
nep1: use subjectVerb, not verbSuject ( #14732 )
2020-06-19 23:38:43 +02:00
Kaushal Modi
ac8ab4c549
Clarify the use of the backwards index operator (^N) in tut1 ( #14681 )
...
* Clarify the use of the backwards index operator (^N) in tut1
For consistency:
- Do `[a .. ^b]` (notice spaces on both sides of `..`)
- Do `[c ..< d]` (notice spaces on both sides of `..<`)
Fixes https://github.com/nim-lang/Nim/issues/14671 .
* tut1: Add a note that ^ template calls can be saved to consts
2020-06-19 10:22:48 -04:00
Juan Carlos
99c198625c
Deprecate unroll pragma, remove from documentation ( #14705 )
2020-06-19 15:08:45 +02:00
Timothee Cour
2039e3e883
fix #13899 defer now works with async ( #14723 )
2020-06-19 15:08:00 +02:00
Araq
65c7884a3c
fixes #14718 [backport]
2020-06-19 15:02:38 +02:00
Clyybber
45d1e55e72
Add testcases for #11811 and #14315 ( #14726 )
...
* Add testcase for #11811
* Add testcase for #14315
2020-06-19 14:56:38 +02:00
Araq
45bc6954c5
improve the parser's error message
2020-06-19 10:50:39 +02:00
Araq
522bc8dda1
added a space
2020-06-19 10:32:16 +02:00
Timothee Cour
5ad8b9e8eb
fix #14685 tests/async/t7758.nim flaky ( #14721 )
...
* fix #14685 tests/async/t7758.nim flaky
* address comment
* address comment
2020-06-19 09:53:45 +02:00
Timothee Cour
9c42ae91b7
add legacy workaround; improve test so that it actually tests for the bugfix
2020-06-19 09:53:06 +02:00
solo989
408518c9fe
Update tuple newLit
2020-06-19 09:53:06 +02:00
BarrOff
99ad65fdd6
make nim-gdb compatible with BSD systems ( #14700 )
2020-06-18 20:48:55 +02:00
Timothee Cour
bb62feff72
fix #14691 docgen works again for methods ( #14701 )
...
* fix #14691 docgen methods
* fixup
2020-06-18 08:47:16 +02:00
Timothee Cour
7df27b5035
[cleanups] doassert => doAssert; mark deadcode ( #14711 )
2020-06-17 20:25:25 -07:00
Miran
e7f280bd26
Remove deprecated stuff from stdlib ( #14699 )
...
* update to the latest Jester
* remove deprecated procs from some stdlib modules
* 'criterion' is not maintained anymore and relies on obsolete stuff
2020-06-17 15:25:02 +02:00
Timothee Cour
8619534293
remove compilerproc from newIdentNode ( #14692 )
2020-06-17 08:10:34 +02:00
Juan Carlos
15a45e8e73
Documentation update nims.rst ( #14683 )
...
* Update nims.rst to add modules that work on NimScript as mentioned in the changelog.md
* https://github.com/nim-lang/Nim/pull/14683#issuecomment-644976921
2020-06-17 07:58:03 +02:00
solo989
bdd2c25e9f
Update macros.nim ( #14697 )
2020-06-17 07:57:04 +02:00
Timothee Cour
ff93302f69
use check to investigate #14685 flaky tests/async/t7758.nim ( #14689 )
2020-06-16 15:57:57 -07:00
Timothee Cour
7ded490ec0
cleanup tests/test_nimscript.nims ( #14686 )
2020-06-16 14:38:30 -07:00
Dylan Modesitt
e35b21e553
Close#5586 ( #14682 )
...
* re-enable macos and bsd on some coro tests
* re-enable macos and bsd on some coro tests
2020-06-16 16:24:26 +02:00
Euan
1bc2e19498
Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. ( #14680 )
2020-06-16 11:44:28 +02:00
Timothee Cour
dfe51d10a1
addQuitProc now works with closures, and c, js(node/browser) backend; fix some bugs in testament (#14342 )
...
* make addQuitProc great again
* fix bugs in testament
* fix test
* change 2016 => 2020
* addQuitProc => addExitProc + locks
* move to std/exitprocs
2020-06-16 11:43:48 +02:00
Timothee Cour
45cac4afda
fix #14179 , fix #14142 , make CI 1.4x faster (2x faster locally) ( #14658 )
...
* fix #14142 : no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims
* remove a comment
* Revert "fixes the regression #12860 caused; hotfix"
This reverts commit 3d2459bdc0 .
* Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860 )"
This reverts commit d38853c504 .
* noNimScript => noWeirdTarget + noNimJs
2020-06-16 08:56:12 +02:00
Euan
7b12f13946
Use cc on OpenBSD and link to libm when building result ( #14672 )
2020-06-16 08:50:57 +02:00
Timothee Cour
de5cde473a
hintMsgOrigin now works in VM code (#14678 )
...
* `hintMsgOrigin` now works in VM code
* remove a simplification for now
2020-06-16 08:49:57 +02:00
Timothee Cour
faedb14a16
misc cleanups in compiler msgs: use toHumanStr, etc ( #14677 )
2020-06-15 21:17:24 -07:00
Timothee Cour
49033eb531
make tests/stdlib tests joinable ( #14626 )
...
* make tests/stdlib tests joinable
* fixup
2020-06-15 13:27:33 +02:00
Timothee Cour
d51beb7b20
make fromJson/toJson work with array[range, typ], + 1 bugfix ( #14669 )
...
* make toJson more robust
* properly handle array
2020-06-15 13:22:43 +02:00
Timothee Cour
bf604c6829
normalizeExe ( #14668 )
2020-06-15 10:57:34 +02:00
solo989
3cbf59336d
Update newLit set[T] to work when set is empty. ( #14662 )
...
* Update macros.nim
* Update lib/core/macros.nim
Co-authored-by: Clyybber <darkmine956@gmail.com >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-06-15 09:15:17 +02:00
Ico Doornekamp
571bc011ea
Added --benchmarkVM to times.cpuTime() documentation ( #14663 )
2020-06-15 08:58:11 +02:00
Juan Carlos
a056b4c3f1
Change 'Future Directions' to link memory management documentation ( #14664 )
2020-06-15 08:55:24 +02:00
jcosborn
5a22d6b57b
fix codegen bug due to changing existing symbol declaration in template ( #14666 )
2020-06-15 08:40:12 +02:00
alaviss
d749c8cd87
compiler/commands: make gitHash settable at compile-time. ( #14654 )
...
This is useful for building nightlies, since we will be building from a
generated source archive and git metadata is lost there.
2020-06-14 11:22:55 +02:00
Andy Davidoff
4e3edf5836
add arc and orc to gc list ( #14653 )
2020-06-14 11:12:08 +02:00
Timothee Cour
0fc5d3f13b
fix #14655 setLen(seq) now zeros memory ( #14656 )
...
* simplify sysstr.nim
* fix #14655
2020-06-14 11:11:26 +02:00
Dominik Picheta
d3b25a2948
Clarify imported exceptions note in manual
2020-06-13 11:44:01 +01:00
Timothee Cour
d149823019
fix #13166 tioselectors flaky test on freebsd+OSX ( #14634 )
2020-06-12 21:19:23 -07:00
Araq
5a26c3799b
reorder.nim: fixed typos
2020-06-12 11:57:29 +02:00
Timothee Cour
e30a08103d
remove tyOpt, mOpt ( #14636 )
...
* remove tyOpt, mOpt
* fixup
2020-06-12 11:03:52 +02:00
Juan Carlos
82e424189e
Add rstgen.rstToLatex convenience proc for renderRstToOut and initRstGenerator with outLatex output, see https://github.com/nim-lang/fusion/pull/11#issuecomment-641804899 ( #14629 )
2020-06-12 10:51:55 +02:00
djazz
1168c75381
httpcore: Add http code 308 Permanent Redirect ( #14639 )
...
* httpcore: Add http code 308
* httpclient: Add 308 to redirection proc
* fix typo
2020-06-12 10:16:38 +02:00