From d8f2c10b7108fff6b7e437291093a1cadc15ab9f Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 6 May 2023 00:39:44 -0400 Subject: refactor --- src/command.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h index cca2877..87cc749 100644 --- a/src/command.h +++ b/src/command.h @@ -1,32 +1,17 @@ #ifndef COMMAND_H #define COMMAND_H -#include "util/shared.h" -#include "util/stack.h" -#include "util/regex.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - #define ARGUMENTS int argc, char** argv #define NEXT_ARGS argc - 1, &argv[1] #define COMMAND(name) int name (ARGUMENTS) -#define COMMAND_EMPTY(name) int name (void) COMMAND(dd); COMMAND(cat); COMMAND(yes); COMMAND(echo); COMMAND(print); -COMMAND_EMPTY(groups); -COMMAND_EMPTY(user_id); +COMMAND(groups); +COMMAND(user_id); COMMAND(ls); COMMAND(tail); COMMAND(head); -- cgit v1.2.3-freya