some progress on dos vesa, but not quite

This commit is contained in:
veclavtlica committed 2026-10-31 14:15:49 +03:00
1 parent 55ac075e4d
commit 4998fafef9
11 files changed
+342 -180

No files matched your search

+8 -1
View File
@@ -24,12 +24,19 @@ typedef struct com_str {
uint32_t len;
uint32_t flags;
char data[] __attribute__((aligned(COM_DEF_ALIGNMENT)));
} com_str;
/* NOTE: Have to be moved to static or global memory. */
#define com_str_lit(p_l) {NULL, sizeof(p_l) - 1, COM_STR_NULL_TERMINATED, (p_l)}
static inline void com_str_copy_to_mem(struct com_str *s, char *to,
bool withnull) {
for (int i = 0; i < s->len; ++i)
to[i] = s->data[i];
if (withnull)
to[s->len] = '\0';
}
static inline uint32_t com_str_ext_len(char const *s) {
char const *p = s;
for (; *p != 0; ++p) {