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-14 15:25:55 +0300
commit8f4f87eabec13330a2b3a974975053c1e4632a11 (patch)
tree58b0eae595fd62063287ca8fc727127166469e65 /queue.h
parent1ee0911f2def54f1b63d18b0924ac65c2db92f11 (diff)
downloadshell-8f4f87eabec13330a2b3a974975053c1e4632a11.tar.gz
shell-8f4f87eabec13330a2b3a974975053c1e4632a11.tar.bz2
shell-8f4f87eabec13330a2b3a974975053c1e4632a11.zip
Shell-V release
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);