aboutsummaryrefslogtreecommitdiff
path: root/uxd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-16 16:55:00 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-16 16:55:00 -0500
commite1e81a1fa579341a5052cc9b9275c30445fcc567 (patch)
tree3bcb8d9fbd67112939d6edea981032c56d5df170 /uxd.c
parent8ce66856f9e946a08593002672aa017a6e883e54 (diff)
downloaduxd-e1e81a1fa579341a5052cc9b9275c30445fcc567.tar.gz
fix prototype for next_normal_hilite(); commentary
Diffstat (limited to 'uxd.c')
-rw-r--r--uxd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/uxd.c b/uxd.c
index 6ea3897..183c422 100644
--- a/uxd.c
+++ b/uxd.c
@@ -46,8 +46,11 @@ extern int optind;
#define BUFSIZ 4096
#endif
+/* environment variables. */
#define NO_COLOR "NO_COLOR"
#define ENV_OPTS "UXD_OPTS"
+
+/* maximum number of arguments, including environment and argv. */
#define MAX_ARGS 64
/* ANSI colors */
@@ -68,7 +71,8 @@ int special_color = PURPLE;
/* toggles between 0 and 1 for each normal character */
int cur_normal_hilite = 0;
-/* highlight types */
+/* highlight types. HL_NORM_INV is only used for the hex bytes, not
+ the human-readable right column. */
#define HL_NORMAL 0
#define HL_NORM_INV 1
#define HL_SPECIAL 2
@@ -347,7 +351,7 @@ void print_line(void) {
dump_column = 0;
}
-void next_normal_hilite() {
+void next_normal_hilite(void) {
if(alternate_colors)
cur_normal_hilite = !cur_normal_hilite;
}