summary refs log tree commit diff stats
path: root/lib/system/repr.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix #12122 (#21096)Bung2022-12-161-5/+5
|
* fixes ptr to cstring warnings[backport] (#20848)ringabout2022-11-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix =#13790 ptr char (+friends) should not implicitly convert to cstring * Apply suggestions from code review * first round; compiles on windows * nimPreviewSlimSystem * conversion is unsafe, cast needed * fixes more tests * fixes asyncnet * another try another error * last one * true * one more * why bugs didn't show at once * add `nimPreviewCstringConversion` switch * typo * fixes ptr to cstring warnings[backport] * add fixes Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com>
* properly fix #10053 ; `FieldDefect` msg now shows discriminant value + ↵Timothee Cour2021-08-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lineinfo, in all backends (c,vm,js) (#11955) * fix #10053 FieldError for vm * fixup * FieldError now also shows runtime value of discriminant * fix field error reporting in vm * also report culprit line info in err msg * fix errors for newruntime 2 * fix for js * fixup * PRTEMP4 * works * works * works perfect * refactor * std/private/repr_impl * suppport --gc:arc * cleanup * refactor * simplify * simplify * simplify * fixup * move out compiler.vmgen.genCustom * fixup * fixup * add tests * revert compiler/debugutils.nim * simplify reprDiscriminant * fixup * lib/std/private/repr_impl.nim -> lib/system/repr_impl.nim * try to fix D20210812T165220 * honor --declaredlocs * control toFileLineCol via --declaredlocs
* cString => cSourceString; tyCString => tyCstring so that error msgs show ↵Timothee Cour2021-04-171-1/+1
| | | | cstring, not cString (#17744)
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-171-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#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
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-191-1/+2
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-0/+1
| | | | | | | | | | | * 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
* forward type alignment information to seqs (#12430)Arne Döring2020-04-191-2/+2
|
* more fixes for --cpu:avr [backport] (#12748)Andreas Rumpf2019-11-271-1/+1
|
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-301-1/+1
|
* first implementation of the new --seqsv2 switchAraq2019-10-201-1/+1
|
* gc:destructors progressAndreas Rumpf2019-09-161-1/+1
|
* fixes #8405: -d:useNimRtl now works even when {.rtl.} procs are used at ↵Timothee Cour2019-07-031-12/+13
| | | | compile time; CTFFI now works with {dynlib} (#11635)
* Make repr use 'ptr' for ptr types instead of 'ref' (#11626)Ico Doornekamp2019-07-011-1/+2
|
* [refactoring] refactor the compiler and stdlib to deprecation warnings (#11419)Arne Döring2019-06-111-2/+2
|
* repr on seq now outputs @[...] (#11224)Ico Doornekamp2019-05-101-1/+1
|
* code cleanup (#10874)Arne Döring2019-03-281-6/+6
|
* gc:destructors: make system/repr compileAndreas Rumpf2019-02-211-1/+16
|
* removes deprecated T/P typesAraq2018-11-161-1/+0
|
* Fix repr() for UncheckedArray (#9385)LemonBoy2018-10-161-0/+2
|
* make more tests green; system.repr does not produce 'nil' for strings and ↵Araq2018-08-221-3/+6
| | | | seqs anymore
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-1/+1
|
* --gc:destructors: next steps; WIPAndreas Rumpf2018-07-211-18/+0
|
* Remove more usages of unary lt (fixes #6634) (#6641)Fabian Keller2017-10-311-1/+1
| | | | | | * fixes #6634 * remove more usages of unary <
* more replacements for the deprecated '<'Andreas Rumpf2017-10-291-1/+1
|
* breaking change: arrays of char do not convert to cstring; ptr to array of ↵Andreas Rumpf2017-10-101-3/+8
| | | | char does
* fixArne Döring2017-07-241-1/+1
|
* removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-3/+3
|
* remove $ for ptr/ref, prefer using string over array of charArne Döring2017-07-241-7/+7
|
* arrays can now be printedArne Döring2017-07-241-2/+2
|
* Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)Markus F.X.J. Oberhumer2017-06-151-2/+2
| | | This is a follow-up to #5823.
* fixes repr regressionAndreas Rumpf2017-01-271-1/+3
|
* repr.nim: minor improvement when outputting addresses of cstringsAndreas Rumpf2017-01-261-5/+5
|
* Fix compilation for 16 bit targets (#5286)Jeff Ciesielski2017-01-261-1/+1
|
* Handle different enum sizes in reprAux (#5207)Brandon Pickering2017-01-111-1/+9
|
* prepare Nim codebase for upcoming parser changesAndreas Rumpf2016-07-151-2/+2
|
* Fixed reprEnum function on 32-bit systemsRostyslav Dzinko2016-07-051-12/+9
|
* Rewrote enum sign extension with branchless bit operations (also fixes travis)gmpreussner2016-03-151-8/+8
|
* Fixed negative enum values not getting stringified.gmpreussner2016-03-141-3/+3
|
* Fix for #3939 issuecheatfate2016-03-061-0/+1
|
* bug fix: repr() of sized enums presentation Issue #3864cheatfate2016-02-181-0/+1
|
* add support for uint32 and uint64 in reprMichał Zieliński2016-01-161-2/+4
|
* Uint64 to string in pure nim. array[char] to string fixed in vm.Yuriy Glukhov2015-09-141-4/+16
|
* fixes #3080Araq2015-08-021-1/+4
|
* fixes #2992Araq2015-06-251-4/+4
|
* Merge pull request #2768 from gokr/fix-reprAndreas Rumpf2015-06-161-5/+11
|\ | | | | Fixes #2749, traverse full inheritance for reprRecord
| * Tweaked to do commas properlyGöran Krampe2015-05-201-3/+3
| |
| * Fixes #2749, traverse full inheritance for reprRecordGöran Krampe2015-05-201-5/+11
| |
* | Merge branch 'devel' into gogcStefan Talpalaru2015-06-151-18/+19
|\ \
| * | lib/system/g-w - Dropped 'T' from typespdw2015-06-041-18/+19
| |/