summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* followup #17225: simplify code after removing gc2, generational (#17242)Timothee Cour2021-03-033-4/+5
|
* Use readable escape sequences (#17241)Clyybber2021-03-031-1/+1
|
* rename prepareStrMutation to prepareMutation (#17235)flywind2021-03-031-2/+2
| | | | | | | * remove unnecessary when statement * remove outdated codes * rename prepareStrMutation to prepareMutation
* add runnableExamples for prepareStrMutation (#17227)flywind2021-03-021-1/+1
| | | | | * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* fixes #17173 (#17213)Andreas Rumpf2021-03-011-0/+7
| | | | | | | | | | | | | | | | | | | | | | * fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* Replace double backticks with single backticks - Part 2 out of ~6 (#17206)Danil Yarantsev2021-02-285-48/+48
|
* Replace double backticks with single backticks - Part 1 out of ~6 (#17205)Danil Yarantsev2021-02-2810-75/+75
|
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-284-6/+6
|
* fix #17159 items(cstring) works in VM (#17160)Timothee Cour2021-02-241-14/+45
| | | | | | | | | * fix #17159 items(cstring) works in VM * improve test coverage tests/stdlib/tcstring.nim; add helpers: whenRuntimeJs, whenVMorJs * document items(cstring) * address comments
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-2/+7
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
* A few rst doc fixes (#17151)Danil Yarantsev2021-02-231-1/+1
| | | | | * Fix a couple of rst formatting issues * no need for the extra space
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-221-4/+8
| | | | | | | | | | * 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>
* use single backtick (#17133)flywind2021-02-212-2/+2
|
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-201-1/+1
|
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-192-3/+18
|
* 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
|