Bram Moolenaar wrote:
> Patch 7.4.1905 (after 7.4.1903)
> Problem: Some compilers can't handle a double semicolon.
> Solution: Remove one semicolon.
> Files: src/ex_cmds.c
I don't know which compiler has trouble with 2 semi-colons
but I see other occurrences in Vim source code (fixed
in attached patch):
$ egrep ';;$' *.c
dosinst.c: choices[choice_count].installfunc = NULL;;
dosinst.c: choices[choice_count].installfunc = NULL;;
fold.c: int low_level = 0;;
gui_gtk_x11.c: char_u **array = NULL;;
gui_w32.c: char_u *ws = NULL;;
main.c: current_SID = save_sid;;
misc2.c: new->ffs_star_star_empty = star_star_empty;;
Regards
Dominique
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/dosinst.c b/src/dosinst.c
index 809789f..2362418 100644
--- a/src/dosinst.c
+++ b/src/dosinst.c
@@ -1313,14 +1313,14 @@ init_vimrc_choices(void)
/* Whether to remap keys */
alloc_text(choice_count, remap_text , remap_choices[remap_choice]);
choices[choice_count].changefunc = change_remap_choice;
- choices[choice_count].installfunc = NULL;;
+ choices[choice_count].installfunc = NULL;
choices[choice_count].active = (*oldvimrc == NUL);
++choice_count;
/* default way to use the mouse */
alloc_text(choice_count, mouse_text, mouse_choices[mouse_choice]);
choices[choice_count].changefunc = change_mouse_choice;
- choices[choice_count].installfunc = NULL;;
+ choices[choice_count].installfunc = NULL;
choices[choice_count].active = (*oldvimrc == NUL);
++choice_count;
}
diff --git a/src/fold.c b/src/fold.c
index 8b9ca35..e4c7f41 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -153,7 +153,7 @@ hasFoldingWin(
int use_level = FALSE;
int maybe_small = FALSE;
garray_T *gap;
- int low_level = 0;;
+ int low_level = 0;
checkupdate(win);
/*
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index cd115b8..620c892 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -2205,7 +2205,7 @@ parse_uri_list(int *count, char_u *data, int len)
{
int n = 0;
char_u *tmp = NULL;
- char_u **array = NULL;;
+ char_u **array = NULL;
if (data != NULL && len > 0 && (tmp = (char_u *)alloc(len + 1)) != NULL)
{
diff --git a/src/gui_w32.c b/src/gui_w32.c
index f6601df..cf29b61 100644
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -685,7 +685,7 @@ char_to_string(int ch, char_u *string, int slen, int had_alt)
int i;
#ifdef FEAT_MBYTE
WCHAR wstring[2];
- char_u *ws = NULL;;
+ char_u *ws = NULL;
if (os_version.dwPlatformId != VER_PLATFORM_WIN32_NT)
{
@@ -1873,7 +1873,7 @@ process_message(void)
&& (vk != VK_SPACE || !(GetKeyState(VK_MENU) & 0x8000)))
{
/*
- * Behave as exected if we have a dead key and the special key
+ * Behave as expected if we have a dead key and the special key
* is a key that would normally trigger the dead key nominal
* character output (such as a NUMPAD printable character or
* the TAB key, etc...).
diff --git a/src/main.c b/src/main.c
index ee37500..c877800 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3159,7 +3159,7 @@ process_env(
sourcing_name = save_sourcing_name;
sourcing_lnum = save_sourcing_lnum;
#ifdef FEAT_EVAL
- current_SID = save_sid;;
+ current_SID = save_sid;
#endif
return OK;
}
diff --git a/src/misc2.c b/src/misc2.c
index ae6ca04..67486aa 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -5152,7 +5152,7 @@ ff_create_stack_element(
new->ffs_filearray_cur = 0;
new->ffs_stage = 0;
new->ffs_level = level;
- new->ffs_star_star_empty = star_star_empty;;
+ new->ffs_star_star_empty = star_star_empty;
/* the following saves NULL pointer checks in vim_findfile */
if (fix_part == NULL)