diff options
author | Charles Blake <cb@cblake.net> | 2016-09-01 08:33:39 -0400 |
---|---|---|
committer | Charles Blake <cb@cblake.net> | 2016-09-01 08:33:39 -0400 |
commit | 8df2078f08ad0abf3f50632ae783a997eb64b3be (patch) | |
tree | 95ed0072ecbdf8d91a60a458628b1f69226d9e4d /lib/posix/termios.nim | |
parent | 5db1de87b1e6c1163ebca91852bd55e93f0f09ed (diff) | |
download | Nim-8df2078f08ad0abf3f50632ae783a997eb64b3be.tar.gz |
Change type name to be more NEP-1-ish as per Araq request.
Diffstat (limited to 'lib/posix/termios.nim')
-rw-r--r-- | lib/posix/termios.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/posix/termios.nim b/lib/posix/termios.nim index 88c3edf01..f8de740d7 100644 --- a/lib/posix/termios.nim +++ b/lib/posix/termios.nim @@ -263,9 +263,9 @@ proc tcGetSid*(fd: cint): Pid {.importc: "tcgetsid", header: "<termios.h>".} # Window size ioctl. Should work on on any Unix that xterm has been ported to. var TIOCGWINSZ*{.importc, header: "<sys/ioctl.h>".}: culong -type ioctl_winsize* {.importc: "struct winsize", header: "<termios.h>", +type IOctl_WinSize* {.importc: "struct winsize", header: "<termios.h>", final, pure.} = object ws_row*, ws_col*, ws_xpixel*, ws_ypixel*: cushort -proc ioctl*(fd: cint, request: culong, reply: ptr ioctl_winsize): int {. +proc ioctl*(fd: cint, request: culong, reply: ptr IOctl_WinSize): int {. importc: "ioctl", header: "<stdio.h>", varargs.} |