Adiciona libraries toml/fs, metadados .toml e build por library
- tinyblocks-toml: lexer + parser TOML (include/lexeme.h, include/ast.h, src/lexer.c, src/parser.c) e bloco Toml.Get. - tinyblocks-fs: categoria "Arquivos" com FS.Open/Read/Write/Append/Tell/Close. - library.toml em cada library com metadados (categoria, cor, descricao) e receita de build, sem precisar embutir isso no .so. - Makefiles proprios por library com build/ local; Makefile raiz delega. - Palco (tb_stage) movido para o core; pen deixa de depender do editor, o que torna os .so arrastaveis. - Editor linka com -rdynamic para resolver simbolos do core em .so via dlopen. - Testes: test-toml (parser) e test-plugin (dlopen de .so standalone).
This commit is contained in:
1 parent
90d47bf8a0
commit
dc23b92d15
48 files changed
+2405
-744
No files matched your search
@@ -24,6 +24,8 @@
|
||||
#include <tb_variables.h>
|
||||
#include <tb_appearance.h>
|
||||
#include <tb_pen.h>
|
||||
#include <tb_fs.h>
|
||||
#include <tb_toml.h>
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
TinyBlocks* rt = NULL;
|
||||
@@ -45,6 +47,8 @@ int main(int argc, char** argv) {
|
||||
tb_library_register(rt, tb_variables_get_library());
|
||||
tb_library_register(rt, tb_appearance_get_library());
|
||||
tb_library_register(rt, tb_pen_get_library());
|
||||
tb_library_register(rt, tb_fs_get_library());
|
||||
tb_library_register(rt, tb_toml_get_library());
|
||||
|
||||
/* Interface gráfica: o editor mede texto e cria o palco ao nascer */
|
||||
tb_library_register(rt, tb_graphics_get_library());
|
||||
|
||||
Reference in new issue
Block a user