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:
1 parent
374b445a8f
commit
80bd330766
40 files changed
+137
-137
No files matched your search
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "tb_scratchblocks.h"
|
||||
|
||||
/* -- Modelos internos (ingles do Scratch 3) ------------------------------- */
|
||||
/* -- Modelos internos (ingles do Scratch 3) --- */
|
||||
/* forma: h chapeu, s comando, c C, C se/senao, e sempre, r repórter, b booleano */
|
||||
typedef struct { const char* type; const char* text; char shape; bool import_only; } Tpl;
|
||||
|
||||
@@ -88,7 +88,7 @@ static const Tpl s_builtin[] = {
|
||||
};
|
||||
#define BUILTIN_N ((int)(sizeof(s_builtin) / sizeof(s_builtin[0])))
|
||||
|
||||
/* -- Texto dinamico -------------------------------------------------------- */
|
||||
/* -- Texto dinamico --- */
|
||||
typedef struct { char* p; size_t n, cap; } Sb;
|
||||
|
||||
static void sb_add(Sb* b, const char* s, size_t n) {
|
||||
@@ -114,7 +114,7 @@ static void sb_esc(Sb* b, const char* s) {
|
||||
}
|
||||
}
|
||||
|
||||
/* -- Tokens ---------------------------------------------------------------- */
|
||||
/* -- Tokens --- */
|
||||
enum { T_WORD, T_ROUND, T_SQUARE, T_ANGLE }; /* palavra, ( ), [ ], < > */
|
||||
#define TOK_MAX 40
|
||||
#define TOK_TEXT 256
|
||||
@@ -228,7 +228,7 @@ static void strip_category(char* s) {
|
||||
}
|
||||
}
|
||||
|
||||
/* -- Modelos (internos + rotulos do chamador) ------------------------------ */
|
||||
/* -- Modelos (internos + rotulos do chamador) --- */
|
||||
typedef struct {
|
||||
const char* type;
|
||||
char shape;
|
||||
@@ -347,7 +347,7 @@ static bool model_match(const Model* m, const Tok* t, int n) {
|
||||
|
||||
static bool shape_is_stmt(char s) { return s == 's' || s == 'h' || s == 'c' || s == 'C' || s == 'e'; }
|
||||
|
||||
/* -- Exportar -------------------------------------------------------------- */
|
||||
/* -- Exportar --- */
|
||||
static bool is_literal(const char* type) { return strncmp(type, "Literal.", 8) == 0; }
|
||||
|
||||
static int block_shape(const Models* M, const char* type) {
|
||||
@@ -530,7 +530,7 @@ char* tb_scratchblocks_export(const TbBpTab* tab, const TbSbContext* cx) {
|
||||
return out.p;
|
||||
}
|
||||
|
||||
/* -- Importar -------------------------------------------------------------- */
|
||||
/* -- Importar --- */
|
||||
typedef struct {
|
||||
const Models* M;
|
||||
TbBpTab* tab;
|
||||
|
||||
Reference in new issue
Block a user