void mt_output(MtQueue* sections) { // Initialize the output MTO.current_line = NULL; MTO.line_buffer = mt_queue_new(); // Iterate through every section mt_queue_dequeue_each_val(sections, { mt_output_section(val); });
void mt_output(MtQueue* sections) { // Initialize the output mt_output_init(); // Iterate through every section while (sections->size > 0) { // Generate tab for a single section MtQueue* section = mt_queue_dequeue(sections); mt_output_section(section); } // Print the generated output mt_output_print(); mt_output_shutdown(); }