File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1616 - name : configure
1717 run : wget https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt
1818 - name : build c
19- run : make run
19+ run : cc -Wall -Wextra -ggdb -pedantic -o bit ./main.c && ./bit ./t8.shakespeare.txt
20+
2021 - name : build c++
21- run : make runCpp
22+ run : g++ -Wall -Wextra -ggdb -pedantic -o hashcpp ./hash.cpp && ./hashcpp ./t8.shakespeare.txt
23+
2224
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ int main(int argc, char **argv) {
7878 if (!content )
7979 return 1 ;
8080 void * table = malloc (TABLE_SIZE * sizeof (token_t ));
81- void * naive_table = malloc (TABLE_SIZE * sizeof (token_t ));
81+ // void *naive_table = malloc(TABLE_SIZE * sizeof(token_t));
8282 hash_table hash_table_impl = {
8383 .table = table ,
8484 .capacity = TABLE_SIZE ,
You can’t perform that action at this time.
0 commit comments