aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-03-02 14:40:03 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-03-02 14:40:03 +1300
commit022b29d453ce5a0c12d606d3061b96cca83b8e56 (patch)
tree4024ea3d84cc49608d950d4ce5611ec241410687
parentAdd a README (diff)
downloadspsh-022b29d453ce5a0c12d606d3061b96cca83b8e56.tar.gz
spsh-022b29d453ce5a0c12d606d3061b96cca83b8e56.zip
Comments for header file
-rw-r--r--sps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sps.h b/sps.h
index 3f70744..afbfec6 100644
--- a/sps.h
+++ b/sps.h
@@ -1,6 +1,7 @@
#ifndef SPS_H
#define SPS_H
+/* Libraries I need */
#include <readline/history.h>
#include <readline/readline.h>
#include <stdio.h>
@@ -10,16 +11,21 @@
#include <sys/wait.h>
#include <unistd.h>
+/* A welcome and a warning */
#define WELCOME "Welcome to sps, 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 "sps$ "
+/* The token used to separate arguments */
#define ARG_DELIM " "
+/* Function prototypes to soothe separate files */
void banner();
void loop();
void cmd(char *line);