summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* macros.quote: document hard to use `op`; add more useful examples (#16489)Timothee Cour2021-01-061-23/+71
| | | | | | | | | | | | | | | | | * macros.quote: document hard to use `op`; add more useful examples * add back doc comment removed in a60305fbf3897cd90680e693dd4c0db2334d85d4 * address comment * fixup * clarify quoting rules * Update lib/core/macros.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* jsonutils: fromJson forward opt param fix (#16612)inv20042021-01-061-4/+4
|
* Link the <fenv.h> header (#16597)konsumlamm2021-01-051-2/+4
|
* make cstrutils work in VM (#16590)flywind2021-01-053-102/+122
| | | | | * make cstrutils work in VM * more
* Improve documentation for complex (#16588)konsumlamm2021-01-051-101/+159
| | | | | | | | | | | | | * Improve documentation for complex Add missing doc comments * Add runnableExample Add links for principal values Optimize `-` Change var to let * Use std prefix for imports
* fix #9125 (#16582)flywind2021-01-051-1/+11
| | | | | | | | | | | | * fix #9125 * Update tests/stdlib/tmath.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * back Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* remove duplication in asynchttpserver examples (#16586)Timothee Cour2021-01-051-48/+28
| | | | | | | * remove duplication in asynchttpserver examples * fixup * add comment showing how to run snippet locally
* fix #16506 by changing the example (#16580)Miran2021-01-041-2/+2
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* clean up the docs of some modules under lib/js (#16579)flywind2021-01-047-55/+55
|
* make --gc:arc --exceptions:quirky work again [backport:1.4] (#16583)Andreas Rumpf2021-01-042-10/+20
| | | | | * make --gc:arc --exceptions:quirky work again [backport:1.4] * fixes #16404 [backport:1.4]
* 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>