summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* fix stringify unsigned integer in JS and JS VM (#17086)flywind2021-02-181-18/+29
| | | | | * fix js unsigned integer * better
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-172-2/+2
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* 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-179-65/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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
|
* better getTempDir (#16914)flywind2021-02-151-2/+2
| | | | | | | | | | | * better getTempDir * fix comments * better * address comments * use uint32
* [backport:1.4] JS cstring null fixes (#16979)hlaaftana2021-02-111-1/+1
| | | | | * [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner
* Improve documentation for assertions (#16988)konsumlamm2021-02-111-35/+51
| | | | | | | | | | | * Improve documentation for assertions * Apply suggestions Fix tests/assert/tassert_c.nim * Use runnableExamples * Move runnableExamples to module scope
* fix some warnings (#16952)flywind2021-02-082-16/+16
|
* use typeof instead type (#16962)flywind2021-02-082-3/+3
|
* Fix link to switchClyybber2021-02-041-1/+1
|
* Allow strings for -- in config.nims (#16934)Clyybber2021-02-041-5/+18
|
* add widestrs.newWideCString overload (#16860)flywind2021-02-011-0/+3
|
* fix floats slice (#16853)flywind2021-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
* remove unused warning (#16809)flywind2021-01-241-2/+2
|
* addQuitProc => addExitProc (#16765)Timothee Cour2021-01-221-1/+2
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-152-21/+21
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* followup for #16717: minimized example + improved comment (#16721)Timothee Cour2021-01-151-1/+3
|
* fix #16706 (#16717) [backport:1.4]flywind2021-01-141-1/+3
|
* 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
|
* 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>
* fix #16502 (#16512)flywind2020-12-301-1/+1
|
* fix printing negative zero in JS backend (#16505)flywind2020-12-291-1/+3
|
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-47/+60
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix nim js cmp fails at CT (#16473)flywind2020-12-271-1/+6
|
* 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
* styleCheck: Fix some inconsistent identifiers (#16177)ee72020-12-214-14/+14
|
* Make 'echo' raise IOErrors when appropriate (#16367)Matt Haggard2020-12-181-8/+16
| | | | | | | | | | | | | | | * Make 'echo' raise IOError when fwrite/fflush fail * Fix fwrite return value comparison * Add test for echo raising error and don't fail to release locks in echo * Fix exitcode expectation * Make 'echo' raise IOError on Windows if it fails * Add nimLegacyEchoNoRaise for prior no-IOError echo behavior * Use checkErrMaybe template
* fixes #16365 [backport] (#16381)Andreas Rumpf2020-12-171-6/+7
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-142-13/+13
| | | | | * Fix broken links in docs * Fix rand HSlice links
* Fix #14259 #15621 (#16322) [backport:1.4]rockcavera2020-12-121-4/+11
| | | | | | | | | | | | | | | | | * IPv6 text representation according to RFC 5952 * Revert IPv6 text representation according to RFC 5952 * fix #14259 #15621 fix #14259 #15621 * Update lib/system/io.nim * reverted IoHandle removal * adaptation of types for WinAPI Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix partially #13115 (now works for cpp; but still fails for js on openbsd) ↵Timothee Cour2020-12-111-10/+22
| | | | | | (#16167) * fix partially #13115 properly (works for c,js,cpp,vm; still fails for js on openbsd) * address comment: also test with -d:danger, -d:debug
* clean up old codes (#16284)flywind2020-12-091-144/+101
| | | | | | | * clean up old codes * fix docs and links * clean
* [docs minor] remove unicode in docs comments (#16267)flywind2020-12-061-2/+2
|
* ORC: make the adaptive strategy the default in order to fight memory ↵Andreas Rumpf2020-12-051-6/+13
| | | | | | | consumption (#16250) * ORC: make the adaptive strategy the default in order to fight memory consumption * added missing test case
* fixes #16214 [backport] (#16252)Andreas Rumpf2020-12-042-8/+8
|
* cleanup docs and tests (#16235)flywind2020-12-031-1/+1
| | | | | * js module also uses runnableExamples * cleanup docs and tests
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-031-1/+3
|
* better setops docs (#16236)flywind2020-12-031-70/+62
| | | | | | | | | | | | | | | | | * js module also uses runnableExamples * better setops docs * Update lib/system/setops.nim * better * Update lib/system/setops.nim * Update lib/system/setops.nim * better * better
* Fix typo and improve grammar for clamps noteClyybber2020-12-021-1/+1
|
* small style changes and clarify clamp (#16228)flywind2020-12-021-6/+8
| | | | | | | | | | | | | | | * [docs minor]better comparisons docs * switch from PRNG to random module * apply suggestions * not compile * Revert "switch from PRNG to random module" This reverts commit 83b4d8946d7d677edac43b7675c41e230ba4e382. * small style changes and clarify clamp
* [docs minor] better comparisons docs (#16201)flywind2020-12-021-90/+89
|
* ORC: API extensions (#16126)Andreas Rumpf2020-12-011-14/+45
| | | | | * ORC: API extensions * ORC: exploit a common special case
* better addInt (#16160)flywind2020-12-011-15/+81
| | | | | | * better addint * Update lib/system/strmantle.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix #13115 (#15930)flywind2020-11-272-10/+20
| | | | | * fix #13115 * fix testament
* add simple writeStackTrace for JS backend (#16016)flywind2020-11-241-0/+5
| | | | | | | * add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-192-2/+4
|
* ORC: prepare for another patent-pending optimization (#15996)Andreas Rumpf2020-11-183-25/+51
| | | | | | | | | | | | | | | | | * ORC: prepare for another patent-pending optimization * bugfix * '=copy' for refs can take a cyclic parameter for more ORC optimizations * ORC: exploit the common 'it = it.next' pattern * can't hurt to check for nil * use an algorithm that is not obviously broken * restore the test case * final cleanups for --gc:orc
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-9/+10
| | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>