rvcos/src/Deque.c
// Debug function to print the deque
Debug function to print the deque
Debug function to print the deque
void print(volatile Deque *d, uint32_t line) {
  if (d->head == NULL) {
    return;
  }
  struct Node *n = d->head;
  while (n != NULL) {
    writei(n->val, line++);
    n = n->next;
  }
}
void print ( volatile Deque * d , uint32_t line ) { if ( d -> head == NULL ) { return ; } struct Node * n = d -> head ; while ( n != NULL ) { writei ( n -> val , line ++ ) ; n = n -> next ; } }
Debug function to print the deque
Debug function to print the deque
// free(n); // RVCMemoryPoolDeallocate(0, n);