diff -r 376ef91111f6 -r b174e721663e application/window.c --- a/application/window.c Wed Dec 17 22:36:41 2025 +0100 +++ b/application/window.c Sat Dec 27 22:47:56 2025 +0100 @@ -383,9 +383,9 @@ cxstring fpath = cx_strn(full_path, len); int protocol = 0; - if (cx_strcaseprefix(fpath, CX_STR("http://"))) { + if (cx_strcaseprefix(fpath, "http://")) { protocol = 7; - } else if (cx_strcaseprefix(fpath, CX_STR("https://"))) { + } else if (cx_strcaseprefix(fpath, "https://")) { protocol = 8; } @@ -408,7 +408,7 @@ cxmutstr base = cx_strdup(cx_strn(full_path, end)); - cxmutstr base_path = cx_strcat(2, cx_strcast(base), CX_STR("/")); + cxmutstr base_path = cx_strcat(2, cx_strcast(base), cx_str("/")); cxstring path = cx_strsubs(fpath, end + skip); cxstring trail = cx_str(len > 0 && full_path[len-1] == '/' ? "/" : ""); @@ -417,7 +417,7 @@ size_t nelm = 0; if (path.length > 0) { - nelm = cx_strsplit_a(cxDefaultAllocator, path, CX_STR("/"), 4096, &pathelms); + nelm = cx_strsplit_a(cxDefaultAllocator, path, cx_str("/"), 4096, &pathelms); if (nelm == 0) { *ret_nelm = 0; return NULL; @@ -448,7 +448,7 @@ elms[j].name_len = m.length; size_t elm_path_len = c.ptr + c.length - full_path; - cxmutstr elm_path = cx_strcat(2, cx_strn(full_path, elm_path_len), i+1 < nelm ? CX_STR("/") : trail); + cxmutstr elm_path = cx_strcat(2, cx_strn(full_path, elm_path_len), i+1 < nelm ? cx_str("/") : trail); elms[j].path = elm_path.ptr; elms[j].path_len = elm_path.length; @@ -515,7 +515,7 @@ } cxstring uri_s = cx_str(uri); - if(!cx_strprefix(uri_s, CX_STR("file://"))) { + if(!cx_strprefix(uri_s, cx_str("file://"))) { return 1; }