aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-01-14 15:19:33 -0500
committerMichael Reed <m.reed@mykolab.com>2015-01-14 22:23:16 -0500
commitd2e7cce560932e5e8032656598b0e27e1c06ec0d (patch)
tree4e8501964f5750f4b0e022e52a8e859c9e815223 /src
parentcd8e91b87ebda1850c22ea91068b679f7e8af3a4 (diff)
downloadrneovim-d2e7cce560932e5e8032656598b0e27e1c06ec0d.tar.gz
rneovim-d2e7cce560932e5e8032656598b0e27e1c06ec0d.tar.bz2
rneovim-d2e7cce560932e5e8032656598b0e27e1c06ec0d.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mbyte.c6
-rw-r--r--src/nvim/message.c2
-rw-r--r--src/nvim/syntax.c4
3 files changed, 0 insertions, 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 <assert.h>
#include <errno.h>
#include <inttypes.h>
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.