LuK1337 | 52a81d5 | 2025-07-08 18:07:20 -0400 | [diff] [blame] | 1 | /* generated by MKexpanded.sh */ |
| 2 | #define NEED_NCURSES_CH_T 1 |
| 3 | #include <curses.priv.h> |
| 4 | |
| 5 | #ifndef CUR |
| 6 | #define CUR SP_TERMTYPE |
| 7 | #endif |
| 8 | |
| 9 | #if NCURSES_EXPANDED |
| 10 | __attribute__((visibility ("default"))) void |
| 11 | _nc_toggle_attr_on (attr_t *S, attr_t at) |
| 12 | { |
| 13 | { if (((int)((((unsigned long)(at) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8))) > 0) { (*S) = ((*S) & ALL_BUT_COLOR) | (attr_t) (at); } else { (*S) |= (attr_t) (at); } ;}; |
| 14 | } |
| 15 | |
| 16 | __attribute__((visibility ("default"))) void |
| 17 | _nc_toggle_attr_off (attr_t *S, attr_t at) |
| 18 | { |
| 19 | { if (((int)((((unsigned long)(at) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8))) > 0) { (*S) &= ~(at|((chtype)((((1U) << 8) - 1U)) << ((0) + 8))); } else { (*S) &= ~(at); } ;}; |
| 20 | } |
| 21 | |
| 22 | __attribute__((visibility ("default"))) int |
| 23 | _nc_DelCharCost_sp (SCREEN *sp, int count) |
| 24 | { |
| 25 | return (((cur_term)->type2. Strings[105] != 0) ? sp->_dch_cost : (((cur_term)->type2. Strings[21] != 0) ? (sp->_dch1_cost * count) : 1000000)); |
| 26 | } |
| 27 | |
| 28 | __attribute__((visibility ("default"))) int |
| 29 | _nc_InsCharCost_sp (SCREEN *sp, int count) |
| 30 | { |
| 31 | return (((cur_term)->type2. Strings[108] != 0) ? sp->_ich_cost : (((cur_term)->type2. Strings[31] && (cur_term)->type2. Strings[42]) ? sp->_smir_cost + sp->_rmir_cost + (sp->_ip_cost * count) : (((cur_term)->type2. Strings[52] != 0) ? ((sp->_ich1_cost + sp->_ip_cost) * count) : 1000000))); |
| 32 | } |
| 33 | |
| 34 | __attribute__((visibility ("default"))) void |
| 35 | _nc_UpdateAttrs_sp (SCREEN *sp, const cchar_t * c) |
| 36 | { |
| 37 | if (!((((*((sp)->_current_attr))).attr) == (((*(c))).attr) && ((((*((sp)->_current_attr))).ext_color) ? (((*((sp)->_current_attr))).ext_color) : ((int)((((unsigned long)((((*((sp)->_current_attr))).attr)) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8)))) == ((((*(c))).ext_color) ? (((*(c))).ext_color) : ((int)((((unsigned long)((((*(c))).attr)) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8)))))) { do { int vid_pair = ((((*(c))).ext_color) ? (((*(c))).ext_color) : ((int)((((unsigned long)((((*(c))).attr)) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8)))); vid_puts_sp( sp, (((*(c))).attr), (short) ((((*(c))).ext_color) ? (((*(c))).ext_color) : ((int)((((unsigned long)((((*(c))).attr)) & ((chtype)((((1U) << 8) - 1U)) << ((0) + 8))) >> 8)))), &vid_pair, _nc_outch_sp); } while (0); }; |
| 38 | } |
| 39 | |
| 40 | #if NCURSES_SP_FUNCS |
| 41 | __attribute__((visibility ("default"))) int |
| 42 | _nc_DelCharCost (int count) |
| 43 | { |
| 44 | return _nc_DelCharCost_sp (SP, count); |
| 45 | } |
| 46 | |
| 47 | __attribute__((visibility ("default"))) int |
| 48 | _nc_InsCharCost (int count) |
| 49 | { |
| 50 | return _nc_InsCharCost_sp(SP, count); |
| 51 | } |
| 52 | |
| 53 | __attribute__((visibility ("default"))) void |
| 54 | _nc_UpdateAttrs (const cchar_t * c) |
| 55 | { |
| 56 | _nc_UpdateAttrs_sp(SP,c); |
| 57 | } |
| 58 | #endif |
| 59 | #else /* ! NCURSES_EXPANDED */ |
| 60 | NCURSES_EXPORT(void) _nc_expanded (void) { } |
| 61 | #endif /* NCURSES_EXPANDED */ |