aboutsummaryrefslogtreecommitdiff
path: root/spsh.h
blob: bf8a817264f1c070f7a2c18679fc41c1fa15c0e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#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

/* 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(char **environ);
void cmd(char *line, char **environ);

#endif