summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* asyncdispatch: fix erroneous set construction (#13765)alaviss2020-03-261-1/+3
| | | | | | | These constants were defined as `cint`. They can be huge on certain systems, such as Haiku, and trigger out-of-bounds errors in asyncdispatch. Ref #13764.
* Fix typeSym.getImpl for ref types (#13752)zah2020-03-264-8/+88
| | | | | | | | | | | | | | | | | | | | | * Fix typeSym.getImpl for ref types * Fix a codegen issue affecting the test suite of nim-beacon-chain * Fix tests/stdlib/tjsonmacro To understand the fix better it may help to take a look at the history of the replaced code. The nil check that is removed in this commit was introduced in another fix that failed to identify the root cause of the issue - namely that we allow an object type to exist for which no ast is present: https://github.com/nim-lang/Nim/pull/9601/files The original intention of the code is more obvious here: https://github.com/nim-lang/Nim/pull/9538/files
* `import macros` rather than `import std/macros`. (#13762)Euan2020-03-261-1/+2
|
* distinctBase overload for values (#13746)Timothee Cour2020-03-252-1/+8
|
* Continue bool conversion fixing (#13751)cooldome2020-03-253-2/+20
| | | | | | | | | * continue fixing #13744 * improve style * improve test Co-authored-by: cooldome <ariabushenko@bk.ru>
* bump copyright year to 2020 (#13753)Miran2020-03-251-1/+1
|
* [ci skip] docs: make the syntax for generics easy to look up (#13754)Rory O’Kane2020-03-251-1/+2
|
* [skip ci] docs: reword Part 3 link to communicate that it exists (#13755)Rory O’Kane2020-03-251-1/+1
|
* docs: say that `nil` can be used as a value (#13756)Rory O’Kane2020-03-251-5/+8
| | | | | and improve wording in other ways Showing that `nil` can be assigned helps to warn readers that variables can be `nil` even after being assigned a value.
* fix deprecations and other warnings (#13748)Miran2020-03-2522-66/+63
|
* fixes #13744 (#13749)cooldome2020-03-254-1/+44
| | | | | | | * fixes #13744 * improve style Co-authored-by: cooldome <ariabushenko@gmail.ru>
* fix #13737 (#13738)Timothee Cour2020-03-241-1/+2
|
* use nimEmulateOverflowChecks for ARM/ARM64Araq2020-03-241-0/+4
|
* __stderrp and friends are only on FreeBSD & DragonFlyBSD. (#13735)Euan2020-03-232-2/+2
|
* fix #13731, ambiguous repr of pointers (#13732)Miran2020-03-231-6/+2
|
* fixes #13722 (#13729)Andreas Rumpf2020-03-233-12/+27
| | | | | * fixes #13722 * better fix
* hotfix: make 'nim doc nimhcr' work on all platformsAraq2020-03-231-33/+33
|
* trees.nim: compare floating points by their bitpatterns because NaN ↵Araq2020-03-231-1/+1
| | | | comparisions are always false (WORST design in the history of computing!)
* disable even more of scope based destruction handling; fixes #13709Araq2020-03-231-7/+98
|
* trees.nim: compare floating points by their bitpatterns because NaN ↵Araq2020-03-231-1/+1
| | | | comparisions are always false (WORST design in the history of computing!)
* new syntax for lvalue references: `var b {.byaddr.} = expr` (#13508)Timothee Cour2020-03-234-1/+139
| | | | | | | | * new syntax for lvalue references: `var b {.byaddr.} = expr` * on type mismatch, `???(0, 0)` not shown anymore * * compiler now lowers `var a: {.foo.}: MyType = expr` to foo(a, MyType, expr) * new pragmas.byaddr defined in pure library code exploiting this lowering * skip `template foo() {.pragma.}`
* add error for missing commandLineParams (#13719)Andy Davidoff2020-03-231-0/+4
| | | | | | | * add error for missing commandLineParams * fixup * rewrite
* Revert "fix #13417 (#13712)" (#13728)Andreas Rumpf2020-03-232-31/+11
| | | This reverts commit a5f02cac85281fc2804e910f330f0c11d3c4f77b.
* introduce getPeerCertificates, fixes #13299 (#13650)Christian Ulrich2020-03-224-22/+82
| | | | | | | | | | | | * make i2d_X509 and d2i_X509 always available i2d_X509 and d2i_X509 have been available in all versions of OpenSSL, so make them available even if nimDisableCertificateValidation is set. * introduce getPeerCertificates, fixes #13299 getPeerCertificates retrieves the verified certificate chain of the peer we are connected to through an SSL-wrapped Socket/AsyncSocket. This introduces the new type Certificate which stores a DER-encoded X509 certificate.
* better error messages for Nim's effect systemAraq2020-03-224-21/+46
|
* Windows API callbacks cannot raise exceptionsAraq2020-03-221-3/+3
|
* fix #13417 (#13712)Arne Döring2020-03-222-11/+31
| | | | | * fix #13417 * add test
* fixes #13715 (#13716)Arne Döring2020-03-223-2/+11
| | | | | * fixes #13715 * fix test
* typoAraq2020-03-221-1/+1
|
* fix #13720 (#13721)Arne Döring2020-03-222-2/+4
|
* Add EPOLLEXCLUSIVE (#13718)Hiroki Noda2020-03-211-0/+1
|
* fixes #13708 (#13711)cooldome2020-03-212-10/+20
| | | | | | * fixes #13708 * differentiate between arc and rest of GC Co-authored-by: cooldome <ariabushenko@bk.ru>
* [ci skip] add back unintentionally removed linenarimiran2020-03-201-0/+1
|
* SSL certificate verify GitHub action (#13697)Federico Ceratto2020-03-2013-12/+872
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement SSL/TLS certificate checking #782 * SSL: Add nimDisableCertificateValidation Remove NIM_SSL_CERT_VALIDATION env var tests/untestable/thttpclient_ssl.nim ran successfully on Linux with libssl 1.1.1d * SSL: update integ test to skip flapping tests * Revert .travis.yml change * nimDisableCertificateValidation disable imports Prevent loading symbols that are not defined on older SSL libs * SSL: disable verification in net.nim ..when nimDisableCertificateValidation is set * Update changelog * Fix peername type * Add define check for windows * Disable test on windows * Add exprimental GitHub action CI for SSL * Test nimDisableCertificateValidation
* [RFC] 'walkDir' now has a new 'checkDir' flag, to mimic behaviour of other ↵Timothee Cour2020-03-206-31/+56
| | | | | languages (#13642) Co-authored-by: narimiran
* threadpool.nim: allow control over MaxThreadPoolSize and ↵Araq2020-03-201-3/+3
| | | | MaxDistinguishedThread; refs #10584
* Revert –#13658 for nim-gdb.bat. Fixes #13705 (#13707)Joey2020-03-201-1/+3
|
* fixes #13698 (#13706)Andreas Rumpf2020-03-202-2/+9
|
* Detect Ubuntu by checking release() and uname() (#13704)Hayden2020-03-201-1/+3
| | | This will improve detection of Ubuntu when running on Ubuntu on WSL. #13703
* fight the code bloat in base64.nimAraq2020-03-201-7/+16
|
* make 'nim check' more robust for illdefined constantsAraq2020-03-201-1/+1
|
* Add Base64 safe (#13672)Juan Carlos2020-03-203-9/+45
| | | | * Implement RFC-4648 Section-7 * https://github.com/nim-lang/Nim/pull/13672#issuecomment-600993466
* fix #13538 sigmatch errors are now sorted (#13701)Timothee Cour2020-03-206-47/+54
| | | | | | | * fix #13538 sigmatch now sorted and has reliable order * re-enable tests that were disabled because of that bug * fix remaining tests and un-disable 2 other tests that were affected by this bug
* Remove 2 old deprecated files (#13702)Juan Carlos2020-03-203-23/+1
|
* fix nimsuggest warning (#13699)Jasper Jenkins2020-03-203-7/+4
|
* fix nimpretty warning (#13700)Jasper Jenkins2020-03-201-2/+1
|
* cycle breaker (#13593)Andreas Rumpf2020-03-1910-41/+298
| | | | * cycle breaking as an alternative to cycle detection
* Clean 1 old deprecated empty file (#13696)Juan Carlos2020-03-191-6/+0
|
* Attempt to finish off araq cpp exceptions (#13695)cooldome2020-03-1912-74/+233
| | | | | | | | | | | | | | | * config update * disable a questionable test * remove c++ exception handling IDs, new impl doesn't require it anymore * C++ based exceptions finally work * fixes bootstrapping problem in C++ mode * teach GCC it's 2020 now * more bugfixes for C++ based exception handling * apply cooldome's patch * another attempt to enable C++11 * bug fix Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #13691 (#13694)Andreas Rumpf2020-03-192-2/+34
|