summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) (#15250)Jaremy Creechley2020-08-3111-32/+589
| | | | | | | | | | | | | | | | | | | * Changes for FreeRTOS/LwIP Port for the ESP32 (ESP-IDF) Adding FreeRTOS/LwIP to compiler: * adding freertos option * dyncalls for freertos * add freertos to posix os list * adding lwip option Setting up networking FreeRTOS/LwIP Port: * setting up lwip network for freertos * fixing posix / networking for freertos * disable setInheritable for freerots * using lwip for net control items * Fix builds by ignoring lib/posix/posix_freertos_consts.nim similar to lib/posix/posix_other_consts.nim
* template hygiene (#15240)Andy Davidoff2020-08-291-10/+13
|
* Big compiler Cleanup (#14777)Clyybber2020-08-2853-783/+481
|
* fix #15035 (#15236)cooldome2020-08-282-2/+19
|
* Fix #5691 (#15158)Clyybber2020-08-2715-85/+180
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* fix some issues overloading with generics and inheritance (#15211)jcosborn2020-08-272-16/+65
| | | | | * fix some issues overloading with generics and inheritance * fix passing procs with subtype matches
* fixes #15221 (#15230)Andreas Rumpf2020-08-272-47/+45
|
* Raise KeyError if passed an invalid row entry (#15227)Scott Wadden2020-08-261-2/+7
|
* Remove unroll pragma from stdlib (#14706)Juan Carlos2020-08-261-4/+0
|
* fixes #15207 [backport:1.2]Araq2020-08-261-19/+14
|
* deleted dead code, writetracking.nim was replaced by varpartitions.nimAraq2020-08-261-275/+0
|
* remove deprecation from `math.round` (#15224)Miran2020-08-252-2/+8
|
* avoid #8231, bitwise move to mul,div (#15070)Bung2020-08-252-2/+13
| | | | | | | | | * avoid #8231, bitwise move to mul,div * add test for #8231 * fix bitwise move when div result is float * bitwise move depends on typ.size
* [backport] fix #15064, strscans.scanf edge case for '$+' (#15223)Miran2020-08-252-2/+16
|
* PRs with no activity in last year are marked as stalenarimiran2020-08-241-1/+1
|
* fix in doc: incomplete output (#15222) [ci skip]Jon2020-08-241-1/+1
|
* Use more `lent` in options (#15208)Mamy Ratsimbazafy2020-08-241-2/+2
|
* doc/nimdoc.css: align field names to the right (#15217)alaviss2020-08-231-0/+1
|
* Unsigned iovlen (#15216)wltsmrz2020-08-224-4/+4
|
* Added more SSL documentation to `net` module. (#15206)John Dupuy2020-08-221-3/+17
| | | | | | | | | | | | | | | | | | | | | | * Added more SSL documentation to `net` module. * Changed two of the net.nim doc refs to links. * Update lib/pure/net.nim doc wording. Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> * Update lib/pure/net.nim - added space to doc URI Co-authored-by: alaviss <leorize+oss@disroot.org> * Fixed another doc URI in net module. * For net module doc added warning to connect procedure. * Update net.nim Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com> Co-authored-by: alaviss <leorize+oss@disroot.org>
* Add test coverage for atomics (#15193)Elijah Shaw-Rutschman2020-08-182-7/+616
| | | | | | | | | | | | | | | * Add test coverage for atomics Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com> * Fix compareExchange bugs for non-trivial objects Bugs fixed: 1. compareExchange would not set the desired value in the success case. 2. compareExchange would not set var expected to the found value in the failure case. 3. withLock would spin forever running the unit tests. try..body..finally prevents this. Not sure why this makes a difference, since an exception wasn’t being raised, but clearing the guard in a finally block seems correct anyways. Signed-off-by: Elijah Shaw-Rutschman <elijahr@gmail.com>
* better strict funcs, WIP (#15199)Andreas Rumpf2020-08-185-14/+36
| | | | | * better strict funcs, WIP * progress
* fix overloading issue with generic invocation (#15135)jcosborn2020-08-182-14/+61
| | | | | * fix overloading issue with generic alias * add test for inheritance depth
* gc_regions: cleanup & fixes for deallocation (#11920)alaviss2020-08-172-5/+27
| | | | | | | | | * gc_regions: withRegion nows return the modified MemRegion * gc_regions: make withScratchRegion dealloc correctly * tests/gc: add tregionleak test This test checks if memory within regions are freed properly.
* fixes #15177, the error message is now what it should have been (#15195)Andreas Rumpf2020-08-172-4/+3
|
* add openssl missing procs (#15180)Bung2020-08-171-0/+5
|
* stale bot is now active only for pull requestsnarimiran2020-08-171-4/+4
|
* db_postgres document how to use it with unix socket (#15187)Juan Carlos2020-08-171-2/+22
|
* std/with support field assign (#14484)slangmgh2020-08-154-13/+60
| | | | | | | | | | | | | | | | | | | | | * std/with support filed assign * add changelog * add support x.dup.with * add example * revert support x.dup.with; add example * update changelog; fix assignment in parameter * Update changelog.md * add example for assignment in parameter * Remove colon style assign Co-authored-by: Clyybber <darkmine956@gmail.com>
* asyncnet: don't try to close the socket again [backport] (#15174)alaviss2020-08-121-17/+20
| | | | | The closed flag isn't a good design by any means, but let's have this working first before I get rid of the flag and potentially create a non-backportable commit.
* Fix typo on CoroutineRef* doc (#15179)Cléber Zavadniak2020-08-121-1/+1
| | | Just a small fix for a typo ("for for").
* Allow pragmas on parameters (#15178)Clyybber2020-08-112-2/+17
|
* Fix #8473 (#15169)Andreas Rumpf2020-08-1116-25/+67
|\ | | | | | | | | | | | | | | | | | | | | * Make explicit {.nimcall.} a seperate calling convention * Add testcase for #5688 * Fix bootstrapping * Remove little lies :) * Use typeflag instead
| * Use typeflag insteadClyybber2020-08-1011-18/+29
| |
| * Remove little lies :)Clyybber2020-08-081-5/+6
| |
| * Fix bootstrappingClyybber2020-08-081-3/+4
| |
| * Add testcase for #5688Clyybber2020-08-081-0/+17
| |
| * Make explicit {.nimcall.} a seperate calling conventionClyybber2020-08-0812-17/+29
| |
* | docs: dlimport -> dynlib (#15175)Silvio2020-08-111-1/+1
| |
* | Added array type definition to manual (#15173)Ico Doornekamp2020-08-101-0/+3
| | | | | | Co-authored-by: Ico Doornekamp <git@zevv.nl>
* | [FIX] strtabs interpolation in nimscript (#15172)haxscramper2020-08-092-1/+6
| | | | | | | | | | * [FIX] strtabs interpolation in nimscript * [TEST] Use `static` in strtabs test
* | fixes #15101 [backport] (#15171)Andreas Rumpf2020-08-081-3/+2
| |
* | Add `iterator inotify_events` which is *almost always* needed logic for (#15152)c-blake2020-08-081-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client code since Linux `inotify` is much like Linux `getdents64`. Expanding on "almost always"..The only time that this `iterator` logic is ***not*** needed on the output of a `read` from inotify fd's is when one passes a length to `read` *guaranteed* to only pass one event struct in the buffer. That unusual circumstance requires (at least!) knowing the length of the delivered filename before an event occurs, and the filename itself is optional for some event types. It is *far* more common to not know lengths in advance which means one passes a buffer big enough for at least one maximum length directory entry (256 bytes) which is then also big enough for *many* "typical" length entries and therefore many events. In such more common scenarios this iterator logic is definitely needed. Further, not using this logic, yet treating the return from read as "the whole answer" can test ok on "thin" event streams (e.g. 1 event per ms), hiding a latent bug of processing only the first event.
* | fix #15148 (#15149)flywind2020-08-082-4/+23
| | | | | | | | | | * fix #15148 Co-authored-by: alaviss <leorize+oss@disroot.org>
* | deques.nim: Refactor the `toDeque` functionality (#15166)ee72020-08-072-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit polishes the new proc introduced by d9ed816b10a6. Changes: - Rename to `toDeque` for more consistency with well-known procs like `toHashSet` and `toTable`. - Rename the `openArray` parameter. The name `arr` was potentially less clear given that the proc can be used with a seq (or string). - Add a `since` annotation. - Reword the doc comment, and clarify that ordering is preserved. - Add runnableExamples. - Add "see also" cross linking between `initDeque` and `toDeque`. - Remove duplicate `nextPowerOfTwo`. The `initImpl` template already includes it. - Implement the proc using the `items` iterator, rather than indexing. This matches the implementation of `sets.toHashSet` and `tables.toTable`. - Add a test within `when isMainModule`. - Add a changelog entry.
* | fix sqlgetdata regression in odbc (#15161)cooldome2020-08-072-16/+12
| | | | | | | | | | | | | | | | | | * fix sqlgetdata import * fix db_odbc * more fixes * fix style
* | Added the ability to initialize a deque with an openArray (#15138)archnim2020-08-051-0/+6
|/ | | | | | | | | | | | * Add ability to initialize a deque with a sequence Example: var dq = initDeque[char](@['a', 'b', 'c']) * Update deques.nim * Optimized deque initialization * Sequence replaced by open array in deque initialization
* implement (#15153)cooldome2020-08-041-1/+1
|
* limit stalebot a bit morenarimiran2020-08-041-1/+5
|
* fixes a collect() bug reported on the forum (#15156) [backport:1.2]Andreas Rumpf2020-08-043-2/+12
|