summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Allow let to not have value when using importc (#14258)PMunch2020-05-125-5/+52
| | | | | | | | | | | | | | * Allow let to not have value when using importc This allows a let statement with the `{.importc.}` pragma to not be initialised with a value. This allows us to declare C constants as Nim lets without putting the value in the Nim code (which can lead to errors, and requires us to go looking for the value). Fixes #14253 * Proper fix and documentation + changelog entry * Improve testcase with one from timotheecour * Add test to verify it working with macros
* cycle collector: make it threadsafeAraq2020-05-121-5/+5
|
* fix detecting closure env for nested asts (#14326)b3liever2020-05-121-3/+3
| | | Co-authored-by: b3liever <b3liever@yandex.com>
* close #13071 by adding test: nim cpp -r --gc:arc` segfaults on caught ↵Timothee Cour2020-05-121-0/+16
| | | | AssertionError (#14323)
* fix #14314 do not analyze importc procs for effects (#14319)Timothee Cour2020-05-124-7/+44
|
* fixes #13881Andreas Rumpf2020-05-129-23/+84
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* fix one motr dicriminator bugcooldome2020-05-121-2/+7
|
* fix testcooldome2020-05-121-3/+5
|
* fix #14312cooldome2020-05-122-8/+22
|
* Added a reference to ternary operators. (#14309)Avahe Kellenberger2020-05-121-0/+1
| | | | | `if expressions` are similar to ternary operators in other languages. In order to make this easier to find in the manual, I've added a sentence about it.
* properly fixes #13758 so that `import std/macros` stays legal (#14291)Timothee Cour2020-05-124-7/+18
| | | | | * properly fix https://github.com/nim-lang/Nim/issues/12389 * use --lib:lib in koch.nim.cfg instead * third time is the charm
* fix #14219 (#14225)cooldome2020-05-113-1/+17
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Make --backend:cpp|js work for :test: code-blocks as well (#14306)Kaushal Modi2020-05-112-2/+3
| | | | | | | | | 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
|
* fixes #13946 (#14302)Andreas Rumpf2020-05-112-11/+5
|
* small refactoring (#14303)b3liever2020-05-111-3/+4
| | | Co-authored-by: Antonis <b3liever@yandex.com>
* fix #14294 (#14301)cooldome2020-05-112-2/+31
| | | | | | | * fix #14294 * fix orc as well Co-authored-by: cooldome <ariabushenko@bk.ru>
* do not track 'raise Defect' in the .raises: [] clause anymore (#14298)Andreas Rumpf2020-05-116-8/+74
| | | | | | | | | * 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
* better error messageAntonis2020-05-111-1/+1
|
* fix closure env checkAntonis2020-05-111-1/+2
|
* Fix for --styleCheck:errorAntonis2020-05-111-4/+4
|
* refactor: renamed readme to readme.md (#14283)Jovial Joe Jayarson2020-05-112-5/+7
|
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-1122-99/+213
| | | | | | | | | | `--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
* fix a critical bug in windows.osproc leading to resource leaks and blocking ↵Timothee Cour2020-05-114-1/+36
| | | | IO [backport] (#14296)
* simple typo in locks.nim (#14297)Andy Davidoff2020-05-111-1/+1
|
* diable nimx (CI failure) refs https://github.com/timotheecour/Nim/issues/167 ↵Timothee Cour2020-05-101-1/+1
| | | | (#14293)
* `nim doc -r main` and `nim rst2html -r main` now call openDefaultBrowser ↵Timothee Cour2020-05-102-4/+16
| | | | (#14285)
* Fix #14269 (#14286)Clyybber2020-05-092-2/+105
|
* --hint:processing (+friends) is now supported and means ↵Timothee Cour2020-05-085-6/+30
| | | | `--hint:processing:on`, like all other bool flags (#14271)
* Merge pull request #14265 from alaviss/quickfixAndreas Rumpf2020-05-081-1/+1
|\ | | | | nativesockets: add missing inheritable pass-through
| * nativesockets: add missing inheritable pass-throughLeorize2020-05-071-1/+1
| |
* | fix root cause of https://github.com/dom96/choosenim/issues/193; ↵Andreas Rumpf2020-05-081-3/+2
|\ \ | | | | | | | | | config/config.nims should get installed (#14267)
| * | fix root cause of https://github.com/dom96/choosenim/issues/193; ↵Timothee Cour2020-05-071-3/+2
| | | | | | | | | | | | config/config.nims should get installed
* | | Fix typoClyybber2020-05-081-1/+1
| | |
* | | fix https://github.com/nim-lang/Nim/issues/14275 querySetting(nimcacheDir) ↵Timothee Cour2020-05-081-1/+1
| | | | | | | | | | | | works even if implicitly set (#14277)
* | | Fix #14270 and add testcases (#14276)Clyybber2020-05-082-2/+36
| | |
* | | make `from` an operator (#14241)hlaaftana2020-05-087-22/+38
|/ /
* | fix #14243 (#14257)cooldome2020-05-072-6/+24
| | | | | | | | | | * fix #14243 Co-authored-by: cooldome <ariabushenko@bk.ru>
* | tslow_tables: wait for an additional 2 seconds (#14266)alaviss2020-05-071-1/+1
| | | | | | | | | | | | | | | | This test runtime tends to hover around the 5s mark depending on how loaded the system currently is. This causes the test to fail a lot during CI, per analytics: https://dev.azure.com/nim-lang/Nim/_test/analytics?definitionId=1&contextType=build Give the test an extra 2 seconds to account for unrelated overhead.
* | Fix the DFA for "unstructured controlflow" (#14263)Clyybber2020-05-073-80/+141
|/ | | | | * Fix the DFA for "unstructured controlflow" * Add testcase from #14233
* net: remove more erroneous set constructions (#14252) [backport]alaviss2020-05-071-3/+8
| | | Refs #13764
* Split testing important packages into two jobs (#14256)Miran2020-05-074-134/+157
| | | | | * split testing packages in two separate jobs * speed-up the slowest tests * special treatment for two packages
* fix #14236 (#14250)cooldome2020-05-072-3/+19
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* fixes #14244 (#14248)cooldome2020-05-062-6/+25
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Fix runnable examples for bitops (#14247)awr12020-05-061-3/+3
|
* added a new feature: --cc:env so that you can use any C compiler as long as ↵Andreas Rumpf2020-05-063-13/+31
| | | | it works like GCC
* cleanup the CC setting, only leave in there what is at least semi-officially ↵Andreas Rumpf2020-05-062-122/+2
| | | | supported
* fix regression: -d:nimHasLibFFI was not being tested anymore (#14234)Timothee Cour2020-05-064-26/+50
| | | | | | | | * * fix regression: -d:nimHasLibFFI was not being tested anymore, in part because testament was silently treating some errors as easy to overlook messages * turned that message into an error * -d:nimHasLibFFI is now being tested with nim cpp * use correct signatures for importc procs * workaround for openbsd to unblock ctffi testing
* Added bitslice operations for bitops (#14016)awr12020-05-063-22/+280
| | | | | | | | | | | | | | | | | | | | * added bit operations based on bit slices, clarified documentation, made non-mutating versions of mask ops * Added since annotations, some runnable examples * Added mask()/masked() functions, changed internal workings of mask ops to use new bit* funcs * Changelog updated for new bitops improvements * Reorganization, added runnable examples * Documentation adjustments * Add incltrl for since annotation * Fix masked() impl * Fix mask() return type * Don't call toUnsigned on already unsigned types * Remove improper `var T` for flipMasked() * Fix return types for flipMasked() * Slight syntactic cleanup for *masked ops * Added tests for bitslice operations, new mask() operation, non-mutating mask ops * Fix setmasked() var T issue * More comprehensive tests * Fix runnable example for bitsliced() * Fix runnable example for mask()
* Make the fields of `times.DateTime` private (#14197)Oscar Nihlgård2020-05-064-89/+209
| | | | | * Make the fields of `times.DateTime` private * PR fixes