Remove print statements used for debugging
This commit is contained in:
parent
6238291ab3
commit
89efb81f3e
2 changed files with 0 additions and 5 deletions
|
@ -12,8 +12,6 @@ void build_label_table(char label_tokens[][MAX_TOKEN_SIZE], shash_hashtable_t *l
|
|||
{
|
||||
if(label_tokens[token_index][0] == '$')
|
||||
{
|
||||
printf("Found label: %s\n", label_tokens[token_index]+1);
|
||||
|
||||
//Store the adress we are at on the heap, as the hashtable only stores pointers to data
|
||||
unsigned int *heap_pointer_to_adress = malloc(sizeof(instruction_index));
|
||||
*heap_pointer_to_adress = instruction_index;
|
||||
|
|
|
@ -143,7 +143,6 @@ int main(int argc, char **argv)
|
|||
shash_hashtable_t label_table;
|
||||
shash_init_hashtable(&label_table, LABEL_TABLE_SIZE);
|
||||
build_label_table((char (*)[MAX_TOKEN_SIZE]) label_tokens.buffer, &label_table);
|
||||
printf("Built label table\n");
|
||||
|
||||
|
||||
dynamic_buffer_t no_label_definition_tokens;
|
||||
|
@ -155,7 +154,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
remove_label_definition_tokens((char (*)[MAX_TOKEN_SIZE]) label_tokens.buffer, &no_label_definition_tokens);
|
||||
printf("Removed label defintions\n");
|
||||
free(label_tokens.buffer);
|
||||
|
||||
// Check if the EIPA Assembly contains errors with the no_label_definition_tokens array
|
||||
|
@ -171,7 +169,6 @@ int main(int argc, char **argv)
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
replace_labels_with_adresses((char (*)[MAX_TOKEN_SIZE]) no_label_definition_tokens.buffer, &tokens, label_table, instruction_informations);
|
||||
printf("Removed labels\n");
|
||||
free(no_label_definition_tokens.buffer);
|
||||
|
||||
// Generate the target code
|
||||
|
|
Loading…
Reference in a new issue