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
commit58e9e2e4aa8815f8fac1168650c0665700652bcf (patch)
tree712b0cb5f216814fb5b643d32e584db399dba55d
parent44e756a8758035546f47dd02320395c527d26634 (diff)
downloadtxr-58e9e2e4aa8815f8fac1168650c0665700652bcf.tar.gz
txr-58e9e2e4aa8815f8fac1168650c0665700652bcf.tar.bz2
txr-58e9e2e4aa8815f8fac1168650c0665700652bcf.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