Adiciona tinyblocks-environ e tela de Configuracoes (salvar/exportar CSV)
tinyblocks-environ (categoria "Ambiente"): - blocos Environ.Get/Set/Has/Unset (store chave->valor; Get cai no getenv). - API C enumeravel (count/key/value_at/get/has/set/unset) e tb_environ_export_csv(path) com escape de CSV; tb_environ_reset. - library.toml com metadados; Makefile proprio (.a/.so). Editor: - biblioteca de settings no store da environ, com valores iniciais (autor, projeto, tema, escala, autosave). - tela "Configurações" (botao Config no menu): lista as chaves, edita o valor da linha (Enter confirma, Esc cancela), "+ Nova" cria chave, Delete remove, campo de caminho + botoes "Salvar" e "Exportar CSV". - Ctrl/scroll e foco de texto integrados ao mesmo fluxo do libman. Build/testes: - environ entra em CAT_LIBS (compila no editor, no harness e no libman). - make test-environ (store, fallback getenv, escape CSV, blocos). - harness: passo 18 cobre abrir Configuracoes, editar valor, salvar CSV e verificar o conteudo; Esc fecha.
This commit is contained in:
1 parent
3120d2d797
commit
b29908e65b
9 files changed
+714
-7
No files matched your search
@@ -0,0 +1,29 @@
|
||||
# Makefile da library environ (categoria "Ambiente")
|
||||
# Constroi build/libtinyblocks-environ.a e build/libtinyblocks-environ.so
|
||||
CC := gcc
|
||||
BUILD := build
|
||||
|
||||
CFLAGS := -std=c11 -Wall -Wextra -pedantic -fvisibility=hidden \
|
||||
-D_POSIX_C_SOURCE=200809L -I../../include -Iinclude
|
||||
|
||||
OBJ := $(BUILD)/tb_environ.o
|
||||
LIB_A := $(BUILD)/libtinyblocks-environ.a
|
||||
LIB_SO := $(BUILD)/libtinyblocks-environ.so
|
||||
|
||||
.PHONY: all static shared clean
|
||||
all: static shared
|
||||
static: $(LIB_A)
|
||||
shared: $(LIB_SO)
|
||||
|
||||
$(OBJ): src/tb_environ.c include/tb_environ.h
|
||||
@mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) -fPIC -c $< -o $@
|
||||
|
||||
$(LIB_A): $(OBJ)
|
||||
ar rcs $@ $^
|
||||
|
||||
$(LIB_SO): $(OBJ)
|
||||
$(CC) -shared -o $@ $^
|
||||
|
||||
clean:
|
||||
$(RM) -r $(BUILD)
|
||||
Reference in new issue
Block a user