shithub: orca

Download patch

ref: 474098abb694c6bd3806d0b98270c40f601bf507
parent: fbcf24f968ee060e2d7b71f65d8005b275643ca5
author: cancel <cancel@cancel.fm>
date: Sun Nov 8 22:32:48 EST 2020

Cleanup

--- a/term_util.c
+++ b/term_util.c
@@ -3,8 +3,6 @@
 #include <ctype.h>
 #include <form.h>
 
-ORCA_NOINLINE static void qmenu_reprint(Qmenu *qm);
-
 void term_util_init_colors() {
   if (has_colors()) {
     // Enable color
@@ -61,6 +59,10 @@
   int id;
 };
 
+void qmenu_free(Qmenu *qm);
+void qform_free(Qform *qf);
+ORCA_NOINLINE static void qmenu_reprint(Qmenu *qm);
+
 Qnav_stack qnav_stack;
 
 void qnav_init() { qnav_stack = (Qnav_stack){.blocks = {0}}; }
@@ -127,9 +129,6 @@
   *qb = (Qblock){0};
   qb->tag = tag;
 }
-
-void qmenu_free(Qmenu *qm);
-void qform_free(Qform *qf);
 
 void qnav_free_block(Qblock *qb) {
   switch (qb->tag) {
--