Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v2
with:
version: master
version: 0.16.0
- if: runner.os == 'Windows'
run: choco install make --no-progress
- if: contains(matrix.triples, 'wasm32')
Expand Down
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,9 @@ ifeq ($(TRIPLE),)
endif
endif

TESTS = amalg app array asset cli etc env format fmon glob ht io math process ps rb str sys thread time mem leak qsort term
TESTS = amalg app array asset cli etc env format fmon glob ht io math process ps rb sys thread time mem leak qsort term
BENCHES = glob heap
EXAMPLES = app array cli format hash_table io zero_copy ls palette post serve signal tls wc
EXAMPLES += fs/config fs/iterator fs/ls fs/roots fs/workspace
ifneq (,$(findstring wasm32,$(TRIPLE)))
EXAMPLES += fs/preopen
else
EXAMPLES += fs/absolute
endif
TRIPLES = \
x86_64-linux-none x86_64-linux-gnu x86_64-linux-musl \
aarch64-linux-none aarch64-linux-gnu aarch64-linux-musl \
Expand Down
29 changes: 0 additions & 29 deletions example/fs/absolute.c

This file was deleted.

27 changes: 0 additions & 27 deletions example/fs/config.c

This file was deleted.

64 changes: 0 additions & 64 deletions example/fs/iterator.c

This file was deleted.

51 changes: 0 additions & 51 deletions example/fs/ls.c

This file was deleted.

25 changes: 0 additions & 25 deletions example/fs/preopen.c

This file was deleted.

37 changes: 0 additions & 37 deletions example/fs/roots.c

This file was deleted.

49 changes: 0 additions & 49 deletions example/fs/workspace.c

This file was deleted.

6 changes: 3 additions & 3 deletions example/palette.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@ sp_app_config_t app_main(s32 num_args, const c8** args) {
s32 value = -1;

/* palette [hue] [saturation] [value] */
if (num_args > 1) hue = sp_parse_s32(sp_str_view(args[1]));
if (num_args > 2) saturation = sp_parse_s32(sp_str_view(args[2]));
if (num_args > 3) value = sp_parse_s32(sp_str_view(args[3]));
if (num_args > 1) hue = sp_parse_s32(sp_cstr_as_str(args[1]));
if (num_args > 2) saturation = sp_parse_s32(sp_cstr_as_str(args[2]));
if (num_args > 3) value = sp_parse_s32(sp_cstr_as_str(args[3]));

sp_mem_heap_t* heap = sp_mem_heap_new();
sp_mem_t mem = sp_mem_heap_as_allocator(heap);
Expand Down
6 changes: 3 additions & 3 deletions example/prompt_fancy.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void fancy_nl(sp_prompt_ctx_t* ctx) {
}

static void fancy_render_cstr(sp_prompt_ctx_t* ctx, const c8* text, sp_prompt_style_t style) {
sp_prompt_render_line(ctx, sp_str_view(text), style);
sp_prompt_render_line(ctx, sp_cstr_as_str(text), style);
}

static void fancy_render_str(sp_prompt_ctx_t* ctx, sp_str_t text, sp_prompt_style_t style) {
Expand Down Expand Up @@ -149,7 +149,7 @@ static void fancy_scan_render(sp_prompt_ctx_t* ctx) {
fancy_render_cstr(ctx, symbol, symbol_style);
fancy_render_cstr(ctx, " ", sp_zero_s(sp_prompt_style_t));
fancy_render_cstr(ctx, scan->probes[it].label, sp_zero_s(sp_prompt_style_t));
u32 width = sp_prompt_text_width(sp_str_view(scan->probes[it].label));
u32 width = sp_prompt_text_width(sp_cstr_as_str(scan->probes[it].label));
sp_for_range(pad, width, 20) {
SP_UNUSED(pad);
fancy_render_cstr(ctx, " ", sp_zero_s(sp_prompt_style_t));
Expand Down Expand Up @@ -390,7 +390,7 @@ static void fancy_publish_render(sp_prompt_ctx_t* ctx) {
fancy_render_cstr(ctx, fancy_job_symbol(target->state, copy.frame), fancy_job_style(target->state));
fancy_render_cstr(ctx, " ", sp_zero_s(sp_prompt_style_t));
fancy_render_cstr(ctx, target->label, sp_zero_s(sp_prompt_style_t));
u32 width = sp_prompt_text_width(sp_str_view(target->label));
u32 width = sp_prompt_text_width(sp_cstr_as_str(target->label));
sp_for_range(pad, width, 24) {
SP_UNUSED(pad);
fancy_render_cstr(ctx, " ", sp_zero_s(sp_prompt_style_t));
Expand Down
Loading
Loading