summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-223-6/+10
| | | | | | | | | | * add simpler to use readChars overload * use new readChars overload * Update lib/wrappers/openssl.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* Improve the ropes module (#17145)konsumlamm2021-02-221-63/+47
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-221-5/+12
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add example for pattern matching on options (#17120)konsumlamm2021-02-221-21/+49
| | | | | | | | | | | * Add example for pattern matching on options * Use code-block * Apply suggestions * Use block comments * Fix example
* fix prelude regression refs #16238: `include prelude` doesn't interfere with ↵Timothee Cour2021-02-221-12/+16
| | | | | | | | | `nim doc` (#17111) * fix bug1 from #16238 nim doc now works with include prelude * fix for windows * fixup
* [JS + docs] improve std/monotimes module (#17103)flywind2021-02-221-42/+44
|
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-223-130/+152
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* remove outdated codes (#17140)flywind2021-02-222-2/+0
| | | | | * remove unnecessary when statement * remove outdated codes
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-221-15/+30
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* use single backtick (#17141)flywind2021-02-2111-68/+68
|
* remove unnecessary when statement (#17135)flywind2021-02-211-12/+7
|
* use single backtick (#17133)flywind2021-02-2110-103/+103
|
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-201-3/+6
| | | | | * move prelude so that `include std/prelude` also works * add test
* Improve the strformat module (#17106)konsumlamm2021-02-201-180/+159
| | | | | | | | | | | | | | | | | | | | | | * Improve the strformat module Improve documentation Use runnableExamples * Fix overflow error for low(int64) Add test * Use assert in runnableExamples * Improve tstrformat Put tests in proc & test VM Put tests in blocks Add c, js targets * Use doAssert in tests * Disable JS & VM tests
* enable bsd for tsetutils; improve setutils API (#17098)Timothee Cour2021-02-201-5/+8
|
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-202-7/+34
|
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-201-1/+31
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* use single backtick (#17115)flywind2021-02-2010-174/+174
|
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-192-3/+18
|
* add example of hashing an object by all of its fields with `fields` (#16643)dawidkotlin2021-02-191-0/+14
| | | | | | | | | | | | * add example of hashing an object by all of its fields with `fields` * Update lib/pure/hashes.nim * Update lib/pure/hashes.nim * Update lib/pure/hashes.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* use single backtick (#17100)flywind2021-02-1810-81/+81
|
* Add setutils.complement, setutils.fullSet (#17066)Jason Beetham2021-02-181-1/+24
|
* fix stringify unsigned integer in JS and JS VM (#17086)flywind2021-02-181-18/+29
| | | | | * fix js unsigned integer * better
* Improve documentation for options (#17036)konsumlamm2021-02-181-130/+104
|
* fixes #16585 (#17074)Andreas Rumpf2021-02-181-2/+17
|
* [nodejs backend] paramStr, paramCount (#17082)flywind2021-02-181-9/+33
|
* fix #17078 csources generation (#17079)Timothee Cour2021-02-182-6/+4
| | | | | * fix #17078 csources generation * fixup
* system: more runnableExamples + doc improvements (#17075)Timothee Cour2021-02-171-39/+48
|
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-1711-13/+19
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* fix math.frexp function signature (#16725)flywind2021-02-171-36/+52
|
* clean up old codes (#17071)flywind2021-02-172-5/+2
|
* fix the unused warnings on windows (#17073)flywind2021-02-171-8/+13
|
* make system random work in VM (#17059)flywind2021-02-171-4/+5
| | | | * make system random work in VM
* fixes #17033 [backport:1.4] (#17061)Andreas Rumpf2021-02-171-4/+2
| | | | | | | * fixes #17033 [backport:1.4] * make test robust against stdlib gensym things * cleanup assertions.nim to make topt_no_cursor easier to get right
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-1720-723/+559
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] (#17062)Andreas Rumpf2021-02-171-1/+1
|
* document `since` (#17048)Timothee Cour2021-02-161-1/+15
| | | | * document `since` * address comment
* [Minor] improve the docs of getTempDir (#17058)flywind2021-02-161-3/+5
| | | | | | | | | * [Minor] improve the docs of getTempDir * more clear * Update lib/pure/os.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* postgres module fixes (followup #17030) (#17053)Artem Klevtsov2021-02-161-2/+4
| | | | | | | * Fix pqSetSingleRowMode case. Add links to the docs * Add missing PGContextVisibility enum * Remove unused PGContextVisibility enum
* Improve documentation for bitops (#16961)konsumlamm2021-02-151-128/+131
| | | | | | | | | | * Improve documentation for bitops Use func Use let in runnableExamples * Remove unnecessary tests Fix #7587
* better getTempDir (#16914)flywind2021-02-152-16/+49
| | | | | | | | | | | * better getTempDir * fix comments * better * address comments * use uint32
* Better error message for rand(153 .. 102) (#17031)Dominik Picheta2021-02-151-1/+1
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* avoid doAssert on contents of osReleaseFile (#16955)n5m2021-02-151-1/+1
|
* RST: implement footnotes and citations (#16960)Andrey Makarov2021-02-153-35/+417
| | | | | | | | | * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve the heapqueue module (#17034)konsumlamm2021-02-151-55/+82
| | | | | | Improve documentation Optimize toHeapQueue Rename siftup and siftdown Add tests for the heap property
* Fix bug in removeDotSegments when path ends with dot (#17038) [backport:1.2]Benoit Favre2021-02-151-1/+1
|
* array literals uses typed arrays; fix a jsgen bug (#16850)flywind2021-02-151-0/+8
| | | | | | | * array litterals uses typed arrays * Update compiler/jsgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix the wrong examples (#17035)flywind2021-02-151-19/+42
|
* Small update for packedsets (#17037)konsumlamm2021-02-151-12/+11
| | | | Rename PTrunk to Trunk Use ord instead of cast[int]
* Add pqsetsinglerowmode to postgres module (#17030)Artem Klevtsov2021-02-141-2/+6
| | | | | | | | | | | | * Add pqsetsinglerowmode to postgres module Very useful to reduce memory usage when fetch a large amount of data. Documentation: https://www.postgresql.org/docs/current/libpq-single-row-mode.html * Add missing enum to the ExecStatusType * Revert entry * Update ConnStatusType enum