diff options
author | Araq <rumpf_a@web.de> | 2019-07-10 15:28:15 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-07-10 15:28:35 +0200 |
commit | 6663dbbe5728c847929ca99145e733bf5290da26 (patch) | |
tree | 1db8f1f390056d9646fff66d88fd581c23ca0732 /compiler | |
parent | e5425b5f2f9413896c87a868a84663ed5e814364 (diff) | |
download | Nim-6663dbbe5728c847929ca99145e733bf5290da26.tar.gz |
fixes #11691
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ccgtypes.nim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/ccgtypes.nim b/compiler/ccgtypes.nim index 4055789b7..bf7bf6795 100644 --- a/compiler/ccgtypes.nim +++ b/compiler/ccgtypes.nim @@ -405,9 +405,9 @@ proc getTypeDescWeak(m: BModule; t: PType; check: var IntSet): Rope = m.typeCache[sig] = result #echo "adding ", sig, " ", typeToString(t), " ", m.module.name.s appcg(m, m.s[cfsTypes], - "struct $1 {$n" & - " NI len; $1_Content* p;$n" & - "};$n", [result]) + "struct $1 {$N" & + " NI len; $1_Content* p;$N" & + "};$N", [result]) else: result = getTypeForward(m, t, sig) & seqStar(m) pushType(m, t) @@ -427,11 +427,11 @@ proc seqV2ContentType(m: BModule; t: PType; check: var IntSet) = else: # little hack for now to prevent multiple definitions of the same # Seq_Content: - appcg(m, m.s[cfsTypes], """ + appcg(m, m.s[cfsTypes], """$N $3ifndef $2_Content_PP $3define $2_Content_PP struct $2_Content { NI cap;#AllocatorObj* allocator;$1 data[SEQ_DECL_SIZE];}; -$3endif +$3endif$N """, [getTypeDescAux(m, t.skipTypes(abstractInst).sons[0], check), result, rope"#"]) proc paramStorageLoc(param: PSym): TStorageLoc = |