summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix #16499 (#16514)flywind2021-01-041-10/+14
|
* Add backwards index overload for `[]` for JsonNode (#16501)Neelesh Chandola2021-01-041-0/+13
| | | | | | | | | | | * Add backwards index overload for `[]` for JsonNode * Add since Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add docs, example, and changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Add posix_utils.osReleaseFile (#16452)Juan Carlos2021-01-041-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add posix_utils.osReleaseFile * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * https://github.com/nim-lang/Nim/pull/16452#issuecomment-753364096 * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update changelog.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve sequtils documentation (#16559)konsumlamm2021-01-041-78/+79
| | | | | | | * Improve sequtils documentation Uncomment assertions in tests * Use present tense
* fix #12311 (#16578)flywind2021-01-041-4/+7
|
* Improve documentation for critbits (#16568)konsumlamm2021-01-031-135/+107
|
* fix #12958 (#16565)Roman Inflianskas2021-01-031-18/+29
| | | | | | | | | | Sync between Linux kernel code (header: https://github.com/torvalds/linux/blob/master/tools/include/uapi/linux/sched.h) and the linux module in lib. `CLONE_STOPPED` was marked as deprecated, as it was removed in the Linux kernel upstream. Fixes #12958.
* fix #8412 (#16563)flywind2021-01-031-6/+12
| | | | | | | | | | | | | | | | | * Revert "Make config processing order test more robust" This reverts commit cf714c129f7dd598863d1cc588e685df2438c658. * enable tmath tests * fix #8412 * Revert "enable tmath tests" This reverts commit 293b63f57ef71e6c43b9faf24883c998c40a9484. * add tests * fix
* Fix #16554 (#16564)hlaaftana2021-01-031-2/+3
|
* Algorithm improvements (#16529)konsumlamm2021-01-021-134/+142
| | | | | | | | | | | | * Improve documentation for algorithm Remove unused import in algorithm tests Improve formatting * Reapply fix for reverse on empty openArray * Use 3rd person singular Add more explanations.
* fix #16061 (#16551)flywind2021-01-021-4/+10
|
* fix #16542 (#16549)flywind2021-01-021-2/+21
| | | * fix #16542
* Add mimetypes.mimesLongest (#16480)Juan Carlos2021-01-021-1/+28
| | | | | | | | | | | | | | | | | | | * Allow single alloc mimetypes ops * Allow single alloc mimetypes ops * Update lib/pure/mimetypes.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-753349661 * update changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* big steps torwards an efficient, simple IC implementation (#16543)Andreas Rumpf2021-01-021-2/+2
| | | | | | | | | | | | | | | | | | | * reworked ID handling * the packed AST now has its own ID mechanism * basic serialization code works * extract rodfiles to its own module * rodfiles: store and compare configs * rodfiles: store dependencies * store config at the end * precise dependency tracking * dependency tracking for rodfiles * completed loading of PSym, PType, etc * removed dead code * bugfix: do not realloc seqs when taking addr into an element * make IC opt-in for now * makes tcompilerapi green again * final cleanups Co-authored-by: Andy Davidoff <github@andy.disruptek.com>
* Documentation only Testament unittest (#16532)Juan Carlos2021-01-011-9/+13
| | | | | | | | | * Link Testament from unittest doc * Update lib/pure/unittest.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* reuse const (#16422)n5m2021-01-011-1/+1
|
* follow up #16399 clean up docs (#16539)flywind2021-01-011-30/+41
| | | | | * follow up #16399 clean up docs * more
* link to POSIX sendSignal from osproc.kill docs (#16475)n5m2021-01-011-0/+2
| | | and from osproc.terminate docs
* fix #16494 (#16513)flywind2021-01-011-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #16494 * fix * fix * fix * fix * fix * fix performance * add comments * improve performance * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* refactor cmpIgnoreStyle and cmpIgnoreCase (#16399)flywind2020-12-315-109/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * init * support strutils * more * better * Call len once per string/cstring * Change var to let * Compare ternary on first char * More appropriate param name * fix * better * one test * impl * more efficient * minor Co-authored-by: Clyybber <darkmine956@gmail.com>
* RST: improve line blocks (#16518)Andrey Makarov2020-12-313-12/+33
|
* adding missing commas in std/bitops (#16520)rockcavera2020-12-301-5/+5
| | | adding missing commas between the importc and header pragmas of some procs.
* make the docs of arithmetics better (#16510)flywind2020-12-301-126/+107
| | | | | | | | | | | | | | | | | * fix * Update lib/system/arithmetics.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use runnableExamples in options (#16503)flywind2020-12-301-26/+17
|
* Add assertions for jsconsole (#16460)Juan Carlos2020-12-301-1/+33
|
* Add math.copySign (#16406)flywind2020-12-301-0/+38
| | | | | * add math.copySign * fix + tests
* fix #16502 (#16512)flywind2020-12-301-1/+1
|
* move asciitables to std/private/ (#16498)flywind2020-12-291-0/+83
| | | | | * move asciitables * minor
* fix printing negative zero in JS backend (#16505)flywind2020-12-291-1/+3
|
* Added cmpMem export (#16484)Antonis Geralis2020-12-292-47/+62
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* RST: fix directive with fields (#16490) (#16493)Andrey Makarov2020-12-291-1/+2
| | | | | | | * RST: fix directive with fields (#16490) * Update tests/stdlib/trstgen.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* follow #15860 clean cgi module (#16487)flywind2020-12-271-50/+47
| | | | | * follow #15860 clean cgi module * follow #15860 clean cgi module
* Save some alloc on base64 using encodeSize (#16465)Juan Carlos2020-12-271-0/+1
|
* follow #15357 and move decodeQuery (#15860)flywind2020-12-272-34/+59
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* RST: implement admonitions (#16438)Andrey Makarov2020-12-273-54/+147
|
* fix nim js cmp fails at CT (#16473)flywind2020-12-272-9/+8
|
* Avoid creating a holey array in makeNimstrLit for JS target (#16461)Jonah Snider2020-12-271-3/+2
| | | | * Avoid creating a holey array in makeNimstrLit * Use array index instead of push
* fix #16474 `unittest.check type1 is type2` gives CT error (#16476)flywind2020-12-271-1/+2
| | | | * fix #16474 * more tests
* Add missing HTTP codes (#16454)Juan Carlos2020-12-231-3/+54
|
* add `euclDiv` and `euclMod` to `math` (#16414)flywind2020-12-231-0/+26
| | | | | | | | * add `euclDiv` and `euclMod` to `math` * use abs * Update lib/pure/math.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* strip minor improvement (#16444)flywind2020-12-231-1/+1
| | | | | | | * strip minor improvement * add more tests * Update tests/stdlib/tstrutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add sequtils to prelude (#16431)shadowninja552020-12-231-2/+2
| | | | | | | | | * add sequtils to prelude i would argue that sequtils is used just as often as the other imports in prelude, and it'd be nice for it to be included. * updated doc comment to add sequtils * added sequtils import to changelog
* mark abs as inline (#16432)flywind2020-12-221-5/+5
|
* [backport => 1.0] fix #16428 vmops now works for generic procs (#16429)Timothee Cour2020-12-221-0/+2
| | | | | * fix #16428 vmops now works for generic procs * remove duplication
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-2120-64/+64
|
* docs minor for math (#16407)flywind2020-12-201-2/+2
|
* O(1) concatenation of singly- and doubly linked lists. (#16362)Peter Salvi2020-12-201-1/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * O(1) concatenation of singly- and doubly linked lists. There is also new `toSinglyLinkedList` and `toDoublyLinkedList` functions for conversion from `openArray`s, similarly to `toHashSet` or `toTable`. * Add `sequtils` import to runnable examples with `toSeq`. * Added missing call to runnable examples. * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * Improved tests for lists. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * More compact tests for lists with templates. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Added extended example to `lists.copy`. * Corrected .since annotations to 1.6 * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Since declarations changed to (1,5,1). * Add .since annotation, changelog, and tests. * Rename `lists.concat` as an overload to `lists.append`. * Renamed `append` to `add` in lists. * Remove faulty `add` for `DoublyLinkedList`s. * `lists.add` moves the second list; added `lists.copy` for shallow copy. * More tests for `lists.add` and `lists.copy`. * List concatenation with copying (`add`) and moving (tentatively `addMove`) * Renamed `addMove` to `addMoved`; renamed arguments according to the style guide. * Changelog update. * Fix rebasing errors. * Self-adding with `lists.addMove` results in a cycle now. Added some extra tests.
* RST enumlist followup (#16382)Andrey Makarov2020-12-191-7/+18
| | | | | * fix matching of enumerator #) * RST: markdown list with auto-enumerator `1`
* fix cmpIgnoreStyle bug (#16392)flywind2020-12-181-0/+1
|
* Fix osproc so that it doesn't close pipe/process/thread handles twice ↵Tomohiro2020-12-181-18/+40
| | | | | | | (#16385) [backport] * Add error check to closeHandle and fix closing handle twice in osproc * Fix compile error on Linux