move cell_simple_p() for debug builds

pull/937/head
nick black 4 years ago
parent 13eb63ada9
commit 9c6077a44c
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -253,6 +253,12 @@ cell_egc_idx(const cell* c){
return c->gcluster & 0x00fffffflu;
}
// Is the cell simple (a UTF8-encoded EGC of four bytes or fewer)?
static inline bool
cell_simple_p(const cell* c){
return (c->gcluster >> 24u) != 0x01;
}
// only applies to complex cells, do not use on simple cells
__attribute__ ((__returns_nonnull__)) static inline const char*
egcpool_extended_gcluster(const egcpool* pool, const cell* c) {

@ -318,12 +318,6 @@ void init_lang(struct notcurses* nc); // nc may be NULL, only used for logging
int terminfostr(char** gseq, const char* name);
int interrogate_terminfo(tinfo* ti);
// Is the cell simple (a UTF8-encoded EGC of four bytes or fewer)?
static inline bool
cell_simple_p(const cell* c){
return (c->gcluster >> 24u) != 0x01;
}
// Search the provided multibyte (UTF8) string 's' for the provided unicode
// codepoint 'cp'. If found, return the column offset of the EGC in which the
// codepoint appears in 'col', and the byte offset as the return value. If not

Loading…
Cancel
Save