Mercurial > vim
changeset 297:9a1c2a8186b7
updated for version 7.0078
author | vimboss |
---|---|
date | Wed, 01 Jun 2005 21:51:55 +0000 |
parents | 00b73c762d77 |
children | f9de3e679a04 |
files | src/fileio.c src/if_cscope.c src/mbyte.c src/misc2.c src/os_win32.c src/quickfix.c src/regexp.c src/version.h |
diffstat | 8 files changed, 24 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -6753,12 +6753,12 @@ typedef struct AutoPatCmd struct AutoPatCmd *next; /* chain of active apc-s for auto-invalidation*/ } AutoPatCmd; -AutoPatCmd *active_apc_list = NULL; /* stack of active autocommands */ +static AutoPatCmd *active_apc_list = NULL; /* stack of active autocommands */ /* * augroups stores a list of autocmd group names. */ -garray_T augroups = {0, 0, sizeof(char_u *), 10, NULL}; +static garray_T augroups = {0, 0, sizeof(char_u *), 10, NULL}; #define AUGROUP_NAME(i) (((char_u **)augroups.ga_data)[i]) /*
--- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -1726,6 +1726,7 @@ cs_file_results(f, nummatches_a) * * get parsed cscope output and calls cs_make_vim_style_matches to convert * into ctags format + * When there are no matches sets "*matches_p" to NULL. */ static void cs_fill_results(tagstr, totmatches, nummatches_a, matches_p, cntxts_p, matched) @@ -1790,9 +1791,18 @@ cs_fill_results(tagstr, totmatches, numm } /* for all cscope connections */ parse_out: + if (totsofar == 0) + { + /* No matches, free the arrays and return NULL in "*matches_p". */ + vim_free(matches); + matches = NULL; + vim_free(cntxts); + cntxts = NULL; + } *matched = totsofar; *matches_p = matches; *cntxts_p = cntxts; + vim_free(buf); } /* cs_fill_results */
--- a/src/mbyte.c +++ b/src/mbyte.c @@ -1949,7 +1949,7 @@ typedef struct int offset; } convertStruct; -convertStruct foldCase[] = +static convertStruct foldCase[] = { {0x41,0x5a,1,32}, {0xc0,0xd6,1,32}, {0xd8,0xde,1,32}, {0x100,0x12e,2,1}, {0x130,0x130,-1,-199}, {0x132,0x136,2,1}, @@ -2040,7 +2040,7 @@ utf_fold(a) * from 0x41 to 0x5a inclusive, stepping by 1, are switched to lower (for * example) by adding 32. */ -convertStruct toLower[] = +static convertStruct toLower[] = { {0x41,0x5a,1,32}, {0xc0,0xd6,1,32}, {0xd8,0xde,1,32}, {0x100,0x12e,2,1}, {0x130,0x130,-1,-199}, {0x132,0x136,2,1}, @@ -2075,7 +2075,7 @@ convertStruct toLower[] = {0x212b,0x212b,-1,-8262}, {0xff21,0xff3a,1,32}, {0x10400,0x10427,1,40} }; -convertStruct toUpper[] = +static convertStruct toUpper[] = { {0x61,0x7a,1,-32}, {0xb5,0xb5,-1,743}, {0xe0,0xf6,1,-32}, {0xf8,0xfe,1,-32}, {0xff,0xff,-1,121}, {0x101,0x12f,2,-1}, @@ -3134,8 +3134,8 @@ iconv_string(vcp, str, slen, unconvlenp) #ifndef DYNAMIC_ICONV /* just generating prototypes */ # define HINSTANCE int #endif -HINSTANCE hIconvDLL = 0; -HINSTANCE hMsvcrtDLL = 0; +static HINSTANCE hIconvDLL = 0; +static HINSTANCE hMsvcrtDLL = 0; # ifndef DYNAMIC_ICONV_DLL # define DYNAMIC_ICONV_DLL "iconv.dll"
--- a/src/misc2.c +++ b/src/misc2.c @@ -3204,7 +3204,7 @@ typedef unsigned long ulg; /* unsigned static void make_crc_tab __ARGS((void)); -ulg crc_32_tab[256]; +static ulg crc_32_tab[256]; /* * Fill the CRC table.
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -149,7 +149,7 @@ typedef BOOL (__stdcall *PFNGCKLN)(LPSTR #else typedef WINBASEAPI BOOL (WINAPI *PFNGCKLN)(LPSTR); #endif -PFNGCKLN s_pfnGetConsoleKeyboardLayoutName = NULL; +static PFNGCKLN s_pfnGetConsoleKeyboardLayoutName = NULL; #endif #if defined(__BORLANDC__) @@ -470,7 +470,7 @@ win32ssynch_cb(HWND hwnd, LPARAM lparam) * combinations of function/arrow/etc keys. */ -const static struct +static const struct { WORD wVirtKey; BOOL fAnsiKey;
--- a/src/quickfix.c +++ b/src/quickfix.c @@ -49,7 +49,7 @@ struct qfline_S */ #define LISTCOUNT 10 -struct qf_list +static struct qf_list { qfline_T *qf_start; /* pointer to the first error */ qfline_T *qf_ptr; /* pointer to the current error */
--- a/src/regexp.c +++ b/src/regexp.c @@ -6110,7 +6110,7 @@ typedef struct /* 0xfb20 - 0xfb4f */ -decomp_T decomp_table[0xfb4f-0xfb20+1] = +static decomp_T decomp_table[0xfb4f-0xfb20+1] = { {0x5e2,0,0}, /* 0xfb20 alt ayin */ {0x5d0,0,0}, /* 0xfb21 alt alef */
--- a/src/version.h +++ b/src/version.h @@ -36,5 +36,5 @@ #define VIM_VERSION_NODOT "vim70aa" #define VIM_VERSION_SHORT "7.0aa" #define VIM_VERSION_MEDIUM "7.0aa ALPHA" -#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 May 31)" -#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 May 31, compiled " +#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 1)" +#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 1, compiled "