From d2e7cce560932e5e8032656598b0e27e1c06ec0d Mon Sep 17 00:00:00 2001 From: Michael Reed Date: Wed, 14 Jan 2015 15:19:33 -0500 Subject: [PATCH] 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. --- src/nvim/mbyte.c | 6 ------ src/nvim/message.c | 2 -- src/nvim/syntax.c | 4 ---- 3 files changed, 12 deletions(-) diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 7555ba3a9d..bc8f768724 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -106,8 +106,6 @@ #include "nvim/os/os.h" #include "nvim/arabic.h" -#define WINBYTE BYTE - typedef struct { int rangeStart; int rangeEnd; @@ -365,10 +363,6 @@ enc_alias_table[] = {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. * Returns -1 if not found. diff --git a/src/nvim/message.c b/src/nvim/message.c index 46e0a1a0df..9cd3814826 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -10,8 +10,6 @@ * message.c: functions for displaying messages on the command line */ -#define MESSAGE_FILE /* don't include prototype for smsg() */ - #include #include #include diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 1a1b42924f..ae6c7b009a 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -223,8 +223,6 @@ struct name_list { #define ATTR_OFF (HL_ALL + 1) -#define SYN_NAMELEN 50 /* maximum length of a syntax name */ - static char *(spo_name_tab[SPO_COUNT]) = {"ms=", "me=", "hs=", "he=", "rs=", "re=", "lc="}; @@ -6070,8 +6068,6 @@ do_highlight ( int error = FALSE; int color; int is_normal_group = FALSE; /* "Normal" group */ -# define is_menu_group 0 -# define is_tooltip_group 0 /* * If no argument, list current highlighting.