aboutsummaryrefslogtreecommitdiff
path: root/spsh.h
diff options
context:
space:
mode:
Diffstat (limited to 'spsh.h')
-rw-r--r--spsh.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/spsh.h b/spsh.h
new file mode 100644
index 0000000..8318e0f
--- /dev/null
+++ b/spsh.h
@@ -0,0 +1,34 @@
+#ifndef SPS_H
+#define SPS_H
+
+/* Libraries I need */
+#include <readline/history.h>
+#include <readline/readline.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <unistd.h>
+
+/* A welcome and a warning */
+#define WELCOME "Welcome to spsh: the shitposting shell"
+#define WARNING "(pretty much nothing works, just fyi)"
+
+/* Maximum number of arguments and environment variables */
+#define MAX_ARGS 64
+#define MAX_ENVS 64
+
+/* The prompt to use */
+#define PROMPT "spsh$ "
+
+/* The token used to separate arguments */
+#define ARG_DELIM " "
+
+/* Function prototypes to soothe separate files */
+void banner();
+void loop();
+void cmd(char *line);
+
+#endif
+