|
Last change
on this file since 3830 was 3073, checked in by bird, 19 years ago |
|
bootstrap config of ncurses.
|
-
Property svn:keywords
set to
Id
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 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|((((1UL) << 8) - 1UL) << ((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 (chtype c)
|
|---|
| 22 | {
|
|---|
| 23 | if (!((((*((SP)->_current_attr))) & (chtype)((~(1UL - 1UL)) << ((0) + 8))) == ((c) & (chtype)((~(1UL - 1UL)) << ((0) + 8))))) vidattr(((c) & (chtype)((~(1UL - 1UL)) << ((0) + 8))));;
|
|---|
| 24 | }
|
|---|
| 25 | #else /* ! NCURSES_EXPANDED */
|
|---|
| 26 | NCURSES_EXPORT(void) _nc_expanded (void) { }
|
|---|
| 27 | #endif /* NCURSES_EXPANDED */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.