ringabout
7a43d00a64
fixes #21278 ; deques.shrink off by one bug ( #21284 )
...
fixes #21278 ; deques.shrink off ny one bug
(cherry picked from commit b82b5d44af )
2023-01-22 11:58:31 +01:00
Peter Munch-Ellingsen
ebf0e7ebb1
Implement setLineInfo ( #21153 )
...
* Implement setLineInfo
* Add tests
(cherry picked from commit 613829f7a4 )
2023-01-19 10:33:13 +01:00
Tanguy
9ee9b4283d
Allow std/macros.params to work with nnkProcTy ( #19563 )
...
* Allow std/macros.params to work with nnkProcTy
* Add tests for proc params & pragma
(cherry picked from commit ef3f343ec2 )
2023-01-18 18:13:58 +01:00
narimiran
a1165c8231
Revert "fix bare exceptions in excpt.nim"
...
This reverts commit babd80b446 .
2022-12-16 05:51:49 +01:00
narimiran
babd80b446
fix bare exceptions in excpt.nim
2022-12-15 21:58:24 +01:00
ringabout
f01ffbf6f1
fix #19580 ; add warning for bare except: clause ( #21099 )
...
* fix #19580 ; add warning for bare except: clause
* fixes some easy ones
* Update doc/manual.md
* fixes docs
* Update changelog.md
* addition
* Apply suggestions from code review
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com >
* Update doc/tut2.md
Co-authored-by: Jacek Sieka <arnetheduck@gmail.com >
(cherry picked from commit 91ce8c385d )
2022-12-15 16:31:37 +01:00
metagn
3e677a6225
dom: remove X* = ref XObj [backport] ( #20910 )
...
dom: remove X* = ref XObj
(cherry picked from commit ce971400c0 )
2022-11-30 07:33:54 +01:00
jfilby
d2de2e7be1
Fix several memory leaks in the Postgres wrapper. ( #20940 )
...
(cherry picked from commit 5a848a0707 )
2022-11-28 14:29:36 +01:00
ringabout
871e90aa4e
fixes broken importc for vcc [backport] ( #20909 )
...
fixes broken imports for vcc
(cherry picked from commit b7d96cd3f5 )
2022-11-26 09:50:35 +01:00
narimiran
ca0757d09f
bump NimVersion to 1.6.11
2022-11-26 09:50:03 +01:00
narimiran
f1519259f8
bump NimVersion to 1.6.10
2022-11-20 16:21:55 +01:00
ringabout
eaf43a1bd9
fixes remaining ptr2cstring warnings on version-1-6 ( #20861 )
2022-11-16 21:19:32 +01:00
ringabout
dd80e968e8
fixes ptr to cstring warnings[backport] ( #20848 )
...
* fix =#13790 ptr char (+friends) should not implicitly convert to cstring
* Apply suggestions from code review
* first round; compiles on windows
* nimPreviewSlimSystem
* conversion is unsafe, cast needed
* fixes more tests
* fixes asyncnet
* another try another error
* last one
* true
* one more
* why bugs didn't show at once
* add `nimPreviewCstringConversion` switch
* typo
* fixes ptr to cstring warnings[backport]
* add fixes
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
(cherry picked from commit 06cd15663d )
2022-11-16 16:16:26 +01:00
rockcavera
a1c431c6ab
Fixing nimRawSetJmp for vcc and clangcl on Windows ( #19959 )
...
* fix vcc rawsetjmp
* changing `_longjmp()` to `longjmp()` and
`_setjmp()` to `setjmp()`
* fix
* fix setjmp to clangcl on Windows
* fix genTrySetjmp() to clangcl on Windows
(cherry picked from commit d2d8f1342b )
2022-11-04 07:02:45 +01:00
metagn
121602e88f
openssl 3 support (1.6) ( #20669 )
2022-11-02 14:23:58 +01:00
Jacek Sieka
38730862fc
fix fwrite prototype ( #20644 )
...
* fix fwrite prototype
* Update lib/std/syncio.nim
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com >
(cherry picked from commit e2f412145f )
2022-10-25 13:28:18 +02:00
Tanguy
c9df6cfd92
Remove side-effects from sysFatal with panics on ( #20632 )
...
(cherry picked from commit 4578e773ce )
2022-10-24 10:38:16 +02:00
Andreas Rumpf
01a0b31167
allocator: disable unnecessary stuff for ORC [backport] ( #20489 )
...
(cherry picked from commit 7aaeb75ebd )
2022-10-06 18:22:43 +02:00
ringabout
ce63020110
fix #19500 ; remove find optimization [backport: 1.6] ( #19714 )
...
* remove find optimization
close #19500
* save find to std
* add simple tests
* Apply suggestions from code review
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
(cherry picked from commit 65c2518d5c )
2022-10-06 18:21:51 +02:00
narimiran
fbd99c781f
bump NimVersion to 1.6.9
2022-09-30 09:43:36 +02:00
narimiran
c9f46ca8c9
bump NimVersion to 1.6.8
2022-09-26 13:18:10 +02:00
ringabout
60f43fb690
fixes #19104 ; peg Incorrect captures [backport:1.6] ( #20352 )
...
* fixes #19104 ; peg Incorrect captures [backport:1.6]
* add tests
Co-authored-by: khchen <khchen@gmail.com >
(cherry picked from commit 2b80ff2374 )
2022-09-19 15:08:45 +02:00
ringabout
09d85d8b24
std/options enables stricteffects ( #19441 )
...
(cherry picked from commit 16f6dc05fd )
2022-08-25 20:11:37 +02:00
ringabout
e5e445f042
fixes #19973 ; switch to poll on posix ( #20212 )
...
* fixes #19973 ; switch to poll on posix
* it is fd
* exclude lwip
* fixes lwip
* rename select to timeoutRead
* refactor into timeoutRead/timeoutWrite
* refactor common parts
Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com >
(cherry picked from commit 2b8f0a7971 )
2022-08-23 21:33:02 +02:00
ringabout
d79f61e54d
fixes #20153 ; do not escape _ for mysql [backport] ( #20164 )
...
* fixes #20153 ; do not escape `_` for mysql
* add a test
* Update db_mysql.nim
* Update tdb_mysql.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
(cherry picked from commit 3bd935f331 )
2022-08-23 13:31:33 +02:00
Andrey Makarov
831fed1c01
Don't require blank line before Markdown code (1.6) ( #20216 )
...
Don't require blank line before Markdown code
Fixes bug reported in https://github.com/nim-lang/Nim/pull/20189
affecting nimforum.
(manually backported version to 1.6 from devel)
2022-08-15 18:38:17 -04:00
ringabout
0277cd5252
Revert "Correct emscripten shortcoming" ( #20082 )
...
Revert "Correct emscripten shortcoming (#19987 )"
This reverts commit 0e7138417c .
2022-07-25 17:51:13 +08:00
metagn
7d0bfc6725
fix #20067 , fix #18976 [backport] ( #20069 )
...
(cherry picked from commit 685bf944aa )
2022-07-25 11:41:13 +02:00
Jacek Sieka
5771a0f9c4
epoll: correct mapping [backport] ( #20058 )
...
* epoll: correct mapping
`epoll_data` is a union and `epoll_event` is packed on `amd64`
* names
(cherry picked from commit f2e4407306 )
2022-07-25 11:40:59 +02:00
Jacek Sieka
8a98177025
fix pthread_mutex_t size ( #20055 )
...
(cherry picked from commit c6264ed847 )
2022-07-18 07:58:15 +02:00
Mildred Ki'Lya
0e7138417c
Correct emscripten shortcoming ( #19987 )
...
emscripten reports infinity for every getrlimit() requests, which does
not work when requesting the max number of file descriptors (prlimit64
syscall). This patch provides a default of 1024 which is common on Linux.
This is used in particular in ioselectors_poll.nim and te invalid value
makes it crash.
2022-07-16 17:35:02 -04:00
flywind
e9d5a9d395
[Orc] fixes "streams.readDataStr segafaults" when accepting a string literal ( #20019 ) [backport]
...
fixes streams.readDataStr accept a string literal
(cherry picked from commit 286fcef68e )
2022-07-15 09:43:48 +02:00
Jacek Sieka
b1f325d641
sysrand: fix syscall signature [backport] ( #19982 )
...
sysrand: fix syscall signature
`syscall` is a `C` varags function
(cherry picked from commit ad0aee5354 )
2022-07-07 17:24:45 +02:00
Tanguy
1561a83c49
Fix nimRawSetjmp for VCC [backport: 1.2] ( #19899 )
...
(cherry picked from commit 40464fa762 )
2022-06-20 08:34:58 +02:00
Tanguy
a1f413bcac
Windows: enable nimRawSetjmp by default [backport] ( #19891 )
...
* Windows: enable nimRawSetjmp by default
See #19197 . The default setjmp can randomly segfault on windows
* Attempt to disable the flag for bootstraping
* Disable styleCheck for c_setjmp
(cherry picked from commit 251bdc1d5a )
2022-06-20 08:34:18 +02:00
Jake Leahy
efe5a33988
Pass headers and body correctly to FetchOptions ( #19884 ) [backport]
...
* Pass headers to FetchOptions
Don't pass body if method is HttpGet or HttpHead
* Syntax fixes
* Restart CI
(cherry picked from commit 8fa2c0b532 )
2022-06-20 08:32:21 +02:00
flywind
06f1828ee2
fix #19862 ; make widestrs consistent between refc and orc ( #19874 ) [backport]
...
fix #19862 ; make widestrs consistent in refc and orc
(cherry picked from commit 1972005439 )
2022-06-09 17:15:34 +02:00
Jacek Sieka
b0cbc9a74c
std/tasks: fix spelling ( #19691 ) [backport]
...
why aren't these not being caught by style check options?
--styleCheck:usages finds it.
Co-authored-by: flywind <xzsflywind@gmail.com >
(cherry picked from commit cb6ce80cb8 )
2022-05-25 08:08:10 +02:00
Anthony Dario
28af1e5e45
Fix typo in sequtils documentation ( #19789 )
...
Found another small typo.
(cherry picked from commit 19001c070b )
2022-05-24 15:27:28 +02:00
flywind
0b44840299
enable style:usages for stdlib tests [backport: 1.6] ( #19715 )
...
* enable style:usages for stdlib tests
* freeAddrInfo
* more tests
* importc
* bufSize
* fix more
* => parseSql and renderSql
(cherry picked from commit 98cebad7de )
2022-05-22 18:20:25 +02:00
Christoph Krybus
02d94966c9
Fix punycode.decode function ( #19136 )
...
* Refactor: rename proc to func
* Fix punycode.decode function
This function could only properly decode punycodes containing a single
encoded unicode character. As soon as there was more than one punycode
character group to decode it produced invalid output - the number of
characters was correct, but their position was not.
* Update tpunycode.nim
Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com >
(cherry picked from commit ade85ee91f )
2022-05-19 13:47:19 +02:00
narimiran
7d120b83d1
bump NimVersion to 1.6.7
2022-05-19 13:46:44 +02:00
narimiran
0565a70eab
bump NimVersion to 1.6.6
2022-05-04 18:15:31 +02:00
narimiran
608457defc
use unsafeAddr
2022-05-03 09:41:45 +02:00
flywind
1788b8b991
fixes #18612 ; apply cache and memcmp for methods in arc/orc ( #19749 )
...
* try using endsWith
* use memcmp
* add cache
* cleanup
* better
* minor
* fix
* improve test coverage for methods with ARC
(cherry picked from commit 8bfc396a4d )
2022-05-02 16:22:47 +02:00
Danil Yarantsev
b1045cb693
Really fix StringStream with ARC at compile-time, improve streams test ( #19739 )
...
* Fix compile-time StringStream with ARC
* make readDataStr work with ARC, improve test
(cherry picked from commit 2f32b450d3 )
2022-04-25 14:58:54 +02:00
Jason Beetham
151b4cc514
Fix string stream crashing when created on nimscript due to last fix ( #19717 )
...
(cherry picked from commit dc4cc2dca5 )
2022-04-25 14:57:58 +02:00
huantian
88573da12d
Fix doc: list of async backends ( #19741 )
...
(cherry picked from commit 02e8aa9660 )
2022-04-24 17:21:56 +02:00
Jason Beetham
fcd05bd031
StringStreams no longer errors when intialized with literals on arc/orc ( #19708 )
...
(cherry picked from commit 26acc97864 )
2022-04-12 09:50:22 +02:00
flywind
d38177b11f
stylecheck usages part two: stdlib cleanup ( #19338 )
...
* stylecheck usages part two: stdlib cleanup
typeinfo.nim: importCompilerProc => importcompilerproc
nre.nim: newLineFlags => newlineFlags
system.nim: JSRoot => JsRoot
ref #19319
* prefer importCompilerProc
(cherry picked from commit ae92eac060 )
2022-04-08 12:07:58 +02:00