Commit Graph

4204 Commits

Author SHA1 Message Date
Jjp137
78f4b72d9b random: minor documentation updates (#11831)
Add docs for the sample procs that take in sets, and clean up a
few other minor things.

(cherry picked from commit a906b3952b)
2019-08-12 12:11:25 +02:00
Dominik Picheta
58772dce2e Fixes subtle SSL recvInto bug.
This resulted in a "value out of range: -1" exception inside `recvInto`
(on the `copyMem` line). Basically readIntoBuf was returning `-1`.

(cherry picked from commit bb949a75db)
2019-08-12 11:10:26 +02:00
Giovanni Petrantoni
6fdfdf48de Use proper types according to MSDN and fix clang build of windows dynlib (#11828)
(cherry picked from commit 2fdba334da)
2019-08-12 11:02:43 +02:00
Miran
1ee78916db fix #11772, JS random seed was too large (#11820)
(cherry picked from commit 3bb6d1916e)
2019-08-12 10:52:05 +02:00
genotrance
8deb9cf14c Fix #10630 - fix broken separators in nim doc (#11814)
(cherry picked from commit 44aadd50cf)
2019-08-12 10:52:05 +02:00
narimiran
a952f4f35d fix asyncftpclient examples [ci skip]
(cherry picked from commit 5484352d26)
2019-08-12 10:52:05 +02:00
Araq
9e634919d9 style improvements; fixes #11774
(cherry picked from commit 5a020d641d)
2019-08-12 10:22:31 +02:00
Andreas Rumpf
becb55cf8d async macro: general stability improvements [bugfix] (#11787)
(cherry picked from commit 70e8551e37)
2019-08-12 10:13:35 +02:00
Araq
ddc02649a6 [refactoring] remove unused imports in the compiler and in some stdlib modules
(cherry picked from commit 07d465ca42)
2019-07-19 16:46:51 +02:00
Kaushal Modi
469e3a5f59 [bugfix] Make std/unicode compile with --styleCheck:error (#11763)
(cherry picked from commit d40872bf9b)
2019-07-19 16:46:08 +02:00
Kaushal Modi
d8d0aad906 [bugfix] Make std/unittest compile with --styleCheck:error (#11762)
(cherry picked from commit 404b224945)
2019-07-19 16:46:08 +02:00
Kaushal Modi
5a12553394 [bugfix] critbits styleCheck fix: consistent var naming (#11752)
(cherry picked from commit 44d80dd863)
2019-07-16 21:21:59 +02:00
Kaushal Modi
6bd301ca9c styleCheck fix: type naming: s/outType/OutType/ (#11749)
(cherry picked from commit 0b511b15ea)
2019-07-16 21:21:59 +02:00
Araq
8be734bf46 fixes #11723
(cherry picked from commit 76f9ddb6ab)
2019-07-16 21:21:47 +02:00
Araq
d6d5dd30e9 styleCheck fixes [bugfix]
(cherry picked from commit 52cbd0c558)
2019-07-15 16:18:17 +02:00
Araq
073651237a newruntime: progress to make 'async' work with --newruntime
(cherry picked from commit edbe02b4e1)
2019-07-15 16:18:17 +02:00
alaviss
c4cbc5f449 os: confine osErrorMsg example to Linux (#11725)
POSIX does **not** define the exact number for each errors. This caused
a failure in docs building on Haiku.

(cherry picked from commit a59fb5b352)
2019-07-15 16:18:17 +02:00
Jacek Sieka
d5d661b70e times: use posix constant instead of import (#11692)
* times: use posix constant instead of import

* simplify clock id usage

(cherry picked from commit cf36e4a44a)
2019-07-15 16:18:17 +02:00
Dominik Picheta
93b58ebe1b Give NilAccessError a message (#11706)
(cherry picked from commit b8be1ccb85)
2019-07-15 08:03:16 +02:00
Andreas Rumpf
f7b061f597 make async tests green again
(cherry picked from commit ac458448d8)
2019-07-15 08:03:16 +02:00
Araq
641d1e1175 minor style changes
(cherry picked from commit 38bdf1cd7f)
2019-07-15 08:03:16 +02:00
Araq
6ffe82a5aa there is only one style -- my style
(cherry picked from commit 87a2ced1ba)
2019-07-15 08:02:24 +02:00
Araq
3866e3302a make more parts of the stdlib compile with --styleCheck:error
(cherry picked from commit bc7733827d)
2019-07-15 07:59:14 +02:00
Araq
694d57c899 styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
(cherry picked from commit c94647aeca)
2019-07-15 07:58:45 +02:00
Miran
c4e26f7400 [other] prettify collections (#11695)
(cherry picked from commit 2255d8795b)
2019-07-15 07:58:27 +02:00
Araq
ab98141c75 newruntime: async progress
(cherry picked from commit 55e8aefbea)
2019-07-15 07:58:27 +02:00
Araq
12baecb42d async: more 'owned' annotations
(cherry picked from commit 7993d61d00)
2019-07-15 07:58:26 +02:00
Araq
a144bc96b9 asyncmacro produces 'owned' types
(cherry picked from commit 2c2f2de614)
2019-07-15 07:58:26 +02:00
Jacek Sieka
0646d6a720 dynlib: use posix module (#11623)
(cherry picked from commit 9e7d885f35)
2019-07-08 11:33:20 +02:00
Andreas Rumpf
5ecfbb5a4a ABI fixes for OSX/BSD; fixes #6860 (#11666)
(cherry picked from commit 02b9af2f75)
2019-07-08 11:28:42 +02:00
Andreas Rumpf
3e8c4519d4 newruntime for async (#11650)
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again

(cherry picked from commit 5f515410af)
2019-07-08 11:28:41 +02:00
Graeme Cross
a9322ed873 Fix the broken link in math.nim (#11653) [ci skip]
(cherry picked from commit dad3c40f55)
2019-07-08 11:27:15 +02:00
Timothee Cour
6a23772e23 fixes #8405: -d:useNimRtl now works even when {.rtl.} procs are used at compile time; CTFFI now works with {dynlib} (#11635)
(cherry picked from commit 64168d4aea)
2019-07-08 11:27:15 +02:00
Graeme Cross
bd35d44808 Documentation improvements to the times module (#11639)
* Typo and grammar fixes for the times module
* Minor typo fixes to the times module

(cherry picked from commit ab6dec6e90)
2019-07-08 11:26:20 +02:00
Araq
970c7616bc nimpretty: bugfix [bugfix]
(cherry picked from commit 284a8cb58a)
2019-07-02 13:55:37 +02:00
Zestyr
62691c5d73 Fix typo in xmltree docs [ci skip]
(cherry picked from commit bab83c4d8b)
2019-07-02 13:54:42 +02:00
narimiran
28708e0b8e [bugfix] fix #11588, don't check if SharedTable is initialized
(cherry picked from commit 326e3ad09d)
2019-06-27 20:59:46 +02:00
Jasper Jenkins
8396ddb3a4 [bugfix] remove dangling ref (#11576)
(cherry picked from commit 91f0626dcb)
2019-06-27 20:59:45 +02:00
Gérôme Fournier
8ab0be4530 Fix out of bound access in cgi module (#11578)
When an HTTP request with a zero CONTENT_LENGTH is made,
attempting to access addr(result[0]) raise an exception as the 0 index
is out of bound

(cherry picked from commit 181350f6c9)
2019-06-27 20:59:45 +02:00
WhiteDuke
30d7cf02ad Fix typo (#11573)
(cherry picked from commit 2a7cf71db3)
2019-06-27 20:59:45 +02:00
narimiran
a74104eda5 [documentation] fix #4630, document unsupported functions for JS
(cherry picked from commit 436f570651)
2019-06-27 18:16:54 +02:00
Miran
ceafb7f771 [bugfix] fix OrderedTable iterators (#11562)
(cherry picked from commit 3d50f7e2a1)
2019-06-27 18:14:36 +02:00
Miran
10407fefec [bugfix] fix delete in strutils and sequtils (#11535)
(cherry picked from commit 23e95dc629)
2019-06-27 18:14:35 +02:00
Miran
c6ab69b84e [bugfix] fix OrderedTable default initialization (#11549)
(cherry picked from commit 45bbf1ef5b)
2019-06-27 18:13:55 +02:00
narimiran
22c515b067 [other] documentation: deprecation comments are now auto-generated
(cherry picked from commit cf47c2c60c)
2019-06-20 11:54:46 +02:00
Phạm Ngọc Quang Nam
368e12ed36 [bugfix] Fix smtp.nim unhandled exception (#11498)
(cherry picked from commit 7c637c2faf)
2019-06-20 11:53:08 +02:00
Benjamin Summerton
c1097ea949 Add cbrt() bindings for the JS Target (#11528)
`Math.cbrt()` exists:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/cbrt

The binding was missing for the JavaScript backend.

(cherry picked from commit a009cbdc2f)
2019-06-20 11:52:37 +02:00
Miran
4144893ba2 [bugfix] fix #11450, random.initRand crashes in JS backend (#11522)
(cherry picked from commit ac3449b93b)
2019-06-20 11:49:17 +02:00
Charles Blake
464142683f [bugfix] fix #11430, strutils rfind (#11487) 2019-06-16 17:44:06 +02:00
Dominik Picheta
4f69f7b62d [bugfix] Fixes async IO operations stalling even after socket is closed. (#11232)
(cherry picked from commit 73c44c6e9b)
2019-06-16 17:18:58 +02:00