Amjad Ben Hedhili
d77ada5bdf
Markdown code blocks migration part 9 ( #22506 )
...
* Markdown code blocks migration part 9
* fix [skip ci]
2023-08-19 15:14:56 +02:00
Tomohiro
eb83d20d0d
Add staticFileExists and staticDirExists ( #22278 )
2023-08-18 16:47:47 +02:00
Nan Xiao
019b488e1f
fixes syncio document ( #22498 )
2023-08-17 20:26:33 +08:00
Amjad Ben Hedhili
299394d21a
Fix seq.capacity ( #22488 )
2023-08-17 06:38:15 +02:00
ringabout
ade75a1483
fixes #22481 ; fixes card undefined misalignment behavior ( #22484 )
...
* fixes `card` undefined misalignment behavior
* Update lib/system/sets.nim
---------
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-08-15 23:31:44 +02:00
Andrey Makarov
a660c17d30
Markdown code blocks migration part 8 ( #22478 )
2023-08-15 06:27:36 +02:00
Emery Hemingway
1927ae72d0
Add Linux constant SO_BINDTODEVICE ( #22468 )
2023-08-14 21:00:48 +02:00
ringabout
7bb2462d06
fixes CI ( #22471 )
...
Revert "fixes bareExcept warnings; catch specific exceptions (#21119 )"
This reverts commit 9207d77848 .
2023-08-14 15:04:02 +08:00
Nan Xiao
9bf605cf98
fixes syncio document ( #22467 )
2023-08-14 08:44:50 +08:00
ringabout
9207d77848
fixes bareExcept warnings; catch specific exceptions ( #21119 )
...
* fixes bareExcept warnings; catch specific exceptions
* Update lib/pure/coro.nim
2023-08-13 00:02:36 +02:00
ringabout
3f7e1d7daa
replace doAssert false with raiseAssert in lib, which works better with strictdefs ( #22458 )
2023-08-11 18:24:46 +02:00
ringabout
10a6e4c236
clean up gc:arc or gc:orc in docs and in error messages ( #22408 )
...
* clean up gc:arc/orc in docs
* in error messages
2023-08-08 05:55:18 -04:00
ringabout
47d06d3d4c
fixes #22387 ; Undefined behavior when with hash(...) ( #22404 )
...
* fixes #22387 ; Undefined behavior when with hash(...)
* fixes vm
* fixes nimscript
2023-08-08 13:42:08 +08:00
Bung
fe9ae2c69a
nimIoselector option ( #22395 )
...
* selectors.nim: Add define to select event loop implementation
* rename to nimIoselector
---------
Co-authored-by: Jan Pobrislo <ccx@webprojekty.cz >
2023-08-07 10:09:35 +02:00
ringabout
93ced31353
use strictdefs for compiler ( #22365 )
...
* wip; use strictdefs for compiler
* checkpoint
* complete the chores
* more fixes
* first phase cleanup
* Update compiler/bitsets.nim
* cleanup
2023-08-06 14:26:21 +02:00
norrath-hero-cn
e0396900ed
Prevent early destruction of gFuns, fixes AddressSanitizer: heap-use-after-free ( #22386 )
...
Prevent destruction of gFuns before callClosures
2023-08-05 19:38:32 +02:00
konsumlamm
e15e19308e
Revert adding generic V: Ordinal parameter to succ, pred, inc, dec ( #22328 )
...
* Use `int` in `digitsutils`, `dragonbox`, `schubfach`
* Fix error message
2023-08-06 00:38:46 +08:00
Tomohiro
db435a4a79
Fix searchExtPos so that it returns -1 when the path is not a file ext ( #22245 )
...
* Fix searchExtPos so that it returns -1 when the path is not a file ext
* fix comparision expression
* Remove splitDrive from searchExtPos
2023-08-04 20:00:43 +02:00
norrath-hero-cn
73a29d72e3
fixes AddressSanitizer: global-buffer-overflow in getAppFilename on windows 10 ( #22380 )
...
fixes AddressSanitizer: global-buffer-overflow
2023-08-04 19:59:05 +02:00
konsumlamm
d37b620757
Make repr(HSlice) always available ( #22332 )
...
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
2023-08-04 05:29:48 +02:00
ringabout
f3a7622514
fixes #22360 ; compare with the half of randMax ( #22361 )
...
* fixes #22360 ; compare with the half of randMax
* add a test
2023-08-02 10:58:29 +02:00
Michal Maršálek
da368885da
Fix the position of "Grey" in colors.nim ( #22358 )
...
Update the position of "Grey"
2023-08-01 20:56:38 +02:00
ringabout
1d2c27d2e6
bump the devel version to 211 ( #22356 )
2023-08-01 16:48:52 +02:00
ringabout
a23e53b490
fixes #22262 ; fixes -d:useMalloc broken with --mm:none and --threads on ( #22355 )
...
* fixes #22262 ; -d:useMalloc broken with --mm:none and threads on
* fixes
2023-08-01 15:18:08 +02:00
Bung
d51bc084fd
remove thread duplicated code ( #22348 )
2023-07-31 10:58:59 +02:00
ringabout
f0f3904ff0
implement ensureMove ( #22339 )
...
* 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
2023-07-29 10:57:03 +02:00
Eric N. Vander Weele
f1ac979184
Remove declared and not used variable in packedsets.bitincl ( #22334 )
...
When compiling code that uses PackedSet with warnings enabled, `var ret`
in `bitincl` emits a "XDeclaredButNotUsed" warning.
2023-07-27 23:07:03 +02:00
ringabout
11c8dfc9b3
fixes docs ( #22331 )
2023-07-26 10:04:34 +08:00
ringabout
91987f8eb5
fixes #22210 ; transform return future in try/finally properly ( #22249 )
...
* wip; fixes #22210 ; transform return future in try/finally properly
* add a test case for #22210
* minor
* inserts a needsCompletion flag
* uses copyNimNode
2023-07-21 05:40:11 +02:00
ringabout
5ed44e1ec4
fixes #22254 ; fixes #22253 ; stricteffects bugs on recursive calls ( #22294 )
2023-07-19 15:20:41 +02:00
ringabout
7d9fe106ec
fixes #22268 ; fixes move codegen ( #22288 )
2023-07-19 12:57:58 +02:00
ringabout
f9280090f6
fixes idx properly ( #22280 )
2023-07-14 14:44:02 +02:00
Juan Carlos
db1ce4ff12
Fix #22273 ( #22275 )
...
* Fix #22273
2023-07-14 12:40:57 +02:00
ringabout
9471b5f964
fixes #22256 ; fixes GC_disableOrc overflow ( #22257 )
2023-07-11 19:01:18 +02:00
Solitude
9ddd768cce
Rename seq.add parameter to be consistent with refc ( #22244 )
2023-07-10 14:27:28 +02:00
Juan Carlos
148ff74c93
Fix #21401 ( #22232 )
2023-07-07 09:18:40 +02:00
ringabout
1ad618d96c
clean up the documentation ( #22196 )
2023-07-02 22:36:05 +02:00
Andrey Makarov
57de460437
Don't throw errors on RST tables in Markdown and RstMarkdown modes ( #22165 )
...
* 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`
2023-06-28 22:38:54 +02:00
Andreas Rumpf
9616762cfe
Revert "fix struct stat" ( #22171 )
...
Revert "fix struct stat (#22161 )"
This reverts commit 4b761295e7 .
2023-06-27 16:46:41 +02:00
ringabout
e422b3c860
adds =destroy T support for strings and seqs ( #22167 )
...
* adds =destroy T support for strings and seqs
* fixes system
* fixes tests
2023-06-27 13:07:29 +02:00
Jacek Sieka
47635d3031
fix Sigaction struct definition ( #22160 )
...
SigInfo is still wrong (most of its fields are in a union)
2023-06-27 10:09:04 +02:00
Jacek Sieka
cb40f11e6c
uint arithmetic for pointers ( #22159 )
...
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
2023-06-27 08:20:02 +02:00
Jacek Sieka
4b761295e7
fix struct stat ( #22161 )
...
Undo damage of https://github.com/nim-lang/Nim/pull/14170
2023-06-27 08:19:17 +02:00
ringabout
4ce3a68e79
fixes #22163 ; use {.push warning[BareExcept]:off.} to override settings temporarily ( #21390 )
...
* use `{.push warning[BareExcept]:off.}` to override settings temporarily
* likewise, suppress expect
2023-06-27 08:03:52 +08:00
ringabout
4546f5dfe5
adds T destructor for refs ( #22147 )
...
* adds T destructor for refs
* add `newRefdestructor`
* adds ref overload for destructors
* fixes config
2023-06-26 15:10:06 +02:00
Jake Leahy
43a3de9077
Fix regression in std/times ( #22155 )
...
* Add simple test case
Just so the regression doesn't happen again
* Specify initDateTime is gcsafe in the forward declarations
2023-06-26 15:07:42 +02:00
tersec
3e44d5742f
rm zero-extension and uint conversions deprecated since 0.19.9 ( #22151 )
2023-06-25 20:37:21 +02:00
ringabout
d137a3b52a
fixes :idx: index in in modules (2.0 regression) and in markdown files (persistent issues since 0.20.2) ( #22141 )
...
fixes :idx: index
2023-06-22 15:58:10 +02:00
Bung
3ad2e7df1c
fix #20023 hash for generic tables ( #20346 )
...
* fix #20023 hash for generic tables
* use default computation
* Update lib/pure/collections/tables.nim
Co-authored-by: Dan Rose <dan@digilabs.io >
* Update lib/pure/collections/tables.nim
Co-authored-by: Dan Rose <dan@digilabs.io >
* Update lib/pure/collections/tables.nim
* Update lib/pure/collections/tables.nim
* Update t20023.nim
---------
Co-authored-by: Dan Rose <dan@digilabs.io >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-06-21 12:19:40 +02:00
Zoom
5e529b3bfa
strutils.split/rsplit now return src on an empty sep (#22136 )
...
This is a rebase of an earlier rejected PR. Following the discussion
around it, this commit provides a valid output for and edge case
of an empty separator for `split` and `rsplit` routines. The empty
separator is interpreted as "split by no separators" and the initial
string is returned. This is consistent with the behaviour of the
`set[char]` version of `split`/`rsplit` routines and unifies them all.
Compared to a commit merged earlier, this one has a benefit of
not using assertions that will be removed in release builds
and thus still not preventing possible infinite loops (which was the
earlier behaviour for this edge case for separator of type `string`).
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2023-06-21 08:52:33 +02:00