diff options
| -rw-r--r-- | exec.c | 15 | ||||
| -rw-r--r-- | typeutils.h | 1 |
2 files changed, 16 insertions, 0 deletions
@@ -1,11 +1,14 @@ #include "lex.h" #include "parse.h" #include "exec.h" +#include "typeutils.h" #include <stdio.h> #include <stdlib.h> #include <string.h> + + void set_map_pair(KeyValMap* map, char* key, char* val) { for (int i = 0; i < map->count; i++) { char* key_i = get_from_KeyValMap(map, i)->key; @@ -155,6 +158,18 @@ void command_thing(Command command, ShellState* shstate) { } } + +DECLARE_VEC(int, IntVec) + + +typedef struct { + int stdin_fd; + int stdout_fd; +} CommandProcessInfo; + + + + void run_pipeline(Pipeline pl, ShellState* shstate) { for (int i = 0; i < pl.count; i++) { printf("\tCommand %d:\n", i); diff --git a/typeutils.h b/typeutils.h index 925857b..daf7c3d 100644 --- a/typeutils.h +++ b/typeutils.h @@ -75,6 +75,7 @@ DECLARE_VEC(char, String); + static void append_str_to_String(String* target, const char* src_str) { size_t len = strlen(src_str); |
