blob: 03e0cfda267acc6a9221ea4bd9782eb0dd126121 [file] [log] [blame]
LuK133752a81d52025-07-08 18:07:20 -04001/* 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 */
60NCURSES_EXPORT(void) _nc_expanded (void) { }
61#endif /* NCURSES_EXPANDED */