Browse Source

refactor: move #staticni into base.h and curses stuff into term_util.h

master
heck 2 years ago
parent
commit
d20abf75ed
  1. 2
      src/base.h
  2. 5
      src/term_util.h
  3. 9
      src/tui_main.c

2
src/base.h

@ -57,6 +57,8 @@
#define ORCA_ARRAY_COUNTOF(_array) (sizeof(_array) / sizeof(_array[0]))
#endif
#define staticni ORCA_NOINLINE static
#define ORCA_Y_MAX UINT16_MAX
#define ORCA_X_MAX UINT16_MAX

5
src/term_util.h

@ -13,6 +13,11 @@
#define CTRL_PLUS(c) ((c)&037)
#if NCURSES_VERSION_PATCH < 20081122
int _nc_has_mouse(void);
#define has_mouse _nc_has_mouse
#endif
struct oso;
typedef enum

9
src/tui_main.c

@ -14,21 +14,12 @@
#include "sokol_time.h"
#undef SOKOL_IMPL
#ifdef FEAT_PORTMIDI
#include <portmidi.h>
#endif
#if NCURSES_VERSION_PATCH < 20081122
int _nc_has_mouse(void);
#define has_mouse _nc_has_mouse
#endif
#define TIME_DEBUG 0
#if TIME_DEBUG
static int spin_track_timeout = 0;
#endif
#define staticni ORCA_NOINLINE static
staticni void usage(void)
{ // clang-format off

Loading…
Cancel
Save