From: Christian Heller Date: Mon, 26 Aug 2013 02:12:19 +0000 (+0200) Subject: Improved windows library header comments. X-Git-Tag: tce~1038 X-Git-Url: https://plomlompom.com/repos/index.html?a=commitdiff_plain;h=4ff506bdbf32df68e94b88974ee46731fe87a268;p=plomrogue Improved windows library header comments. --- diff --git a/src/windows.c b/src/windows.c index ca1c5d3..34e4769 100644 --- a/src/windows.c +++ b/src/windows.c @@ -546,7 +546,7 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir) extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir) { - if ( 0 == wmeta->active /* No shifting with <2 */ + if ( 0 == wmeta->active /* No shifting with < 2 */ || wmeta->_chain_start == wmeta->_chain_end /* windows visible or */ || (dir != 'f' && dir != 'b')) /* wrong direction char. */ { diff --git a/src/windows.h b/src/windows.h index 6dd7615..9650ba2 100644 --- a/src/windows.h +++ b/src/windows.h @@ -143,7 +143,7 @@ extern uint8_t resize_active_win(struct WinMeta * wmeta, struct yx_uint16 size); -/* Cycle active window selection forwards (set "dir"="n") or backwards (any +/* Cycle active window selection forwards ("dir" == "n") or backwards (any * other "dir"). Wrap around in the windows chain if start / end of it is met. * Does nothing if no window is active. */ @@ -151,9 +151,9 @@ extern void cycle_active_win(struct WinMeta * wmeta, char dir); -/* Move active window forwards (set dir="f") or backwards (set dir="b"). Wrap - * around in the window chain if start / end of it is met. Does nothing if no - * window is active. +/* Move active window forwards ("dir" == "f") or backwards ("dir" == "b"). + * Wrap around in the window chain if start / end of it is met. Does nothing if + * no window is active. */ extern uint8_t shift_active_win(struct WinMeta * wmeta, char dir);