diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-02 14:40:03 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-03-02 14:40:03 +1300 |
commit | 022b29d453ce5a0c12d606d3061b96cca83b8e56 (patch) | |
tree | 4024ea3d84cc49608d950d4ce5611ec241410687 | |
parent | Add a README (diff) | |
download | spsh-022b29d453ce5a0c12d606d3061b96cca83b8e56.tar.gz spsh-022b29d453ce5a0c12d606d3061b96cca83b8e56.zip |
Comments for header file
-rw-r--r-- | sps.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |