Headers do editor em include/, com a API privada atrás de um guard
- tb_editor_internal.h e tb_editor_modules.h (antes em internal/) e tb_stage_widget.h (antes em src/) foram para libraries/tinyblocks-editor/include/. - Os três são API privada: só compilam com TB_EDITOR_PRIVATE_API (o editor, os módulos do bundle e o harness definem); fora disso um #error manda incluir tb_editor.h. - Includes viraram <tb_editor_internal.h> etc.; Makefiles sem -Isrc / -Iinternal; library.toml descreve os fontes e o define. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b610a05904
commit
81f198f189
13 files changed
+44
-21
No files matched your search
@@ -46,7 +46,7 @@
|
||||
#include <tb_syntax.h>
|
||||
#include <tb_scratchblocks.h>
|
||||
#include <strings.h>
|
||||
#include "tb_stage_widget.h"
|
||||
#include <tb_stage_widget.h>
|
||||
#include "../include/tb_editor.h"
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ TB_API void tb_editor_preload(const char* path) {
|
||||
strncpy(s_preload[s_preload_n++], path, 511);
|
||||
}
|
||||
|
||||
#include "../internal/tb_editor_internal.h"
|
||||
#include <tb_editor_internal.h>
|
||||
|
||||
|
||||
/* Perninha (triangulo) do balao de previa, apontando para baixo.
|
||||
|
||||
Reference in new issue
Block a user