Get rid of bits from CellAttrs

This commit is contained in:
Kovid Goyal
2021-07-31 12:41:05 +05:30
parent b260a61c8f
commit ef76c075e0
8 changed files with 54 additions and 54 deletions

View File

@@ -295,7 +295,7 @@ PyInit_fast_data_types(void) {
if (!init_fonts(m)) return NULL;
CellAttrs a;
#define s(name, attr) { a.val = 0; a.bits.attr = 1; PyModule_AddIntConstant(m, #name, shift_to_first_set_bit(a)); }
#define s(name, attr) { a.val = 0; a.attr = 1; PyModule_AddIntConstant(m, #name, shift_to_first_set_bit(a)); }
s(BOLD, bold); s(ITALIC, italic); s(REVERSE, reverse); s(MARK, mark);
s(STRIKETHROUGH, strike); s(DIM, dim); s(DECORATION, decoration);
#undef s