Blueprint: formatos de arquivo como interface (TbBpFormat)
JSON, XML e CSV são TbBpFormat (id, nome, extensão, write, read) numa tabela; tb_blueprint_serialize/parse/format_name despacham por ela e há tb_blueprint_format_for_path. O editor usa os ids TB_BP_FMT_* em vez de um enum próprio duplicado. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3b37ac7cd6
commit
27245d9080
5 files changed
+82
-29
No files matched your search
@@ -753,7 +753,6 @@ typedef struct {
|
||||
} Toast;
|
||||
|
||||
/* Formatos de exportacao */
|
||||
enum { EX_JSON, EX_XML, EX_CSV };
|
||||
|
||||
typedef struct Ed {
|
||||
TinyBlocks* rt;
|
||||
|
||||
Reference in new issue
Block a user