summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* fixes #22541; peg matchLen can raise an unlisted exception: Exception (#22545)ringabout2023-08-241-1/+1
| | | The `mopProc` is a recursive function.
* make jsffi properly gensym (#22539)metagn2023-08-231-22/+29
| | | fixes #21208
* allow tuples and procs in 'toTask' + minor things (#22530)Andreas Rumpf2023-08-222-3/+3
|
* Markdown code blocks migration part 9 (#22506)Amjad Ben Hedhili2023-08-194-89/+89
| | | | | * Markdown code blocks migration part 9 * fix [skip ci]
* Add staticFileExists and staticDirExists (#22278)Tomohiro2023-08-181-0/+13
|
* fixes syncio document (#22498)Nan Xiao2023-08-171-2/+2
|
* Fix `seq.capacity` (#22488)Amjad Ben Hedhili2023-08-171-2/+2
|
* fixes #22481; fixes `card` undefined misalignment behavior (#22484)ringabout2023-08-151-1/+3
| | | | | | | | | * fixes `card` undefined misalignment behavior * Update lib/system/sets.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Markdown code blocks migration part 8 (#22478)Andrey Makarov2023-08-1542-611/+708
|
* Add Linux constant SO_BINDTODEVICE (#22468)Emery Hemingway2023-08-142-0/+2
|
* fixes CI (#22471)ringabout2023-08-143-4/+4
| | | | | Revert "fixes bareExcept warnings; catch specific exceptions (#21119)" This reverts commit 9207d77848d6f5db3635ae64f3cd4972cdbe3296.
* fixes syncio document (#22467)Nan Xiao2023-08-141-2/+2
|
* fixes bareExcept warnings; catch specific exceptions (#21119)ringabout2023-08-133-4/+4
| | | | | * fixes bareExcept warnings; catch specific exceptions * Update lib/pure/coro.nim
* replace `doAssert false` with `raiseAssert` in lib, which works better with ↵ringabout2023-08-1121-33/+33
| | | | strictdefs (#22458)
* clean up `gc:arc` or `gc:orc` in docs and in error messages (#22408)ringabout2023-08-085-13/+13
| | | | | * clean up gc:arc/orc in docs * in error messages
* fixes #22387; Undefined behavior when with hash(...) (#22404)ringabout2023-08-081-6/+14
| | | | | | | * fixes #22387; Undefined behavior when with hash(...) * fixes vm * fixes nimscript
* nimIoselector option (#22395)Bung2023-08-071-1/+12
| | | | | | | | | * selectors.nim: Add define to select event loop implementation * rename to nimIoselector --------- Co-authored-by: Jan Pobrislo <ccx@webprojekty.cz>
* use strictdefs for compiler (#22365)ringabout2023-08-067-10/+14
| | | | | | | | | | | | | | | * wip; use strictdefs for compiler * checkpoint * complete the chores * more fixes * first phase cleanup * Update compiler/bitsets.nim * cleanup
* Prevent early destruction of gFuns, fixes AddressSanitizer: ↵norrath-hero-cn2023-08-051-1/+1
| | | | | heap-use-after-free (#22386) Prevent destruction of gFuns before callClosures
* Revert adding generic `V: Ordinal` parameter to `succ`, `pred`, `inc`, `dec` ↵konsumlamm2023-08-064-16/+16
| | | | | | | (#22328) * Use `int` in `digitsutils`, `dragonbox`, `schubfach` * Fix error message
* Fix searchExtPos so that it returns -1 when the path is not a file ext (#22245)Tomohiro2023-08-041-4/+17
| | | | | | | * Fix searchExtPos so that it returns -1 when the path is not a file ext * fix comparision expression * Remove splitDrive from searchExtPos
* fixes AddressSanitizer: global-buffer-overflow in getAppFilename on windows ↵norrath-hero-cn2023-08-041-2/+2
| | | | | 10 (#22380) fixes AddressSanitizer: global-buffer-overflow
* Make `repr(HSlice)` always available (#22332)konsumlamm2023-08-042-10/+10
| | | Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* fixes #22360; compare with the half of randMax (#22361)ringabout2023-08-021-4/+1
| | | | | * fixes #22360; compare with the half of randMax * add a test
* Fix the position of "Grey" in colors.nim (#22358)Michal Maršálek2023-08-011-2/+2
| | | Update the position of "Grey"
* bump the devel version to 211 (#22356)ringabout2023-08-011-3/+3
|
* fixes #22262; fixes `-d:useMalloc` broken with `--mm:none` and `--threads ↵ringabout2023-08-011-1/+1
| | | | | | | on` (#22355) * fixes #22262; -d:useMalloc broken with --mm:none and threads on * fixes
* remove thread duplicated code (#22348)Bung2023-07-311-5/+0
|
* implement `ensureMove` (#22339)ringabout2023-07-291-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implement `ensureMove` * use an additional flag * improve some logics * progress: fixes discard ensureMove * forbids nested expressions * improve error messages * checkpoint * fixes cursor * ADD MORE TESTS * fixes cursorinference again * tiny cleanup * improve error messages * fixes docs * implement comments add more tests * fixes js
* Remove declared and not used variable in packedsets.bitincl (#22334)Eric N. Vander Weele2023-07-271-1/+0
| | | | When compiling code that uses PackedSet with warnings enabled, `var ret` in `bitincl` emits a "XDeclaredButNotUsed" warning.
* fixes docs (#22331)ringabout2023-07-261-1/+1
|
* fixes #22210; transform return future in try/finally properly (#22249)ringabout2023-07-211-9/+48
| | | | | | | | | | | * wip; fixes #22210; transform return future in try/finally properly * add a test case for #22210 * minor * inserts a needsCompletion flag * uses copyNimNode
* fixes #22254; fixes #22253; stricteffects bugs on recursive calls (#22294)ringabout2023-07-191-2/+3
|
* fixes #22268; fixes `move` codegen (#22288)ringabout2023-07-191-20/+8
|
* fixes idx properly (#22280)ringabout2023-07-142-10/+13
|
* Fix #22273 (#22275)Juan Carlos2023-07-141-1/+1
| | | * Fix #22273
* fixes #22256; fixes GC_disableOrc overflow (#22257)ringabout2023-07-111-1/+1
|
* Rename `seq.add` parameter to be consistent with `refc` (#22244)Solitude2023-07-101-2/+2
|
* Fix #21401 (#22232)Juan Carlos2023-07-071-0/+8
|
* clean up the documentation (#22196)ringabout2023-07-021-13/+13
|
* Don't throw errors on RST tables in Markdown and RstMarkdown modes (#22165)Andrey Makarov2023-06-281-10/+34
| | | | | | | | | | | | | | | | | | | | | * Don't throw errors on RST tables in Markdown and RstMarkdown modes Additions to RST simple tables (#19859) made their parsing more restrictive, which can introduce problems with of some old nimforum posts, which have tables with sloppily aligned columns (like this one: https://github.com/nim-lang/nimforum/issues/330#issuecomment-1376039966). Also this strictness contradicts to Markdown style of not getting in the way (ignoring errors). So this PR proposes a new strategy of dealing with errors: * In Markdown and legacy (old default) RstMarkdown we try to continue parsing, emitting only warnings * And only in pure RST mode we throw a error I expect that this strategy will be applied to more parts of markup code in the future. * Don't return anything in `checkColumns`
* Revert "fix struct stat" (#22171)Andreas Rumpf2023-06-271-1/+0
| | | | | Revert "fix struct stat (#22161)" This reverts commit 4b761295e7ab31412903c02b8fb98f580bf005ca.
* adds =destroy T support for strings and seqs (#22167)ringabout2023-06-271-1/+7
| | | | | | | * adds =destroy T support for strings and seqs * fixes system * fixes tests
* fix Sigaction struct definition (#22160)Jacek Sieka2023-06-271-2/+8
| | | SigInfo is still wrong (most of its fields are in a union)
* uint arithmetic for pointers (#22159)Jacek Sieka2023-06-272-2/+2
| | | | | | | pointers are not signed and arithmetic may correctly cross int.max threshold this PR only fixes 2 occurances - there are plenty however in the std lib
* fix struct stat (#22161)Jacek Sieka2023-06-271-0/+1
| | | Undo damage of https://github.com/nim-lang/Nim/pull/14170
* fixes #22163; use `{.push warning[BareExcept]:off.}` to override settings ↵ringabout2023-06-272-6/+10
| | | | | | | temporarily (#21390) * use `{.push warning[BareExcept]:off.}` to override settings temporarily * likewise, suppress expect
* adds T destructor for refs (#22147)ringabout2023-06-261-0/+4
| | | | | | | | | * adds T destructor for refs * add `newRefdestructor` * adds ref overload for destructors * fixes config
* Fix regression in `std/times` (#22155)Jake Leahy2023-06-261-2/+2
| | | | | | | * Add simple test case Just so the regression doesn't happen again * Specify initDateTime is gcsafe in the forward declarations
* rm zero-extension and uint conversions deprecated since 0.19.9 (#22151)tersec2023-06-251-56/+0
|