diff options
author | Preston Pan <preston@nullring.xyz> | 2024-01-10 21:50:03 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2024-01-10 21:50:03 -0800 |
commit | 8569af05d8111654f1839f1cf50175a32b0bc547 (patch) | |
tree | 4f1aa81f60a16d0ba1d8edfb0f04e945514b54c2 /src/builtins.c | |
parent | 4ada155b930cb5fb96493dff3a5af8809da3b214 (diff) |
add shit
Diffstat (limited to 'src/builtins.c')
-rw-r--r-- | src/builtins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/builtins.c b/src/builtins.c index eb4b521..5c42516 100644 --- a/src/builtins.c +++ b/src/builtins.c @@ -8,6 +8,7 @@ #include <string.h> #include <unistd.h> +/* macros taken from stackoverflow */ #define MAX 1000 #define JUSTDO(a) \ if (!(a)) { \ @@ -18,7 +19,6 @@ extern array_t *STACK; extern array_t *EVAL_STACK; extern ht_t *WORD_TABLE; -extern char *INBUF; extern parser_t *PARSER; extern ht_t *FLIT; @@ -28,6 +28,7 @@ extern ht_t *OBJ_TABLE; * (for quotes), split (split array, string, word into two), del (deleting * entries from quotes, strings, words) */ +/* taken from stackoverflow */ char *get_line(FILE *f) { int len = MAX; char buf[MAX], *e = NULL, *ret; |