| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
| |
Co-authored-by: b3liever <b3liever@yandex.com>
|
|
|
|
| |
AssertionError (#14323)
|
| |
|
|
|
|
|
|
| |
* fixes #13881
* documented changed requirements for system.onThreadDestruction
* destructors.rst: update the documentation
|
| |
|
| |
|
| |
|
|
|
|
|
| |
`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 fix https://github.com/nim-lang/Nim/issues/12389
* use --lib:lib in koch.nim.cfg instead
* third time is the charm
|
|
|
| |
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
|
|
|
|
|
|
|
|
| |
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 .
|
| |
|
| |
|
|
|
| |
Co-authored-by: Antonis <b3liever@yandex.com>
|
|
|
|
|
|
|
| |
* fix #14294
* fix orc as well
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
`--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
|
|
|
|
| |
IO [backport] (#14296)
|
| |
|
|
|
|
| |
(#14293)
|
|
|
|
| |
(#14285)
|
| |
|
|
|
|
| |
`--hint:processing:on`, like all other bool flags (#14271)
|
|\
| |
| | |
nativesockets: add missing inheritable pass-through
|
| | |
|
|\ \
| | |
| | |
| | | |
config/config.nims should get installed (#14267)
|
| | |
| | |
| | |
| | | |
config/config.nims should get installed
|
| | | |
|
| | |
| | |
| | |
| | | |
works even if implicitly set (#14277)
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| | |
* fix #14243
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
| |
| |
| |
| |
| |
| |
| |
| | |
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"
* Add testcase from #14233
|
|
|
| |
Refs #13764
|
|
|
|
|
| |
* split testing packages in two separate jobs
* speed-up the slowest tests
* special treatment for two packages
|
|
|
| |
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
|
|
| |
Co-authored-by: cooldome <ariabushenko@bk.ru>
|
| |
|
|
|
|
| |
it works like GCC
|
|
|
|
| |
supported
|
|
|
|
|
|
|
|
| |
* * 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 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
* PR fixes
|