GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libcurses/expanded.c Lines: 0 1 0.0 %
Date: 2017-11-07 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/* generated by MKexpanded.sh */
2
#include <curses.priv.h>
3
#include <term.h>
4
#if NCURSES_EXPANDED
5
 void _nc_toggle_attr_on (attr_t *S, attr_t at)
6
{
7
 { if (PAIR_NUMBER(at) > 0) { (*S) = ((*S) & ALL_BUT_COLOR) | (at); } else { (*S) |= (at); } ;};
8
}
9
 void _nc_toggle_attr_off (attr_t *S, attr_t at)
10
{
11
 { if (PAIR_NUMBER(at) > 0) { (*S) &= ~(at|((((1U) << 8) - 1U) << ((0) + 8))); } else { (*S) &= ~(at); } ;};
12
}
13
 int _nc_DelCharCost (int count)
14
{
15
 return ((cur_term->type. Strings[105] != 0) ? SP->_dch_cost : ((cur_term->type. Strings[21] != 0) ? (SP->_dch1_cost * count) : 1000000));
16
}
17
 int _nc_InsCharCost (int count)
18
{
19
 return ((cur_term->type. Strings[108] != 0) ? SP->_ich_cost : ((cur_term->type. Strings[31] && cur_term->type. Strings[42]) ? SP->_smir_cost + SP->_rmir_cost + (SP->_ip_cost * count) : ((cur_term->type. Strings[52] != 0) ? ((SP->_ich1_cost + SP->_ip_cost) * count) : 1000000)));
20
}
21
 void _nc_UpdateAttrs (cchar_t c)
22
{
23
 if (!((((*((SP)->_current_attr))).attr) == ((c).attr))) vidattr(((c).attr));;
24
}
25
#else /* ! NCURSES_EXPANDED */
26
NCURSES_EXPORT(void) _nc_expanded (void) { }
27
#endif /* NCURSES_EXPANDED */