Converte símbolos Unicode decorativos dos comentários para ASCII
Substitui barras de caixa (─ ═ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴), travessões (—), setas (→ ←), reticências (…), bullets (•), multiplicação (×) e guillemets (› ‹) por equivalentes ASCII. Acentos portugueses são preservados.
This commit is contained in:
1 parent
1cc0ff9d02
commit
90d47bf8a0
36 files changed
+327
-327
No files matched your search
@@ -4,9 +4,9 @@
|
||||
#include <stdio.h>
|
||||
#include "tinyblocks/tinyblocks.h"
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════════════
|
||||
* TinyBlocks_VectorData — buffer de comandos ref-counted
|
||||
* ══════════════════════════════════════════════════════════════════════════ */
|
||||
/* ===
|
||||
* TinyBlocks_VectorData - buffer de comandos ref-counted
|
||||
* === */
|
||||
TinyBlocks_VectorData* tb_vector_data_create(void) {
|
||||
TinyBlocks_VectorData* v = malloc(sizeof(TinyBlocks_VectorData));
|
||||
if (!v) return NULL;
|
||||
@@ -48,7 +48,7 @@ bool tb_vector_data_push(TinyBlocks_VectorData* v, TinyBlocks_VCmd cmd) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* ── Construtores de conveniência ────────────────────────────────────────── */
|
||||
/* -- Construtores de conveniência --- */
|
||||
#define PUSH0(v,k) tb_vector_data_push(v, (TinyBlocks_VCmd){(k), {0}})
|
||||
#define PUSH2(v,k,a,b) tb_vector_data_push(v, (TinyBlocks_VCmd){(k), {(a),(b)}})
|
||||
#define PUSH4(v,k,a,b,c,d) tb_vector_data_push(v,(TinyBlocks_VCmd){(k),{(a),(b),(c),(d)}})
|
||||
@@ -77,7 +77,7 @@ bool tb_vector_circle(TinyBlocks_VectorData* v, float cx, float cy, float radius
|
||||
#undef PUSH4
|
||||
#undef PUSH5
|
||||
|
||||
/* ── Value helpers ───────────────────────────────────────────────────────── */
|
||||
/* -- Value helpers --- */
|
||||
TinyBlocks_Value tb_value_vector(TinyBlocks_VectorData* v) {
|
||||
TinyBlocks_Value val;
|
||||
val.kind = TB_VALUE_VECTOR;
|
||||
@@ -90,7 +90,7 @@ TinyBlocks_VectorData* tb_value_as_vector(TinyBlocks_Value v) {
|
||||
return v.kind == TB_VALUE_VECTOR ? v.as.vector : NULL;
|
||||
}
|
||||
|
||||
/* ── RenderableBlock play ────────────────────────────────────────────────── */
|
||||
/* -- RenderableBlock play --- */
|
||||
void tb_draw_ctx_play(TinyBlocks_RenderableBlock* rb, TinyBlocks_VectorData* v) {
|
||||
if (!rb || !v) return;
|
||||
float px = 0.f, py = 0.f; /* ponto atual do path */
|
||||
@@ -128,9 +128,9 @@ void tb_draw_ctx_play(TinyBlocks_RenderableBlock* rb, TinyBlocks_VectorData* v)
|
||||
}
|
||||
}
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════════════
|
||||
* TinyBlocks_VectorBlock — block kind TB_KIND_VECTOR
|
||||
* ══════════════════════════════════════════════════════════════════════════ */
|
||||
/* ===
|
||||
* TinyBlocks_VectorBlock - block kind TB_KIND_VECTOR
|
||||
* === */
|
||||
static void vec_eval(TinyBlocks_Block* self, TinyBlocks* rt) {
|
||||
(void)rt;
|
||||
TinyBlocks_VectorBlock* vb = (TinyBlocks_VectorBlock*)self;
|
||||
|
||||
Reference in new issue
Block a user