Skip to content

Commit

Permalink
No particular reason to make these non-static...
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Oct 30, 2024
1 parent 6d11b3b commit 328b937
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/libtermio/linenoise.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1151,11 +1151,12 @@ inline int win32_write(int fd, const void *buffer, unsigned int count) {
static const char *unsupported_term[] = {"dumb", "cons25", "emacs", NULL};

#ifndef _WIN32
struct termios orig_termios; /* In order to restore at exit.*/
static struct termios orig_termios; /* In order to restore at exit.*/
#endif
bool rawmode = false; /* For atexit() function to check if restore is needed*/
bool mlmode = false; /* Multi line mode. Default is single line. */
bool atexit_registered = false; /* Register atexit just 1 time. */
static bool rawmode =
false; /* For atexit() function to check if restore is needed*/
static bool mlmode = false; /* Multi line mode. Default is single line. */
static bool atexit_registered = false; /* Register atexit just 1 time. */

enum KEY_ACTION {
KEY_NULL = 0, /* NULL */
Expand Down

0 comments on commit 328b937

Please sign in to comment.