aboutsummaryrefslogtreecommitdiffstats
path: root/pw.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-07 10:22:47 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-07 10:22:47 -0700
commit7567f548a7de8ac4d81168c975a7b248b8734bb9 (patch)
treee4a263bfb85265277fb356d73d051d4596a65f57 /pw.c
parent841546dae8b8c59928b36a6370c1ec3c8221a1ab (diff)
downloadpw-7567f548a7de8ac4d81168c975a7b248b8734bb9.tar.gz
pw-7567f548a7de8ac4d81168c975a7b248b8734bb9.tar.bz2
pw-7567f548a7de8ac4d81168c975a7b248b8734bb9.zip
Use hex constants for status flags.
Diffstat (limited to 'pw.c')
-rw-r--r--pw.c22
1 files 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 {