summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* readLine: Unicode support for Windows console (#14782)Andreas Rumpf2020-07-201-0/+62
|\ | | | | | | | | | | | | | | | | | | | | | | * readLine: Unicode support for Windows console When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8. * readLine: Remove recursive imports * readLine: Fix issues with --gc:arc **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Fix issues with --gc:arcktamp2020-06-261-6/+11
| | | | | | | | **--gc:arc** defines **nimv2**. This changes the definition of **WideCStringObj**. Also an empty string should be returned in case of EOF.
| * readLine: Remove recursive importsktamp2020-06-251-10/+31
| |
| * readLine: Unicode support for Windows consolektamp2020-06-231-0/+36
| | | | | | When input is read from the Windows console, input encoding is UTF16. This is translated internally to UTF8.
* | io: fix SetHandleInformation signature to match Windows' (#15017)alaviss2020-07-201-2/+7
| | | | | | | | | | | | | | * io: fix SetHandleInformation signature to match Windows' Fixes #14980 * rename Handle -> IoHandle because system.nim is a mess
* | fix #15006 (#15007)flywind2020-07-171-1/+1
| |
* | Fix #14994 (#14996)Clyybber2020-07-151-0/+1
| | | | | | | | | | | | | | * Fix #14994 * Revert misplaced "optimization" * Typo
* | repr_v2 improvements (#14992)Clyybber2020-07-151-10/+28
| | | | | | | | | | | | | | * Support proc in arc repr * Typo * Improve repr for strings and chars
* | optimize the new nimPrepareStrMutationV2 with inlining (#14969)Andreas Rumpf2020-07-121-6/+9
| |
* | Move `wasMoved` out of `=destroy`Clyybber2020-07-102-3/+1
| |
* | deprecate existsDir; use dirExists instead (#14884)Timothee Cour2020-07-031-7/+6
| |
* | {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-021-4/+5
| | | | | | | | | | | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* | Clean out Deprecated proc (#14797)Juan Carlos2020-06-291-8/+0
|/ | | | * Remove and/or clean out Deprecated 'add' proc for floats * Update a test
* fix #14750, don't allocate too much in newWideCString (#14773)Miran2020-06-231-3/+2
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-238-14/+20
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* Remove outdated comment and copy of length (#14759)Clyybber2020-06-221-13/+3
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-8/+0
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* fix #14179, fix #14142, make CI 1.4x faster (2x faster locally) (#14658)Timothee Cour2020-06-161-3/+8
| | | | | | | | | | | | | | | * fix #14142: no more clash with: import os + use of existsDir/dirExists/existsFile/fileExists/findExe in config.nims * remove a comment * Revert "fixes the regression #12860 caused; hotfix" This reverts commit 3d2459bdc0b6d6236a2cd9209ed81c965ee411a5. * Revert "Undefine `paramCount` & `paramStr` in nimscript.nim for *.nims (#12860)" This reverts commit d38853c504d89d6e361f064a17391afaf42d74b8. * noNimScript => noWeirdTarget + noNimJs
* fix #14655 setLen(seq) now zeros memory (#14656)Timothee Cour2020-06-141-14/+15
| | | | | * simplify sysstr.nim * fix #14655
* remove tyOpt, mOpt (#14636)Timothee Cour2020-06-121-1/+1
| | | | | * remove tyOpt, mOpt * fixup
* exceptions.nim: Fix a bad `Error` -> `Defect` renaming (#14621)ee72020-06-101-1/+1
| | | This commit fixes a mistake from 7d6cbf290a.
* io: correct signature for some win32 apis (#14551)alaviss2020-06-031-5/+5
| | | See https://github.com/nim-lang/Nim/pull/14550#issuecomment-637937649
* fix #14421 items uses lent T (#14447)Timothee Cour2020-05-291-3/+28
| | | | | * fix #14421 items uses lent T for seq + openArray * add -d:nimWorkaround14447 * fix test
* hotfix doc comments for procs without body (#14494)Timothee Cour2020-05-291-5/+0
|
* more checking for --gc:arc, no need for valgrind (#14467)Andreas Rumpf2020-05-298-69/+145
| | | | * sigmatch: removed dead code
* fix repr(char) example assert (#14437)hlaaftana2020-05-231-1/+1
|
* make malloc.nim consistent in style (#14427)Andreas Rumpf2020-05-221-9/+9
|
* ARC/ORC: optimize s.setLen(0) to match the old runtime's behaviour (#14423)Andreas Rumpf2020-05-211-2/+1
|
* Small improvements for string and char repr with gc:arc (#14400)Clyybber2020-05-201-6/+8
| | | | | * Small improvements for string and char repr with gc:arc * Fix test
* specialize genericReset (#14398)Andreas Rumpf2020-05-191-1/+1
| | | | | | | * progress * make tests green * maybe we also want to reset pointers, dunno * progress * cleanup; fixes #13879 [backport:1.2]
* trunner was not actually being tested in non-CTFFI mode; minor testament ↵Timothee Cour2020-05-191-1/+1
| | | | | | | | | | cleanups (#14377) * use check * trunner now works with cpp * cleanup: move compiler/unittest_light => stdtest/unittest_light * fix tests/readme.md * remove deadcode references to rodfiles * fix for windows
* add OpenBSD MAP_STACK for coroutines (#14353)John2020-05-161-4/+10
|
* fixes #14370 (#14371)Andreas Rumpf2020-05-162-2/+2
|
* fixes #13862Araq2020-05-131-1/+1
|
* fixes #13935Andreas Rumpf2020-05-131-0/+3
|
* cycle collector: make it threadsafeAraq2020-05-121-5/+5
|
* fixes #13881Andreas Rumpf2020-05-125-18/+34
| | | | | | * fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
* do not track 'raise Defect' in the .raises: [] clause anymore (#14298)Andreas Rumpf2020-05-111-1/+6
| | | | | | | | | * do not track 'raise Defect' in the .raises: [] clause anymore * --panics:on maps 'raise Defect' to an unrecoverable fatal error * make tests green again * update the documentation too
* Fix for --styleCheck:errorAntonis2020-05-111-4/+4
|
* Fix #14270 and add testcases (#14276)Clyybber2020-05-081-2/+6
|
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-053-11/+10
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* fixes #14209 [backport:1.2] (#14213)Andreas Rumpf2020-05-051-1/+1
| | | | * fixes #14209 [backport:1.2] * improve stability
* Fix #14151 (#14205) [backport]slangmgh2020-05-031-8/+2
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-023-19/+2
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* Document that proc named fooTask is created for every foo task [backport] ↵Kaushal Modi2020-05-021-0/+15
| | | | | (#14187) Ref: https://irclogs.nim-lang.org/01-05-2020.html#15:18:03
* change 'iff' to 'if' to stop "corrections" once and for all (#14182)Miran2020-05-012-5/+5
|
* fixes #13698 [backport:1.2] (#14175)Andreas Rumpf2020-04-301-2/+2
|
* fixes the regression #12860 caused; hotfixAraq2020-04-301-0/+3
|
* JS unittest stacktrace fix, cleanup js repr and inclrtl includes (#14168)hlaaftana2020-04-301-34/+12
|
* many bugfixes for js (#14158)hlaaftana2020-04-292-23/+16
| | | | | | | | | | | | | * many bugfixes for js fixes #12672, fixes #14153, closes #14123, closes #11331, fixes #11783, fixes #13966, fixes #14087, fixes #14117, closes #12256. mostly fixes the fact that it was allowed to assign to newly created temp variables. additionally attempts to get rid of null initialized seqs/strings (though they might pop up here and there); this simplifies a lot of things and makes code size smaller. even if null seqs/strings pop up here and there it's still better than all those bugs existing. * formatting fixes * CI fixes * more CI fixes