Commit Diff
Diff:
bd4a08a74023593128f1f6fac9e0f4a093a8441f
cf8fcf6437e729c6de0cd278af49a70535cd81be
Commit:
cf8fcf6437e729c6de0cd278af49a70535cd81be
Tree:
e489347cc04dcbcf9b087c9c044ec9907192eab1
Author:
Omar Polo <op@omarpolo.com>
Date:
Mon Nov 7 22:56:35 2022 UTC
Message:
make clear to which struct every L_* flag is supposed to belong to
commit - bd4a08a74023593128f1f6fac9e0f4a093a8441f
commit + cf8fcf6437e729c6de0cd278af49a70535cd81be
blob - f8af6a1ebae1f826a846270292e2c6071ea7e54c
blob + 58d6c642693c427083581c59d3ad6b38bcc497d1
--- include/telescope.h
+++ include/telescope.h
@@ -96,18 +96,14 @@ enum line_type {
/* misc ui */
LINE_FRINGE,
};
-
-/* for lines: mark as hidden */
-#define L_HIDDEN 1
-
-/* for vlines: mark as continuation */
-#define L_CONTINUATION 2
struct line {
enum line_type type;
char *line;
char *alt;
void *data;
+
+#define L_HIDDEN 0x1
int flags;
TAILQ_ENTRY(line) lines;
};
@@ -117,6 +113,8 @@ struct vline {
size_t from;
size_t len;
size_t cplen;
+
+#define L_CONTINUATION 0x2
int flags;
TAILQ_ENTRY(vline) vlines;
};
Omar Polo