From 6fc7d57e54b0475be77196afcf22e4e055fba8f7 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sat, 3 Oct 2020 17:07:40 -0500 Subject: Fix mistakes by making more --- P1/src/mapper.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'P1/src/mapper.c') diff --git a/P1/src/mapper.c b/P1/src/mapper.c index a70f352..98c8ff7 100644 --- a/P1/src/mapper.c +++ b/P1/src/mapper.c @@ -78,12 +78,17 @@ while (root != NULL) { // emit the into intermediate DS // eats the data into the DS void emit(char *key, char *value) { - // Traverse the value list + //Go through intermediateDS, comparing key in list to *key. + //If it exists, somehow add to the value list another "1" to the existing list. + //If it never does (use string compare thing), add it to the end along with the "1". + /* THIS IS NOT CURRENTLY IMPLEMENTED PROPERLY BUT SHOULD BE ABOUT RIGHT + CONCEPTUALLY. intermediateDS *tempNode = NULL; while (root != NULL) { tempNode = root; root = root -> next; } + */ } // map function -- cgit v1.2.3