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 | f315b3d9182846807627732c6e0d7e55cc8c334f (patch) | |
tree | 712b0cb5f216814fb5b643d32e584db399dba55d | |
parent | ef1ec0e05557607b4540ac1bb8f9f672a6f633b0 (diff) | |
download | txr-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.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 |