From 7ee8d642dc515e640ba6bd161ae43f6fb33cd493 Mon Sep 17 00:00:00 2001 From: dzaima Date: Tue, 20 Jul 2021 22:18:37 +0300 Subject: [PATCH] trailing newlines --- cc.bqn | 2 +- src/core/fillarr.c | 2 +- src/core/stuff.c | 1 - src/jit/x86_64.h | 2 +- src/nfns.h | 2 +- src/utils/each.h | 2 +- src/vm.c | 10 +++++----- 7 files changed, 10 insertions(+), 11 deletions(-) diff --git a/cc.bqn b/cc.bqn index f38db411..f80b80dc 100755 --- a/cc.bqn +++ b/cc.bqn @@ -47,7 +47,7 @@ RT ← { CArg ← {J (¯5⊸↓∾𝕩˙)⌾⊑ FLines "c.bqn"} SVG ← {∾⟨"Modify←GetHighlights←⊢⋄"⟩∾ FChars∘∾⟜".bqn"¨ "../svg"‿𝕩} -•Out⍟(¬return) (⊑"r"‿"r0"‿"r1"‿"c"‿"cc"‿"f"‿"e"‿"p"⊐⊏)◶⟨ +(@+10)∾˜ •Out⍟(¬return) (⊑"r"‿"r0"‿"r1"‿"c"‿"cc"‿"f"‿"e"‿"p"⊐⊏)◶⟨ RT∘2, RT∘0, RT∘1 {𝕩⋄LFC CArg "⟨"∾"⟩"«∾","⊸∾¨'"'(⊣∾∾˜)¨glyphs} {𝕩⋄LFC "{"∾"}"∾˜CArg"𝕩"} diff --git a/src/core/fillarr.c b/src/core/fillarr.c index edf82c41..7aae3ac6 100644 --- a/src/core/fillarr.c +++ b/src/core/fillarr.c @@ -209,4 +209,4 @@ B withFill(B x, B fill) { // consumes both for (usz i = 0; i < ia; i++) a[i] = xget(x,i); dec(x); return taga(r); -} \ No newline at end of file +} diff --git a/src/core/stuff.c b/src/core/stuff.c index db6db5f8..dd84274f 100644 --- a/src/core/stuff.c +++ b/src/core/stuff.c @@ -586,4 +586,3 @@ NOINLINE void printAllocStats() { return x; } #endif - \ No newline at end of file diff --git a/src/jit/x86_64.h b/src/jit/x86_64.h index eb3a6d06..8673f4f1 100644 --- a/src/jit/x86_64.h +++ b/src/jit/x86_64.h @@ -476,4 +476,4 @@ ASMI(POP , Reg O) { nREX4(O,0); ASM1(0x58+((O)&7)); } ASMI(CALL, Reg i) { nREX4(i,0); ASM1(0xFF); nA_REG(i,2); } ASMI(CALLi, u64 pos) { ASM1(0xE8); if (pos>I32_MAX)err("immediate call outside of 32-bit range!"); ASM4(pos-4); } -#define IMM(A,B) MOVi(A,(u64)(B)) \ No newline at end of file +#define IMM(A,B) MOVi(A,(u64)(B)) diff --git a/src/nfns.h b/src/nfns.h index ad9b3478..a8f82287 100644 --- a/src/nfns.h +++ b/src/nfns.h @@ -18,4 +18,4 @@ static B nfn_objU(B t) { } static i32 nfn_data(B t) { return c(NFn,t)->data; -} \ No newline at end of file +} diff --git a/src/utils/each.h b/src/utils/each.h index 6bededaf..734d40cc 100644 --- a/src/utils/each.h +++ b/src/utils/each.h @@ -166,4 +166,4 @@ static inline B arith_recd(BBB2B f, B w, B x) { static inline B arith_recd(BBB2B f, B w, B x) { return eachd_fn(f, bi_N, w, x); } -#endif \ No newline at end of file +#endif diff --git a/src/vm.c b/src/vm.c index c6054956..b56f35f3 100644 --- a/src/vm.c +++ b/src/vm.c @@ -569,11 +569,11 @@ B evalBC(Block* bl, Body* b, Scope* sc) { // doesn't consume } case DFND: { GS_UPD;POS_UPD; - Block* bl = blocks[*bc++]; - switch(bl->ty) { default: UD; - case 0: ADD(m_funBlock(bl, sc)); break; - case 1: ADD(m_md1Block(bl, sc)); break; - case 2: ADD(m_md2Block(bl, sc)); break; + Block* cbl = blocks[*bc++]; + switch(cbl->ty) { default: UD; + case 0: ADD(m_funBlock(cbl, sc)); break; + case 1: ADD(m_md1Block(cbl, sc)); break; + case 2: ADD(m_md2Block(cbl, sc)); break; } break; }