Macro cleanup: Miscellaneous

These were found with -Wunused-macros. There are many more macros which
triggered that warning, but they were primarily part of larger sets of
macros so leave them alone.
This commit is contained in:
Michael Reed 2015-01-14 15:19:33 -05:00
parent cd8e91b87e
commit d2e7cce560
3 changed files with 0 additions and 12 deletions

View File

@ -106,8 +106,6 @@
#include "nvim/os/os.h" #include "nvim/os/os.h"
#include "nvim/arabic.h" #include "nvim/arabic.h"
#define WINBYTE BYTE
typedef struct { typedef struct {
int rangeStart; int rangeStart;
int rangeEnd; int rangeEnd;
@ -365,10 +363,6 @@ enc_alias_table[] =
{NULL, 0} {NULL, 0}
}; };
#ifndef CP_UTF8
# define CP_UTF8 65001 /* magic number from winnls.h */
#endif
/* /*
* Find encoding "name" in the list of canonical encoding names. * Find encoding "name" in the list of canonical encoding names.
* Returns -1 if not found. * Returns -1 if not found.

View File

@ -10,8 +10,6 @@
* message.c: functions for displaying messages on the command line * message.c: functions for displaying messages on the command line
*/ */
#define MESSAGE_FILE /* don't include prototype for smsg() */
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>

View File

@ -223,8 +223,6 @@ struct name_list {
#define ATTR_OFF (HL_ALL + 1) #define ATTR_OFF (HL_ALL + 1)
#define SYN_NAMELEN 50 /* maximum length of a syntax name */
static char *(spo_name_tab[SPO_COUNT]) = static char *(spo_name_tab[SPO_COUNT]) =
{"ms=", "me=", "hs=", "he=", "rs=", "re=", "lc="}; {"ms=", "me=", "hs=", "he=", "rs=", "re=", "lc="};
@ -6070,8 +6068,6 @@ do_highlight (
int error = FALSE; int error = FALSE;
int color; int color;
int is_normal_group = FALSE; /* "Normal" group */ int is_normal_group = FALSE; /* "Normal" group */
# define is_menu_group 0
# define is_tooltip_group 0
/* /*
* If no argument, list current highlighting. * If no argument, list current highlighting.