From 66b9574b165be62e76c7397cf0eaa8d229d42675 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 16 Apr 2024 15:08:44 +0200 Subject: Update code style * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines --- src/bindings/termcap.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/bindings/termcap.nim') diff --git a/src/bindings/termcap.nim b/src/bindings/termcap.nim index 4cc3241b..6d3d0e37 100644 --- a/src/bindings/termcap.nim +++ b/src/bindings/termcap.nim @@ -20,12 +20,13 @@ when termlib != "": {.passl: termlib.} {.push importc, cdecl.} const termcap_found* = true - proc tgetent*(bp: cstring, name: cstring): cint + proc tgetent*(bp: cstring; name: cstring): cint proc tgetnum*(id: cstring): cint proc tgetflag*(id: cstring): cint - proc tgetstr*(id: cstring, area: ptr cstring): cstring - proc tgoto*(cap: cstring, x, y: cint): cstring - proc tputs*(str: cstring, len: cint, putc: proc(c: char): cint {.cdecl.}): cint + proc tgetstr*(id: cstring; area: ptr cstring): cstring + proc tgoto*(cap: cstring; x, y: cint): cstring + proc tputs*(str: cstring; len: cint; putc: proc(c: char): cint {.cdecl.}): + cint {.pop.} else: const termcap_found* = false -- cgit 1.4.1-2-gfad0