summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-05-29 08:24:06 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-05-29 08:24:06 -0700
commitf315b3d9182846807627732c6e0d7e55cc8c334f (patch)
tree712b0cb5f216814fb5b643d32e584db399dba55d
parentef1ec0e05557607b4540ac1bb8f9f672a6f633b0 (diff)
downloadtxr-f315b3d9182846807627732c6e0d7e55cc8c334f.tar.gz
txr-f315b3d9182846807627732c6e0d7e55cc8c334f.tar.bz2
txr-f315b3d9182846807627732c6e0d7e55cc8c334f.zip
Turn flags in struct stdio_handle into bitfields.
* stream.c (struct stdio_handle): Members is_rotated, is_real_time and is_byte_oriented become bitfields.
-rw-r--r--stream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream.c b/stream.c
index 08bc8c90..535396ea 100644
--- a/stream.c
+++ b/stream.c
@@ -371,9 +371,9 @@ struct stdio_handle {
int pid;
#endif
val mode; /* used by tail */
- unsigned is_rotated; /* used by tail */
- unsigned is_real_time;
- unsigned is_byte_oriented;
+ unsigned is_rotated : 8; /* used by tail */
+ unsigned is_real_time : 8;
+ unsigned is_byte_oriented : 8;
#if CONFIG_STDIO_STRICT
enum stdio_op last_op;
#endif