mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Accuracy use of arguments of dlg_move and widget_move macros.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
81fde30d2a
commit
04883518fd
@ -24,7 +24,7 @@
|
|||||||
#define B_HELP 3
|
#define B_HELP 3
|
||||||
#define B_USER 100
|
#define B_USER 100
|
||||||
|
|
||||||
#define dlg_move(h, _y, _x) tty_gotoyx (((Dlg_head *)(h))->y + _y, ((Dlg_head *)(h))->x + _x)
|
#define dlg_move(h, _y, _x) tty_gotoyx (((Dlg_head *)(h))->y + (_y), ((Dlg_head *)(h))->x + (_x))
|
||||||
|
|
||||||
/*** enums ***************************************************************************************/
|
/*** enums ***************************************************************************************/
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
/*** typedefs(not structures) and defined constants **********************************************/
|
/*** typedefs(not structures) and defined constants **********************************************/
|
||||||
|
|
||||||
#define widget_move(w, _y, _x) tty_gotoyx (((Widget *)(w))->y + _y, ((Widget *)(w))->x + _x)
|
#define widget_move(w, _y, _x) tty_gotoyx (((Widget *)(w))->y + (_y), ((Widget *)(w))->x + (_x))
|
||||||
/* Sets/clear the specified flag in the options field */
|
/* Sets/clear the specified flag in the options field */
|
||||||
#define widget_option(w,f,i) \
|
#define widget_option(w,f,i) \
|
||||||
w.options = ((i) ? ((w).options | (f)) : ((w).options & (~(f))))
|
w.options = ((i) ? ((w).options | (f)) : ((w).options & (~(f))))
|
||||||
|
Loading…
Reference in New Issue
Block a user