use a bit more Eina_Unicode
This commit is contained in:
parent
12617004ee
commit
8f3258f1b3
|
@ -980,7 +980,7 @@ _handle_block_codepoint_overwrite_heavy(Termpty *ty, int oldc, int newc)
|
||||||
|
|
||||||
/* Try to trick the compiler into inlining the first test */
|
/* Try to trick the compiler into inlining the first test */
|
||||||
static inline void
|
static inline void
|
||||||
_handle_block_codepoint_overwrite(Termpty *ty, int oldc, int newc)
|
_handle_block_codepoint_overwrite(Termpty *ty, Eina_Unicode oldc, Eina_Unicode newc)
|
||||||
{
|
{
|
||||||
if (!((oldc | newc) & 0x80000000)) return;
|
if (!((oldc | newc) & 0x80000000)) return;
|
||||||
_handle_block_codepoint_overwrite_heavy(ty, oldc, newc);
|
_handle_block_codepoint_overwrite_heavy(ty, oldc, newc);
|
||||||
|
@ -1050,7 +1050,8 @@ termpty_cell_fill(Termpty *ty, Termcell *src, Termcell *dst, int n)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
termpty_cell_codepoint_att_fill(Termpty *ty, int codepoint, Termatt att, Termcell *dst, int n)
|
termpty_cell_codepoint_att_fill(Termpty *ty, Eina_Unicode codepoint,
|
||||||
|
Termatt att, Termcell *dst, int n)
|
||||||
{
|
{
|
||||||
Termcell local = { codepoint, att };
|
Termcell local = { codepoint, att };
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -153,7 +153,7 @@ struct _Termpty
|
||||||
|
|
||||||
struct _Termcell
|
struct _Termcell
|
||||||
{
|
{
|
||||||
int codepoint;
|
Eina_Unicode codepoint;
|
||||||
Termatt att;
|
Termatt att;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ Termblock *termpty_block_chid_get(Termpty *ty, const char *chid);
|
||||||
|
|
||||||
void termpty_cell_copy(Termpty *ty, Termcell *src, Termcell *dst, int n);
|
void termpty_cell_copy(Termpty *ty, Termcell *src, Termcell *dst, int n);
|
||||||
void termpty_cell_fill(Termpty *ty, Termcell *src, Termcell *dst, int n);
|
void termpty_cell_fill(Termpty *ty, Termcell *src, Termcell *dst, int n);
|
||||||
void termpty_cell_codepoint_att_fill(Termpty *ty, int codepoint, Termatt att, Termcell *dst, int n);
|
void termpty_cell_codepoint_att_fill(Termpty *ty, Eina_Unicode codepoint, Termatt att, Termcell *dst, int n);
|
||||||
void termpty_screen_swap(Termpty *ty);
|
void termpty_screen_swap(Termpty *ty);
|
||||||
|
|
||||||
ssize_t termpty_line_length(const Termcell *cells, ssize_t nb_cells);
|
ssize_t termpty_line_length(const Termcell *cells, ssize_t nb_cells);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "utf8.h"
|
#include "utf8.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
codepoint_to_utf8(int g, char *txt)
|
codepoint_to_utf8(Eina_Unicode g, char *txt)
|
||||||
{
|
{
|
||||||
if (g < (1 << (7)))
|
if (g < (1 << (7)))
|
||||||
{ // 0xxxxxxx
|
{ // 0xxxxxxx
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef _UTF8_H__
|
#ifndef _UTF8_H__
|
||||||
#define _UTF8_H__ 1
|
#define _UTF8_H__ 1
|
||||||
|
#include <Eina.h>
|
||||||
int codepoint_to_utf8(int g, char *txt);
|
int codepoint_to_utf8(Eina_Unicode g, char *txt);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue