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
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* TinyBlocks — tb_defs.h
|
||||
* TinyBlocks - tb_defs.h
|
||||
* Forward declarations, enums e tipos primitivos compartilhados por todo o runtime.
|
||||
*/
|
||||
#ifndef TINYBLOCKS_DEFS_H
|
||||
@@ -9,14 +9,14 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
/* ── Visibilidade de API ─────────────────────────────────────────────────── */
|
||||
/* -- Visibilidade de API --- */
|
||||
#ifdef _WIN32
|
||||
# define TB_API __declspec(dllexport)
|
||||
#else
|
||||
# define TB_API __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
/* ── Forward declarations ────────────────────────────────────────────────── */
|
||||
/* -- Forward declarations --- */
|
||||
typedef struct TinyBlocks TinyBlocks;
|
||||
typedef struct TinyBlocks_Block TinyBlocks_Block;
|
||||
typedef struct TinyBlocks_TypeBlock TinyBlocks_TypeBlock;
|
||||
@@ -29,7 +29,7 @@ typedef struct TinyBlocks_VectorData TinyBlocks_VectorData;
|
||||
typedef struct TinyBlocks_RenderableBlock TinyBlocks_RenderableBlock;
|
||||
typedef struct TinyBlocks_JsonValue TinyBlocks_JsonValue;
|
||||
|
||||
/* ── Kinds de bloco ──────────────────────────────────────────────────────── */
|
||||
/* -- Kinds de bloco --- */
|
||||
typedef enum TinyBlocks_BlockKind {
|
||||
TB_KIND_BLOCK = 0, /* bloco genérico / definido pelo usuário */
|
||||
TB_KIND_TYPE = 1, /* TinyBlocks_TypeBlock */
|
||||
@@ -40,7 +40,7 @@ typedef enum TinyBlocks_BlockKind {
|
||||
TB_KIND_VECTOR = 6, /* TinyBlocks_VectorBlock */
|
||||
} TinyBlocks_BlockKind;
|
||||
|
||||
/* ── Kinds de valor (para slots) ─────────────────────────────────────────── */
|
||||
/* -- Kinds de valor (para slots) --- */
|
||||
typedef enum TinyBlocks_ValueKind {
|
||||
TB_VALUE_NONE = 0,
|
||||
TB_VALUE_INTEGER = 1,
|
||||
@@ -51,7 +51,7 @@ typedef enum TinyBlocks_ValueKind {
|
||||
TB_VALUE_JSON = 6, /* valor JSON (ref-counted) */
|
||||
} TinyBlocks_ValueKind;
|
||||
|
||||
/* ── Valor com tag (flui entre slots) ────────────────────────────────────── */
|
||||
/* -- Valor com tag (flui entre slots) --- */
|
||||
typedef struct TinyBlocks_Value {
|
||||
TinyBlocks_ValueKind kind;
|
||||
union {
|
||||
@@ -64,9 +64,9 @@ typedef struct TinyBlocks_Value {
|
||||
} as;
|
||||
} TinyBlocks_Value;
|
||||
|
||||
/* ══════════════════════════════════════════════════════════════════════════
|
||||
/* ===
|
||||
* Dados de vetor 2D (fluxo de comandos de desenho, ref-counted)
|
||||
* ══════════════════════════════════════════════════════════════════════════ */
|
||||
* === */
|
||||
typedef enum TinyBlocks_VCmdKind {
|
||||
TB_VCMD_BEGIN_PATH = 0, /* nenhum arg */
|
||||
TB_VCMD_MOVE_TO, /* args[0]=x, args[1]=y */
|
||||
@@ -87,24 +87,24 @@ struct TinyBlocks_VectorData {
|
||||
};
|
||||
|
||||
|
||||
/* ── Descritor de slot (em TypeBlock — descreve a forma dos inputs/outputs) ─ */
|
||||
/* -- Descritor de slot (em TypeBlock - descreve a forma dos inputs/outputs) - */
|
||||
typedef struct TinyBlocks_SlotDesc {
|
||||
const char* name;
|
||||
TinyBlocks_ValueKind expected_kind; /* TB_VALUE_NONE = aceita qualquer tipo */
|
||||
} TinyBlocks_SlotDesc;
|
||||
|
||||
/* ── Conexão de entrada (de qual bloco/slot este input lê) ───────────────── */
|
||||
/* -- Conexão de entrada (de qual bloco/slot este input lê) --- */
|
||||
typedef struct TinyBlocks_Connection {
|
||||
TinyBlocks_Block* source; /* bloco de origem (NULL se não conectado) */
|
||||
uint32_t output_idx; /* qual output slot da origem */
|
||||
TinyBlocks_Value default_value; /* valor quando não há conexão */
|
||||
} TinyBlocks_Connection;
|
||||
|
||||
/* ── Alocador customizável ───────────────────────────────────────────────── */
|
||||
/* -- Alocador customizável --- */
|
||||
typedef void* (*TinyBlocks_AllocFn)(size_t size, void* userdata);
|
||||
typedef void (*TinyBlocks_FreeFn) (void* ptr, void* userdata);
|
||||
|
||||
/* ── Helpers para TinyBlocks_Value ──────────────────────────────────────── */
|
||||
/* -- Helpers para TinyBlocks_Value --- */
|
||||
TB_API TinyBlocks_Value tb_value_none(void);
|
||||
TB_API TinyBlocks_Value tb_value_integer(int64_t v);
|
||||
TB_API TinyBlocks_Value tb_value_real(double v);
|
||||
|
||||
Reference in new issue
Block a user