From e5c430e4194910cacc0d50e66b599b7187a94343 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Fri, 14 Sep 2018 19:17:47 +0300 Subject: [PATCH] tree_move: Use direction_t --- include/move.h | 5 ++--- src/move.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/move.h b/include/move.h index df644a6b..96a2cef7 100644 --- a/include/move.h +++ b/include/move.h @@ -12,11 +12,10 @@ #include /** - * 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; diff --git a/src/move.c b/src/move.c index e28a91c6..12277fce 100644 --- a/src/move.c +++ b/src/move.c @@ -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;