mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 22:16:21 +00:00
I removed ncurses header dependencies, removed unused code
This commit is contained in:
12
src/common.c
12
src/common.c
@@ -253,18 +253,6 @@ utf8_display_len(const char * const str)
|
||||
return len;
|
||||
}
|
||||
|
||||
gboolean
|
||||
utf8_is_printable(const wint_t ch)
|
||||
{
|
||||
char bytes[MB_CUR_MAX+1];
|
||||
size_t utf_len = wcrtomb(bytes, ch, NULL);
|
||||
bytes[utf_len] = '\0';
|
||||
|
||||
gunichar unichar = g_utf8_get_char(bytes);
|
||||
|
||||
return g_unichar_isprint(unichar) && (ch != KEY_MOUSE);
|
||||
}
|
||||
|
||||
char *
|
||||
prof_getline(FILE *stream)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user