summaryrefslogtreecommitdiff
path: root/redes
diff options
context:
space:
mode:
authorÁkos Kőrösi <korakos99@gmail.com>2026-05-21 10:20:50 +0200
committerÁkos Kőrösi <korakos99@gmail.com>2026-05-21 10:20:50 +0200
commit92e28ef4f3c1689976fae2d99ae64bbfffedf179 (patch)
tree46f464b8b21e2c5525241d9d5cb96e2985c592b3 /redes
parent2bc953a840f19af33f41f3fedb1c8a36bb0254b6 (diff)
remove diagnostic prints
Diffstat (limited to 'redes')
-rw-r--r--redes/exec.c3
-rw-r--r--redes/preproc.c6
2 files changed, 0 insertions, 9 deletions
diff --git a/redes/exec.c b/redes/exec.c
index bac3e52..756eee6 100644
--- a/redes/exec.c
+++ b/redes/exec.c
@@ -9,9 +9,6 @@
void execute_cmd(ExecutableCommand cmd, int* pgid) {
- for (int j = 0; cmd.args[j] != NULL; j++) {
- printf("\tArg %d: %s\n", j, cmd.args[j]);
- }
pid_t pid = fork();
if (pid == 0) {
diff --git a/redes/preproc.c b/redes/preproc.c
index 8528c5a..d50ccac 100644
--- a/redes/preproc.c
+++ b/redes/preproc.c
@@ -3,7 +3,6 @@
#include "syntax.h"
void split_str_on_space(char* str, StrVec* result) {
- printf("Splitting %s\n", str);
String buf = make_String(256);
for (int pos = 0; str[pos] != '\0'; pos++) {
if (str[pos] == ' ') {
@@ -16,7 +15,6 @@ void split_str_on_space(char* str, StrVec* result) {
if (buf.count > 0) {
char* buf_str = inner(&buf);
- printf("Fahh %s\n", buf_str);
push_to_StrVec(result, buf_str);
}
}
@@ -24,7 +22,6 @@ void split_str_on_space(char* str, StrVec* result) {
StrVec process_word(Word word) {
StrVec result = make_StrVec(256);
for (int i = 0; i < word.count; i++) {
- printf("Chunk %d\n", i);
Chunk chunk = *get_from_Word(&word, i);
switch (chunk.qmode) {
case SINGLE_Q:
@@ -60,7 +57,6 @@ Pipeline* process_token_sequence(TokenVec tokens, PipelineVec* pl_pool) {
);
tok_pos++
) {
- printf("Boo\n");
StrVec exp_word = make_StrVec(256);
switch (curr_tok.kind) {
case TOK_WORD:
@@ -86,10 +82,8 @@ Pipeline* process_token_sequence(TokenVec tokens, PipelineVec* pl_pool) {
default:
exit(69);
}
- printf("Argcount: %d\n", pl_cmd.args.count);
for (int k = 0; k < pl_cmd.args.count; k++) {
Arg arg = *get_from_ArgVec(&pl_cmd.args, k);
- printf("\t%s\n", arg.as.lit_str);
}
push_to_Pipeline(&pl, pl_cmd);
}