Commit 16571d5b authored by Deucе's avatar Deucе 👌🏾
Browse files

Whoops, add missing files for last commit.

parent d9660eaf
Pipeline #2698 failed with stage
in 6 minutes and 6 seconds
...@@ -348,6 +348,13 @@ size_t unicode_width(enum unicode_codepoint u) ...@@ -348,6 +348,13 @@ size_t unicode_width(enum unicode_codepoint u)
} }
} }
char unicode_to_latin1(enum unicode_codepoint codepoint)
{
if (codepoint < 0 || codepoint > 255)
return UNICODE_UNDEFINED;
return codepoint;
}
char unicode_to_cp437(enum unicode_codepoint codepoint) char unicode_to_cp437(enum unicode_codepoint codepoint)
{ {
switch(codepoint) { switch(codepoint) {
......
...@@ -46,6 +46,7 @@ extern "C" { ...@@ -46,6 +46,7 @@ extern "C" {
extern enum unicode_codepoint cp437_unicode_tbl[]; extern enum unicode_codepoint cp437_unicode_tbl[];
size_t unicode_width(enum unicode_codepoint); size_t unicode_width(enum unicode_codepoint);
char unicode_to_cp437(enum unicode_codepoint); char unicode_to_cp437(enum unicode_codepoint);
char unicode_to_latin1(enum unicode_codepoint);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment