diff options
| author | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-17 11:13:37 +0200 |
|---|---|---|
| committer | Ákos Kőrösi <korakos99@gmail.com> | 2026-05-17 11:13:37 +0200 |
| commit | 7a6c0d5a2b255e8ba72c93989a9cb70b746e9f68 (patch) | |
| tree | aa15e9f2faef049d3e588fa6f5848f40edf6ca2e /main.c | |
| parent | e3c2376caeb23c617dd59317a2dd80c507089b90 (diff) | |
delete debug printer
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -7,27 +7,6 @@ #include "parse.h" #include "exec.h" -void uglyprint_pl(Pipeline pl) { - for (int i = 0; i < pl.count; i++) { - printf("%d\n", i); - TokenVec toks = (*get_from_Pipeline(&pl, i)).cmd.args; - for (int j = 0; j < toks.count; j++) { - Token tok = *get_from_TokenVec(&toks, j); - if (tok.kind != TOK_WORD) { - printf(" [NON-WORD] "); - continue; - } - Word word = tok.as.word; - for (int k = 0; k < word.count; k++) { - Chunk chunk = *get_from_Word(&word, k); - if (chunk.kind == LITERAL) { - printf("%s", chunk.as.literal_str); - } - } - } - } -} - int main() { char* line; |
