remove several obsolete C() and M() macros
The ones moved from cmd.c to global.h suffice.
This commit is contained in:
@@ -899,10 +899,6 @@ NetHackQtMainWindow::NetHackQtMainWindow(NetHackQtKeyBuffer& ks) :
|
||||
}
|
||||
|
||||
#ifdef CTRL_V_HACK
|
||||
#ifndef C
|
||||
#define C(c) (0x1f & (c))
|
||||
#endif
|
||||
|
||||
// called when ^V is typed while the main window has keyboard focus;
|
||||
// all other control characters go through NetHackQtBind::notify()
|
||||
void NetHackQtMainWindow::CtrlV()
|
||||
|
||||
@@ -21,19 +21,6 @@ static int curs_y = -1;
|
||||
|
||||
static int parse_escape_sequence(void);
|
||||
|
||||
/* Macros for Control and Alt keys */
|
||||
|
||||
#ifndef M
|
||||
# ifndef NHSTDC
|
||||
# define M(c) (0x80 | (c))
|
||||
# else
|
||||
# define M(c) ((c) - 128)
|
||||
# endif/* NHSTDC */
|
||||
#endif
|
||||
#ifndef C
|
||||
# define C(c) (0x1f & (c))
|
||||
#endif
|
||||
|
||||
|
||||
/* Read a character of input from the user */
|
||||
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
#include "tcap.h"
|
||||
#include "wintty.h"
|
||||
|
||||
#ifndef C /* this matches src/cmd.c */
|
||||
#define C(c) (0x1f & (c))
|
||||
#endif
|
||||
|
||||
static void redotoplin(const char *);
|
||||
static void topl_putsym(char);
|
||||
static void removetopl(int);
|
||||
|
||||
Reference in New Issue
Block a user