diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-20 21:54:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-20 21:54:57 +0000 |
commit | 6a9aa37a3e3821a97f0a92ac0e4d0eec4c25cef0 (patch) | |
tree | 354d33e9241de47fe3eeb71d2682661d86148b30 /src | |
parent | 9fad3086218b455b10679bc1f503300d78b95593 (diff) | |
download | vim-6a9aa37a3e3821a97f0a92ac0e4d0eec4c25cef0.zip |
updated for version 7.0111
Diffstat (limited to 'src')
-rw-r--r-- | src/Make_mvc.mak | 11 | ||||
-rw-r--r-- | src/if_sniff.c | 21 |
2 files changed, 18 insertions, 14 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index 7b54f469a..c1aeeb830 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -355,12 +355,13 @@ LIBC = ! else LIBC = /fixed:no ! endif - -! ifndef USE_MSVCRT -LIBC = $(LIBC) libcd.lib -! else +! ifdef USE_MSVCRT CFLAGS = $(CFLAGS) -MDd LIBC = $(LIBC) msvcrtd.lib +! elseif defined(MULTITHREADED) +LIBC = $(LIBC) libcmtd.lib +! else +LIBC = $(LIBC) libcd.lib ! endif !endif # DEBUG @@ -837,7 +838,7 @@ $(OUTDIR)/if_perlsfio.obj: $(OUTDIR) if_perlsfio.c $(INCL) $(CC) $(CFLAGS) $(PERL_INC) if_perlsfio.c $(OUTDIR)/if_mzsch.obj: $(OUTDIR) if_mzsch.c $(INCL) - $(CC) $(CFLAGS) $(PERL_INC) if_mzsch.c + $(CC) $(CFLAGS) if_mzsch.c \ -DMZSCHEME_COLLECTS=\"$(MZSCHEME:\=\\)\\collects\" $(OUTDIR)/if_python.obj: $(OUTDIR) if_python.c $(INCL) diff --git a/src/if_sniff.c b/src/if_sniff.c index 7730e5bdc..1485d5e51 100644 --- a/src/if_sniff.c +++ b/src/if_sniff.c @@ -817,15 +817,16 @@ HandleSniffRequest(buffer) vi_open_file(file); else if (buf!=curbuf) { - vim_snprintf(VICommand, sizeof(VICommand), SelectBuf, file); + vim_snprintf(VICommand, sizeof(VICommand), + (char *)SelectBuf, file); vi_exec_cmd(VICommand); } if (command == 'o') vi_set_cursor_pos((long)position); else { - vim_snprintf(VICommand, sizeof(VICommand), GotoLine, - (int)position); + vim_snprintf(VICommand, sizeof(VICommand), + (char *)GotoLine, (int)position); vi_exec_cmd(VICommand); } checkpcmark(); /* [mark.c] */ @@ -854,7 +855,8 @@ HandleSniffRequest(buffer) buf = vi_find_buffer(file); if (buf && !buf->b_changed) /* delete buffer only if not modified */ { - vim_snprintf(VICommand, sizeof(VICommand), DeleteBuf, file); + vim_snprintf(VICommand, sizeof(VICommand), + (char *)DeleteBuf, file); vi_exec_cmd(VICommand); } vi_open_file(new_path); @@ -876,8 +878,8 @@ HandleSniffRequest(buffer) buf->b_flags |= BF_CHECK_RO + BF_NEVERLOADED; if (writable && !buf->b_changed) { - vim_snprintf(VICommand, sizeof(VICommand), UnloadBuf, - file); + vim_snprintf(VICommand, sizeof(VICommand), + (char *)UnloadBuf, file); vi_exec_cmd(VICommand); } } @@ -897,7 +899,8 @@ HandleSniffRequest(buffer) if (tab_width > 0 && tab_width <= 16) { - vim_snprintf(VICommand, sizeof(VICommand), SetTab, tab_width); + vim_snprintf(VICommand, sizeof(VICommand), + (char *)SetTab, tab_width); vi_exec_cmd(VICommand); } break; @@ -912,12 +915,12 @@ HandleSniffRequest(buffer) } case 'A' : /* Warning/Info msg */ vi_msg(arguments); - if (!strncmp(arguments, "Disconnected", 12)) /* "Disconnected ..." */ + if (!strncmp(arguments, "Disconnected", 12)) sniff_disconnect(1); /* unexpected disconnection */ break; case 'a' : /* Error msg */ vi_error_msg(arguments); - if (!strncmp(arguments, "Cannot connect", 14)) /* "Cannot connect ..." */ + if (!strncmp(arguments, "Cannot connect", 14)) sniff_disconnect(1); break; |