Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
tree_move: Use direction_t
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Oct 13, 2019
1 parent 0cd7250 commit e5c430e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions include/move.h
Expand Up @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions src/move.c
Expand Up @@ -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;

Expand Down

0 comments on commit e5c430e

Please sign in to comment.