remove several obsolete C() and M() macros

The ones moved from cmd.c to global.h suffice.
This commit is contained in:
PatR
2021-03-10 13:50:44 -08:00
parent fd8529b12a
commit 015380fecf
3 changed files with 0 additions and 21 deletions

View File

@@ -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()

View File

@@ -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 */

View File

@@ -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);