aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorZapolsky Anton <wc3ft2@gmail.com>2021-12-05 00:24:55 +0300
committerGitHub <noreply@github.com>2021-12-04 16:24:55 -0500
commit2dae860de3494f97c9477af9282fe0131ff5c4cb (patch)
tree85bd76fc7f54cf0a6e55435ad8e154f50e2b6e5a /src/Module.zig
parent282e2c714fe36480ac0a4bef38d6209737819229 (diff)
downloadzig-2dae860de3494f97c9477af9282fe0131ff5c4cb.tar.gz
zig-2dae860de3494f97c9477af9282fe0131ff5c4cb.zip
Added an explicit type for the termios constants (#10266)
Adds the `tcflag_t` type to the termios constants. This is made to allow bitwise operations on the termios constants without an integer cast, e.g.: ```zig var raw = try std.os.tcgetattr(std.os.STDIN_FILENO); raw.lflag &= std.os.linux.ECHO | std.os.linux.ICANON; ``` instead of ```zig var raw = try std.os.tcgetattr(std.os.STDIN_FILENO); raw.lflag &= ~@intCast(u32, std.os.linux.ECHO | std.os.linux.ICANON); ``` Contributes to #10181
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions