Comentários: separadores com no máximo "---"

Trechos com quatro ou mais hífens dentro de comentários viram "---"
(strings não mudam).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mguinhosandClaude Opus 5.5 committed 2026-10-23 07:24:19 -03:00
1 parent 374b445a8f
commit 80bd330766
40 files changed
+137 -137

No files matched your search

+6 -6
View File
@@ -22,7 +22,7 @@
#define STR_MAX_OUT (1u << 20) /* teto de 1 MB para "repita" */
/* -- UTF-8 ---------------------------------------------------------------- */
/* -- UTF-8 --- */
static size_t u8_len(unsigned char c) {
if (c < 0x80) return 1;
@@ -77,7 +77,7 @@ static size_t u8_count(const char* s, size_t nbytes) {
return n;
}
/* -- API ------------------------------------------------------------------ */
/* -- API --- */
TB_API size_t tb_string_length(const char* s) {
return u8_count(s, strlen(s));
@@ -156,7 +156,7 @@ TB_API bool tb_string_is_number(const char* s) {
return *e == 0;
}
/* -- Entradas ------------------------------------------------------------- */
/* -- Entradas --- */
/* Texto da entrada i (numeros viram texto). Fica valido ate o proximo uso. */
@@ -174,7 +174,7 @@ static void out_bool(TinyBlocks_Block* self, bool b) {
#define TXT(i) tb_block_input_text(self, rt, (i))
/* -- Blocos --------------------------------------------------------------- */
/* -- Blocos --- */
static void eval_upper(TinyBlocks_Block* self, TinyBlocks* rt) { out_owned(self, tb_string_upper(TXT(0))); }
static void eval_lower(TinyBlocks_Block* self, TinyBlocks* rt) { out_owned(self, tb_string_lower(TXT(0))); }
@@ -285,7 +285,7 @@ static void eval_isempty(TinyBlocks_Block* self, TinyBlocks* rt) {
free(t);
}
/* -- Conversoes ----------------------------------------------------------- */
/* -- Conversoes --- */
/* "texto de (x)": cada tipo de valor sabe virar texto (classe do valor) */
static void eval_from(TinyBlocks_Block* self, TinyBlocks* rt) {
@@ -330,7 +330,7 @@ static void eval_from_code(TinyBlocks_Block* self, TinyBlocks* rt) {
out_owned(self, dup_n(buf, n));
}
/* -- Registro ------------------------------------------------------------- */
/* -- Registro --- */
static bool reg(TinyBlocks* rt, TinyBlocks_LibraryBlock* lib, const char* name,
const TinyBlocks_SlotDesc* in, uint32_t ni,