diff options
Diffstat (limited to 'P1/src')
-rw-r--r-- | P1/src/mapper.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <key, value> 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 |