konsumlamm
9819fb21d8
Use .. warning:: ( #17320 )
2021-03-10 10:39:23 -08:00
flywind
0e3ea16554
use lowercase --define switches ( #17283 )
2021-03-07 12:08:41 +01:00
Andreas Rumpf
8f1fa3e5b0
IC: further progress ( #17150 )
...
* IC: respect the -f switch
* IC: better rod file inspection
* progress
2021-03-05 09:58:55 +01:00
Jason Beetham
f28dc2c61e
Added assertion to clamp ( #17248 )
...
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-03-04 17:27:02 -08:00
Timothee Cour
f561afae41
followup #17225 : simplify code after removing gc2, generational ( #17242 )
2021-03-03 13:37:42 +01:00
Clyybber
507873be25
Use readable escape sequences ( #17241 )
2021-03-03 07:15:07 +01:00
flywind
a04c9d1f62
rename prepareStrMutation to prepareMutation ( #17235 )
...
* remove unnecessary when statement
* remove outdated codes
* rename prepareStrMutation to prepareMutation
2021-03-03 08:08:52 +08:00
flywind
dfa0a6b4a6
add runnableExamples for prepareStrMutation ( #17227 )
...
* Update lib/system.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-03-02 12:52:07 +01:00
Andreas Rumpf
bb0c19f42c
fixes #17173 ( #17213 )
...
* fixes #17173
* add testcase (#17214 )
* Apply suggestions from code review
* fix for newruntime
* Apply suggestions from code review
* Update lib/system.nim
* Update lib/system.nim
* Update lib/system.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2021-03-01 20:58:12 +01:00
Danil Yarantsev
82d8e9bff3
Replace double backticks with single backticks - Part 2 out of ~6 ( #17206 )
2021-02-28 23:15:26 -08:00
Danil Yarantsev
ac8166ab3d
Replace double backticks with single backticks - Part 1 out of ~6 ( #17205 )
2021-02-28 23:08:12 -08:00
Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
Timothee Cour
11a7fa68f6
fix #17159 items(cstring) works in VM ( #17160 )
...
* fix #17159 items(cstring) works in VM
* improve test coverage tests/stdlib/tcstring.nim; add helpers: whenRuntimeJs, whenVMorJs
* document items(cstring)
* address comments
2021-02-24 14:01:06 +01:00
Timothee Cour
c274e67198
add enumutils.items for sparse enums, typetraits.SomeSparseEnum ( #17080 )
...
* add enumutils.items for enum with holes
* changelog
* ref in lib.rst
* use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept
* address comment: rename back to enum with holes
2021-02-23 20:25:35 +01:00
Danil Yarantsev
4e619a6bea
A few rst doc fixes ( #17151 )
...
* Fix a couple of rst formatting issues
* no need for the extra space
2021-02-23 08:59:13 +01:00
Timothee Cour
ce7caec4b3
add io.readChars overload (simpler, less error prone) ( #16044 )
...
* add simpler to use readChars overload
* use new readChars overload
* Update lib/wrappers/openssl.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-02-22 20:13:08 +01:00
flywind
70ec17eede
use single backtick ( #17133 )
2021-02-21 00:27:39 -08:00
Andrey Makarov
d1fec552d0
stricter checks for RST headlines ( #17089 )
2021-02-20 18:01:45 +01:00
alaviss
ccc0667c29
system/excpt: let the OS handle termination on signal ( #16712 )
2021-02-19 00:29:21 -08:00
flywind
cd274a5ac9
fix stringify unsigned integer in JS and JS VM ( #17086 )
...
* fix js unsigned integer
* better
2021-02-18 20:13:52 +01:00
Timothee Cour
31bb67a309
add -d:nimStrictMode in CI to keep code from regressing; fixes ConvFromXtoItselfNotNeeded, UnusedImport notes ( #16764 )
2021-02-17 19:30:09 +01:00
Andreas Rumpf
f32ffb6ed8
fixes #17033 [backport:1.4] ( #17061 )
...
* fixes #17033 [backport:1.4]
* make test robust against stdlib gensym things
* cleanup assertions.nim to make topt_no_cursor easier to get right
2021-02-17 11:00:03 +01:00
Timothee Cour
b9994925f5
remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ( #16918 )
...
* nimNoArrayToCstringConversion deadcode
* nimbabel deadcode
* nimHasalignOf deadcode
* nimvarargstyped deadcode
* nimhygiene deadcode
* nimNewTypedesc deadcode
* nimlocks deadcode
* nimHasCppDefine deadcode
* nimHasRunnableExamples deadcode
* nimHasNilChecks deadcode
* nimSymKind deadcode
* minor macros refactoring
* nimVmEqIdent deadcode
* nimNoNil deadcode
* nimNoZeroTerminator deadcode
* nimHasSymOwnerInMacro deadcode
* nimVmExportFixed deadcode
* nimNewRuntime deadcode
* nimAshr deadcode
* nimUncheckedArrayTyp deadcode
* nimHasTypeof deadcode
* nimErrorProcCanHaveBody deadcode
* nimHasHotCodeReloading deadcode
* nimHasSignatureHashInMacro deadcode
* nimHasDefault deadcode
* nimMacrosSizealignof deadcode
2021-02-17 09:32:36 +01:00
Andreas Rumpf
e463a67c74
don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] ( #17062 )
2021-02-17 00:07:37 +01:00
flywind
a03ec067da
better getTempDir ( #16914 )
...
* better getTempDir
* fix comments
* better
* address comments
* use uint32
2021-02-15 19:39:03 +01:00
hlaaftana
81533a0014
[backport:1.4] JS cstring null fixes ( #16979 )
...
* [backport:1.4] JS cstring null fixes
* fix JS move string
* make it look cleaner
2021-02-11 17:04:32 +01:00
konsumlamm
d4f7f1d8f3
Improve documentation for assertions ( #16988 )
...
* Improve documentation for assertions
* Apply suggestions
Fix tests/assert/tassert_c.nim
* Use runnableExamples
* Move runnableExamples to module scope
2021-02-11 07:21:27 +01:00
flywind
f140c92409
fix some warnings ( #16952 )
2021-02-08 13:50:15 +01:00
flywind
d447c0fe3f
use typeof instead type ( #16962 )
2021-02-08 09:46:07 +01:00
Clyybber
2b2836fc9d
Fix link to switch
2021-02-04 14:40:32 +01:00
Clyybber
cccf219ceb
Allow strings for -- in config.nims ( #16934 )
2021-02-04 13:59:55 +01:00
flywind
777888fdea
add widestrs.newWideCString overload ( #16860 )
2021-02-01 20:16:50 +01:00
flywind
4e1e231e29
fix floats slice ( #16853 )
...
* see whether it breaks
* fix
* fix
* minor
* fix
* add enum
* use Ordinal types
* fix tests
* fix
* another style
* fix remainning cases
2021-01-29 12:26:36 +01:00
flywind
5f5a8aa5c6
remove unused warning ( #16809 )
2021-01-24 17:14:21 -08:00
Timothee Cour
18b983d7e3
addQuitProc => addExitProc ( #16765 )
2021-01-22 19:51:11 +01:00
Juan Carlos
78a99587a4
Deprecate TaintedString ( #15423 )
...
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-01-15 18:56:38 -08:00
Timothee Cour
52cf728001
followup for #16717 : minimized example + improved comment ( #16721 )
2021-01-15 01:09:58 +01:00
flywind
ef9027c290
fix #16706 ( #16717 ) [backport:1.4]
2021-01-14 16:52:00 +01:00
Andreas Rumpf
6317e4004d
make --gc:arc --exceptions:quirky work again [backport:1.4] ( #16583 )
...
* make --gc:arc --exceptions:quirky work again [backport:1.4]
* fixes #16404 [backport:1.4]
2021-01-04 19:44:50 +01:00
flywind
9531afac48
fix #16499 ( #16514 )
2021-01-04 18:27:58 +01:00
flywind
b42e7c0ef9
make the docs of arithmetics better ( #16510 )
...
* fix
* Update lib/system/arithmetics.nim
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
* Apply suggestions from code review
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2020-12-30 17:30:43 +01:00
flywind
2f4d00fb98
fix #16502 ( #16512 )
2020-12-30 14:51:17 +01:00
flywind
89a2390f8b
fix printing negative zero in JS backend ( #16505 )
2020-12-29 15:50:22 +01:00
Antonis Geralis
d5a3c2c2da
Added cmpMem export ( #16484 )
...
* added cmpMem export
* updates
* fix test
* Tiny changelog change
* Add a dot.
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-12-29 13:27:08 +01:00
flywind
3f9a2ebea5
fix nim js cmp fails at CT ( #16473 )
2020-12-27 10:13:57 +01:00
Jonah Snider
fa1a04188f
Avoid creating a holey array in makeNimstrLit for JS target ( #16461 )
...
* Avoid creating a holey array in makeNimstrLit
* Use array index instead of push
2020-12-27 09:33:51 +01:00
ee7
297c8e403d
styleCheck: Fix some inconsistent identifiers ( #16177 )
2020-12-21 09:41:56 -08:00
Matt Haggard
23d23ecb08
Make 'echo' raise IOErrors when appropriate ( #16367 )
...
* Make 'echo' raise IOError when fwrite/fflush fail
* Fix fwrite return value comparison
* Add test for echo raising error and don't fail to release locks in echo
* Fix exitcode expectation
* Make 'echo' raise IOError on Windows if it fails
* Add nimLegacyEchoNoRaise for prior no-IOError echo behavior
* Use checkErrMaybe template
2020-12-18 10:06:13 +01:00
Andreas Rumpf
868c31e88a
fixes #16365 [backport] ( #16381 )
2020-12-17 23:21:55 +01:00
Elliot Waite
f3d57761ab
Fix broken links in docs ( #16336 )
...
* Fix broken links in docs
* Fix rand HSlice links
2020-12-14 20:13:12 +01:00