tree_move: Use direction_t
This commit is contained in:
parent
0cd7250f41
commit
e5c430e419
|
@ -12,11 +12,10 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
|
* Moves the given container in the given direction
|
||||||
* TOK_UP, TOK_DOWN from cmdparse.l)
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void tree_move(Con *con, int direction);
|
void tree_move(Con *con, direction_t direction);
|
||||||
|
|
||||||
typedef enum { BEFORE,
|
typedef enum { BEFORE,
|
||||||
AFTER } position_t;
|
AFTER } position_t;
|
||||||
|
|
|
@ -243,11 +243,10 @@ static void move_to_output_directed(Con *con, direction_t direction) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Moves the given container in the given direction (D_LEFT, D_RIGHT,
|
* Moves the given container in the given direction
|
||||||
* D_UP, D_DOWN).
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void tree_move(Con *con, int direction) {
|
void tree_move(Con *con, direction_t direction) {
|
||||||
position_t position;
|
position_t position;
|
||||||
Con *target;
|
Con *target;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue