Display 5

This commit is contained in:
Jonathan Turner 2023-11-29 22:22:10 -05:00
parent 63920789f4
commit 74a2e6ad67

View File

@ -271,19 +271,19 @@ void begin_output_example() {
umem_head = add_node( umem_head, 0x23000, 0x1FFF, true, 5); umem_head = add_node( umem_head, 0x23000, 0x1FFF, true, 5);
umem_head = add_node( umem_head, 0x25000, 0x3FFF, true, 6); umem_head = add_node( umem_head, 0x25000, 0x3FFF, true, 6);
print_memory(umem_head, holes_head); print_memory(umem_head, holes_head);
print_list(umem_head, false);
print_list(get_holes(umem_head), false);
// Display 5
temp = find_id(umem_head, 4);
node* previous = temp->previous;
previous->next = temp->next;
free_node(temp);
print_memory(umem_head, holes_head);
// print_list(umem_head, false); // print_list(umem_head, false);
// print_list(get_holes(umem_head), false); // print_list(get_holes(umem_head), false);
//
// // Display 5 // Display 6
// temp = find_id(umem_head, 4);
// node* previous = temp->previous;
// previous->next = temp->next;
// free_node(temp);
// print_memory(umem_head, holes_head);
// // print_list(umem_head, false);
// // print_list(get_holes(umem_head), false);
//
// // Display 6
// while (umem_head != NULL) { // while (umem_head != NULL) {
// temp = umem_head->next; // temp = umem_head->next;
// free_node(umem_head); // free_node(umem_head);