diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-05-29 08:24:06 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-05-29 08:24:06 -0700 |
commit | 58e9e2e4aa8815f8fac1168650c0665700652bcf (patch) | |
tree | 712b0cb5f216814fb5b643d32e584db399dba55d /stream.c | |
parent | 44e756a8758035546f47dd02320395c527d26634 (diff) | |
download | txr-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.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |