updated for version 7.0078
diff --git a/src/digraph.c b/src/digraph.c
index 06b227a..93a80a8 100644
--- a/src/digraph.c
+++ b/src/digraph.c
@@ -38,11 +38,11 @@
* Note: Characters marked with XX are not included literally, because some
* compilers cannot handle them (Amiga SAS/C is the most picky one).
*/
+static digr_T digraphdefault[] =
#if defined(MSDOS) || defined(OS2)
/*
* MSDOS digraphs.
*/
-digr_T digraphdefault[] =
{{'C', ',', 128}, /* ~@ XX */
{'u', '"', 129}, /* */
{'e', '\'', 130}, /* */
@@ -111,7 +111,6 @@
/*
* ATARI digraphs
*/
-digr_T digraphdefault[] =
{{'C', ',', 128}, /* ~@ XX */
{'u', '"', 129}, /* */
{'e', '\'', 130}, /* */
@@ -178,7 +177,6 @@
/*
* different HPUX digraphs
*/
-digr_T digraphdefault[] =
{{'A', '`', 161}, /* ¡ */
{'A', '^', 162}, /* ¢ */
{'E', '`', 163}, /* £ */
@@ -285,7 +283,6 @@
* EBCDIC - ISO digraphs
* TODO: EBCDIC Table is Code-Page 1047
*/
-digr_T digraphdefault[] =
{{'a', '^', 66}, /* â */
{'a', '"', 67}, /* ä */
{'a', '`', 68}, /* à */
@@ -395,7 +392,6 @@
/*
* Macintosh digraphs
*/
-digr_T digraphdefault[] =
{{'a', 't', 64}, /* @ */
{'A', '"', 128}, /* ~@ XX */
{'A', 'o', 129}, /* Å */
@@ -526,7 +522,6 @@
/*
* digraphs compatible with Vim 5.x
*/
-digr_T digraphdefault[] =
{{'~', '!', 161}, /* ¡ */
{'c', '|', 162}, /* ¢ */
{'$', '$', 163}, /* £ */
@@ -635,7 +630,6 @@
* digraphs for Unicode from RFC1345
* (also work for ISO-8859-1 aka latin1)
*/
-digr_T digraphdefault[] =
{
{'N', 'U', 0x0a}, /* LF for NUL */
{'S', 'H', 0x01},
diff --git a/src/edit.c b/src/edit.c
index bce0d83..f4682c0 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -198,10 +198,10 @@
static int old_indent = 0; /* for ^^D command in insert mode */
#ifdef FEAT_RIGHTLEFT
-int revins_on; /* reverse insert mode on */
-int revins_chars; /* how much to skip after edit */
-int revins_legal; /* was the last char 'legal'? */
-int revins_scol; /* start column of revins session */
+static int revins_on; /* reverse insert mode on */
+static int revins_chars; /* how much to skip after edit */
+static int revins_legal; /* was the last char 'legal'? */
+static int revins_scol; /* start column of revins session */
#endif
#if defined(FEAT_MBYTE) && defined(MACOS_CLASSIC)
@@ -5432,9 +5432,9 @@
* characters will be left on the stack above the newly inserted character.
*/
-char_u *replace_stack = NULL;
-long replace_stack_nr = 0; /* next entry in replace stack */
-long replace_stack_len = 0; /* max. number of entries */
+static char_u *replace_stack = NULL;
+static long replace_stack_nr = 0; /* next entry in replace stack */
+static long replace_stack_len = 0; /* max. number of entries */
void
replace_push(c)
diff --git a/src/syntax.c b/src/syntax.c
index 595befc..fc2710a 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -7432,16 +7432,16 @@
* Note that this table is used by ALL buffers. This is required because the
* GUI can redraw at any time for any buffer.
*/
-garray_T term_attr_table = {0, 0, 0, 0, NULL};
+static garray_T term_attr_table = {0, 0, 0, 0, NULL};
#define TERM_ATTR_ENTRY(idx) ((attrentry_T *)term_attr_table.ga_data)[idx]
-garray_T cterm_attr_table = {0, 0, 0, 0, NULL};
+static garray_T cterm_attr_table = {0, 0, 0, 0, NULL};
#define CTERM_ATTR_ENTRY(idx) ((attrentry_T *)cterm_attr_table.ga_data)[idx]
#ifdef FEAT_GUI
-garray_T gui_attr_table = {0, 0, 0, 0, NULL};
+static garray_T gui_attr_table = {0, 0, 0, 0, NULL};
#define GUI_ATTR_ENTRY(idx) ((attrentry_T *)gui_attr_table.ga_data)[idx]
#endif
diff --git a/src/term.c b/src/term.c
index 20203b5..9ff2938 100644
--- a/src/term.c
+++ b/src/term.c
@@ -144,7 +144,7 @@
static int detected_8bit = FALSE; /* detected 8-bit terminal */
-struct builtin_term builtin_termcaps[] =
+static struct builtin_term builtin_termcaps[] =
{
#if defined(FEAT_GUI)
@@ -2418,9 +2418,9 @@
* minimal tgoto() implementation.
* no padding and we only parse for %i %d and %+char
*/
-char *tgoto __ARGS((char *, int, int));
+static char *tgoto __ARGS((char *, int, int));
- char *
+ static char *
tgoto(cm, x, y)
char *cm;
int x, y;
@@ -3491,7 +3491,7 @@
* List of terminal codes that are currently recognized.
*/
-struct termcode
+static struct termcode
{
char_u name[2]; /* termcap name of entry */
char_u *code; /* terminal code (in allocated memory) */