back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/queue.h
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-06-14 15:15:41 +0300
committerscratko <m@scratko.xyz>2024-06-23 23:11:18 +0300
commitff38bddd4253b5adf08a84df34bfae32c8ae988d (patch)
tree69e39bf16cb93af3b9a592cf0fa3c489b13db499 /queue.h
parent1ee0911f2def54f1b63d18b0924ac65c2db92f11 (diff)
downloadshell-ff38bddd4253b5adf08a84df34bfae32c8ae988d.tar.gz
shell-ff38bddd4253b5adf08a84df34bfae32c8ae988d.tar.bz2
shell-ff38bddd4253b5adf08a84df34bfae32c8ae988d.zip
Shell-V releaseshell-V
Added pipeline. Formatting shell.c (created lexical_analysys.c). Error codes. Some functions of queue.c are created by preprocessor.
Diffstat (limited to 'queue.h')
-rw-r--r--queue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/queue.h b/queue.h
index 325706e..c11ffd8 100644
--- a/queue.h
+++ b/queue.h
@@ -59,7 +59,10 @@ int w_queue_get_word_count(const struct w_queue *q);
void w_queue_copy_words_to_args(const struct w_queue *q, char **cmdline);
void c_queue_init(struct c_queue *q);
+
+/* used in shell.c and lexical_analysis.c */
void c_queue_push(struct c_queue *q, char **cmdline);
+
char** c_queue_pop(struct c_queue *q);
void c_queue_clear(struct c_queue *q);
int c_queue_is_empty(struct c_queue *q);