From 7567f548a7de8ac4d81168c975a7b248b8734bb9 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 7 May 2022 10:22:47 -0700 Subject: Use hex constants for status flags. --- pw.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pw.c b/pw.c index 05fa412..6dd5d1e 100644 --- a/pw.c +++ b/pw.c @@ -68,17 +68,17 @@ #define workmax 4096 enum status_flags { - stat_dirty = 1, // display needs refresh - stat_eof = 2, // end of data reached - stat_susp = 4, // display refresh suspended - stat_htmode = 8, // head trigger mode - stat_ttmode = 16, // tail trigger mode - stat_trgrd = 32, // triggered flag - stat_grep = 64, // grep mode - stat_force = 128, // force refresh even if clean - stat_lino = 256, // render line numbers - stat_bkgnd = 512, // running in the background - stat_hlite = 1024 // running in the background + stat_dirty = 0x0001, // display needs refresh + stat_eof = 0x0002, // end of data reached + stat_susp = 0x0004, // display refresh suspended + stat_htmode = 0x0008, // head trigger mode + stat_ttmode = 0x0010, // tail trigger mode + stat_trgrd = 0x0020, // triggered flag + stat_grep = 0x0040, // grep mode + stat_force = 0x0080, // force refresh even if clean + stat_lino = 0x0100, // render line numbers + stat_bkgnd = 0x0200, // running in the background + stat_hlite = 0x0400, // running in the background }; typedef struct pwstate { -- cgit v1.2.3