Big commit: Cleaned formatting of Pish, added CommandStruct and Common.h for it

This commit is contained in:
2022-10-25 01:09:00 -05:00
parent c21e2fb7f6
commit 52aeeb02e5
5 changed files with 69 additions and 47 deletions
+9
View File
@@ -0,0 +1,9 @@
#ifndef COMMON_H
#define COMMON_H
typedef struct CommandStruct {
char** argv;
int argc;
} CommandStruct;
#endif
+2
View File
@@ -1,6 +1,8 @@
#ifndef INTEGRATED_H
#define INTEGRATED_H
#include "Common.h"
void IntegratedCheck(char* command);
#endif
+5 -2
View File
@@ -1,8 +1,11 @@
#ifndef PISH_H
#define PISH_H
char* getcmd(void);
void exec(char* command);
#include "Common.h"
void Pish(void);
void Execute(char* command);
char* GetInput(void);
void ParseInput(char* inputString, CommandStruct command);
#endif