tree_move: Use direction_t

next
Orestis Floros 2018-09-14 19:17:47 +03:00 committed by Orestis Floros
parent 0cd7250f41
commit e5c430e419
No known key found for this signature in database
GPG Key ID: A09DBD7D3222C1C3
2 changed files with 4 additions and 6 deletions

View File

@ -12,11 +12,10 @@
#include <config.h>
/**
* Moves the given container in the given direction (TOK_LEFT, TOK_RIGHT,
* TOK_UP, TOK_DOWN from cmdparse.l)
* Moves the given container in the given direction
*
*/
void tree_move(Con *con, int direction);
void tree_move(Con *con, direction_t direction);
typedef enum { BEFORE,
AFTER } position_t;

View File

@ -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,
* D_UP, D_DOWN).
* Moves the given container in the given direction
*
*/
void tree_move(Con *con, int direction) {
void tree_move(Con *con, direction_t direction) {
position_t position;
Con *target;