flywind
5b26f2bd81
fix deprecated example ( #18721 )
2021-08-21 08:22:00 +02:00
flywind
f0c6593412
add testcase for overloadable_enums ( #18722 )
...
* add testcase for overloadable_enums
* link
2021-08-21 08:21:06 +02:00
flywind
e52221e296
[docs]fix an item missing ( #18717 )
2021-08-20 20:00:04 +02:00
Timothee Cour
f2910077ac
sigmatch: support optional params with last block arg(s) ( #18631 )
...
* sigmatch: support optional params with last block arg
* add tests
* works with multiple block args
* cleanup
* address comment
2021-08-20 10:13:03 +02:00
flywind
13b9729183
fix #18627(Program segfaults with ARC when using openArray[string]) ( #18713 )
...
* fix #18627
* add testcase
* rename
* another
* remove tyVarargs
2021-08-19 19:56:52 +02:00
flywind
8fa0decf6b
fix a typo ( #18715 )
2021-08-19 21:54:45 +08:00
Tomohiro
373bbd9bb4
Add ceilDiv to math ( #18596 )
...
* Use assert in runnableExamples and improve boundary check
* Add more tests for ceilDiv
* Fix comment in ceilDiv
* Calling ceilDiv with int type T such like sizeof(T) > 8 is error
2021-08-19 11:35:40 +02:00
Timothee Cour
394f4ac7bb
improvements to addInt and $ for integer types ( #18592 )
...
* improvements to $(SomeInteger) and addInt
* remove mIntToStr, mInt64ToStr
* improvements
* fix tests/pragmas/tinjectstmt.nim; the diff is harmless, cgen code is identical with -d:danger or debug mode
* rm tests/system/tstrmantle.nim
* revert compiler/jsgen.nim for -d:nimVersion140
2021-08-19 11:33:52 +02:00
Timothee Cour
7b58dc2de0
allow building 1.4.0 from devel ( #18708 )
...
* allow building 1.4.0 from devel
* changelog
2021-08-18 19:33:11 +02:00
flywind
0778a38bbd
[wip]better hint message for JS ( #18704 )
...
* better hint message for JS
* both
2021-08-18 15:53:52 +02:00
Emery Hemingway
5fd150b7f7
asynchttpserver: ipv6 support ( #18706 )
...
Fix #18705
2021-08-18 14:25:25 +02:00
flywind
901c5ded52
fix #18702(fix parseutils.parseFloat) ( #18703 ) [backport:1.0]
...
* fix #18702
* Apply suggestions from code review
2021-08-16 15:14:35 +02:00
Timothee Cour
1acba63cb7
cross compilation targetting windows now supports nim r: nim r -d:mingw main ( #18682 )
...
* cross compilation targetting windows now supports `nim r`: `nim r -d:mingw main`
* quoteShell
* address comment: remove `conf.getConfigVar("nimrun.exe")`
2021-08-16 09:32:12 +02:00
Juan Carlos
b3e077863a
Documentation only, Terminal ( #18696 )
...
Add simple progress bar example to terminal module
2021-08-14 20:51:41 -04:00
Timothee Cour
52cc0a82ca
fix #18692 AsyncHttpServer was hanging because client.close was not called ( #18693 )
2021-08-14 02:13:30 -07:00
Andreas Rumpf
4463a3c3d7
manual: minor improvements ( #18687 )
2021-08-13 12:34:28 +02:00
Timothee Cour
b24812df5f
properly fix #10053 ; FieldDefect msg now shows discriminant value + lineinfo, in all backends (c,vm,js) ( #11955 )
...
* fix #10053 FieldError for vm
* fixup
* FieldError now also shows runtime value of discriminant
* fix field error reporting in vm
* also report culprit line info in err msg
* fix errors for newruntime 2
* fix for js
* fixup
* PRTEMP4
* works
* works
* works perfect
* refactor
* std/private/repr_impl
* suppport --gc:arc
* cleanup
* refactor
* simplify
* simplify
* simplify
* fixup
* move out compiler.vmgen.genCustom
* fixup
* fixup
* add tests
* revert compiler/debugutils.nim
* simplify reprDiscriminant
* fixup
* lib/std/private/repr_impl.nim -> lib/system/repr_impl.nim
* try to fix D20210812T165220
* honor --declaredlocs
* control toFileLineCol via --declaredlocs
2021-08-13 09:35:48 +02:00
Jaremy Creechley
3a1109a53b
initial fix for compiling Nim on Zephyr RTOS (issue #18684 ) ( #18685 )
...
* initial fix for compiling Nim on Zephyr RTOS (issue #18684 )
Co-authored-by: Jaremy J. Creechley <jaremy.creechley@wavebaselabs.com >
2021-08-13 08:57:29 +02:00
flywind
883c04d444
don't use space after proc names ( #18681 )
2021-08-12 20:57:12 -04:00
flywind
f559319a68
fix a sqlite bug ( #18669 )
2021-08-12 09:21:01 -07:00
Timothee Cour
5c1304a418
fix #18670 quoteShellCommand, quoteShell, quoteShellWindows on windows ( #18671 )
2021-08-12 16:50:08 +02:00
Andreas Rumpf
018465a234
fixes #18643 [backport:1.0] ( #18678 )
2021-08-12 08:25:11 +02:00
Timothee Cour
c94933acb7
fix #18674 --nimcache now works better with --os:windows ( #18675 )
2021-08-11 13:30:51 -07:00
Andreas Rumpf
bc14b77359
fixes #18665 DFA generator bug ( #18676 )
2021-08-11 17:19:23 +02:00
Timothee Cour
6c1bd4bb1c
fix: var a{.foo.} = expr inside templates (refs #15920 ) (except when foo is overloaded) ( #13869 )
...
* fix: `var a{.foo.} = expr` inside templates
* add test
* improve tdecls test
* improve tests
* add failing test
* PRTEMP
* fixup
2021-08-11 12:17:17 +02:00
Timothee Cour
8540065754
--cc:env now works correctly to assign linker executable, allowing to cross-compile/run for windows on osx via wine ( #18672 )
...
* --cc:env now works correctly to assign linker executable, allowing using wine on osx
* fixup
2021-08-11 11:42:01 +02:00
RSDuck
d0dd923acf
Switch maintanance ( #18668 )
...
* Fix and improve Nintendo Switch support
* Document the necessity for nimAllocPagesViaMalloc
* update changelog
* Use --gc:orc in examples
2021-08-11 08:54:49 +02:00
Kyle Brown
31fc0f9718
Remove unused imports, and deprecated function usage ( #18663 )
...
* clean up imports and slice to remove delete
* revert buggy code
* Replace "delete" with setlen to remove depreciation warning
2021-08-11 01:26:42 +02:00
Timothee Cour
8ce782d463
Add optional recursive arg to distinctBase (v2) ( #18659 )
...
* Add optional recursive arg to distinctBase
* Add docs and examples
Co-authored-by: ALANVF <alan.invents@gmail.com >
2021-08-09 08:51:39 +02:00
Timothee Cour
988c02b7cb
renamed: lib/std/private/vmutils.nim -> lib/std/private/bitops_utils.nim to avoid confusion with unrelated std/vmutils ( #18660 )
2021-08-08 19:24:45 -07:00
flywind
a7e622267e
use lent ( #18638 )
2021-08-08 20:44:14 +02:00
Christian Ulrich
0d3af5454b
Only allow IPv4 literals in strict form ( #18656 )
...
* Only allow IPv4 literals in strict form
The strict form as defined in RFC 6943, section 3.1.1 only allows the dotted
form ddd.ddd.ddd.ddd of IPv4 literals, where ddd is a one to three digit decimal
number between 0 and 255. Until now octal numbers (with a leading zero) were
interpreted as decimal numbers which has security implications, see
CVE-2021-29922 and CVE-2021-29923.
* Update lib/pure/net.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2021-08-08 19:11:07 +01:00
Kyle Brown
eb19db6595
Nim pretty and add void ( #18652 )
...
* pretty and add void
* distro fixup
* Update lib/pure/distros.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* tab to space
* requested change to be cleaner
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-08-08 19:30:51 +02:00
Timothee Cour
24445d31b3
improve several tests in testament ( #18635 )
...
* silence error output from template_various.nim
* any => auto in tests
* avoid showing failed for parseSpec since this is expected behavior in 2 cases: tincludefile.nim, tnav1.nim
* enforce InheritFromException
* fixup
2021-08-08 19:28:49 +02:00
flywind
9269a72f6f
[nre]fix #17129 ( #18632 )
...
* fix #17129
* correct
* give reference implementaion links
* add comment
* typo
* I'm conservative
* change
2021-08-08 19:27:43 +02:00
Juan Carlos
2cddf7fc96
Documentation only, add 1 example ( #18621 )
...
* ReSync with Devel
* ReSync
* Documentation only, add 1 example to For loop macro
* Flip it
* Update doc/manual.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-08-08 19:26:34 +02:00
Juan Carlos
6563a685c1
Documentation only, add 1 example ( #18633 )
2021-08-03 09:16:33 -07:00
Timothee Cour
c0abdaa2b4
improve runnableExamples and docs for std/nre ( #18634 )
...
* improve runnableExamples and docs for std/nre
* avoid too long lines in example
2021-08-02 22:22:47 -07:00
Kyle Brown
499d4690fb
Add Artix to distro list ( #18629 )
2021-08-02 03:38:15 -04:00
flywind
2bc07554cc
make proc names consistent ( #18626 )
...
* rename `endswith` to `endsWith`
* rename
2021-08-01 12:52:24 +01:00
flywind
916d0c21af
fix #18620 ( #18624 )
...
* fix #18620
* add testcase
2021-08-01 11:19:43 +02:00
Timothee Cour
52e276c82d
exportC => exportc ( #18625 )
2021-07-31 23:54:08 -07:00
Antonis Geralis
ecfc47b332
Modify atlas test for short commit hashes ( #18619 )
...
* test commit hashes support
* Update testdata.nim
* remove extra newlines
2021-07-30 16:36:16 +02:00
Andreas Rumpf
562dde624f
fixes #18371 ( #18617 )
2021-07-30 12:05:14 +02:00
flywind
c6fadb1799
[minor] reduce substr ( #18611 )
...
* minor
* correct
* unify the type of addrLen
* Update lib/packages/docutils/rstgen.nim
2021-07-30 09:32:00 +02:00
Timothee Cour
9a26f5059b
refs #16613 : check opcWrDeref for nil ( #18613 )
2021-07-30 09:30:22 +02:00
Timothee Cour
afc0259b12
fix #18385 followup, by building nimsuggest with -d:release during testing ( #18581 )
2021-07-29 19:28:33 -07:00
Timothee Cour
6b3c77e7f4
Remove tracking of environment from osenv.nim v2 ( #18575 )
...
* Remove unnecessary environment tracking
* try to fix windows
* fix delEnv
* make putEnv work on windows even with empty values; improve tests: add tests, add js, vm testing
* [skip ci] fix changelog
Co-authored-by: Caden Haustein <code@brightlysalty.33mail.com >
2021-07-29 23:05:26 +02:00
Andrey Makarov
bbe05c1532
docgen: draw frame around active anchors ( #18607 )
2021-07-29 13:30:19 +02:00
konsumlamm
1bba641fed
Update lib.rst ( #18605 )
...
* Update lib.rst
* Remove "Unstable" category
Add `strbasics`
* Update doc/lib.rst
* Update doc/lib.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-07-29 10:50:17 +02:00