home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.198 < prev    next >
Encoding:
Internet Message Format  |  2007-02-19  |  7.3 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.0.198 (extra)
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.198 (extra)
  11. Problem:    Win32: Compiler warnings.  No need to generate gvim.exe.mnf.
  12. Solution:   Add type casts.  Use "*" for processorArchitecture. (George Reilly)
  13. Files:      src/Make_mvc.mak, src/eval.c, src/gvim.exe.mnf, src/misc2.c
  14.  
  15.  
  16. *** ../vim-7.0.197/src/Make_mvc.mak    Thu Apr 27 01:50:26 2006
  17. --- src/Make_mvc.mak    Wed Feb  7 05:04:15 2007
  18. ***************
  19. *** 683,689 ****
  20.   # on a crash (doesn't add overhead to the executable).
  21.   #
  22.   CFLAGS = $(CFLAGS) /Zi /Fd$(OUTDIR)/
  23. ! LINK_PDB = /PDB:$(OUTDIR)/$(VIM).pdb -debug # -debug:full -debugtype:cv,fixup
  24.   
  25.   #
  26.   # End extra feature include
  27. --- 683,689 ----
  28.   # on a crash (doesn't add overhead to the executable).
  29.   #
  30.   CFLAGS = $(CFLAGS) /Zi /Fd$(OUTDIR)/
  31. ! LINK_PDB = /PDB:$(VIM).pdb -debug # -debug:full -debugtype:cv,fixup
  32.   
  33.   #
  34.   # End extra feature include
  35. ***************
  36. *** 761,767 ****
  37.       - if exist $(VIM).pdb del $(VIM).pdb
  38.       - if exist $(VIM).map del $(VIM).map
  39.       - if exist $(VIM).ncb del $(VIM).ncb
  40. -     - if exist gvim.exe.mnf del gvim.exe.mnf
  41.       - if exist vimrun.exe del vimrun.exe
  42.       - if exist install.exe del install.exe
  43.       - if exist uninstal.exe del uninstal.exe
  44. --- 761,766 ----
  45. ***************
  46. *** 943,949 ****
  47.   $(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c
  48.       $(CC) $(CFLAGS) $(XPM_INC) xpm_w32.c
  49.   
  50. ! $(OUTDIR)/vim.res:    $(OUTDIR) gvim.exe.mnf vim.rc version.h tools.bmp tearoff.bmp \
  51.           vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
  52.       $(RC) /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc
  53.   
  54. --- 942,948 ----
  55.   $(OUTDIR)/xpm_w32.obj: $(OUTDIR) xpm_w32.c
  56.       $(CC) $(CFLAGS) $(XPM_INC) xpm_w32.c
  57.   
  58. ! $(OUTDIR)/vim.res:    $(OUTDIR) vim.rc version.h tools.bmp tearoff.bmp \
  59.           vim.ico vim_error.ico vim_alert.ico vim_info.ico vim_quest.ico
  60.       $(RC) /l 0x409 /Fo$(OUTDIR)/vim.res $(RCFLAGS) vim.rc
  61.   
  62. ***************
  63. *** 961,966 ****
  64. --- 960,966 ----
  65.   # $CFLAGS may contain backslashes and double quotes, escape them both.
  66.   E0_CFLAGS = $(CFLAGS:\=\\)
  67.   E_CFLAGS = $(E0_CFLAGS:"=\")
  68. + # ") stop the string
  69.   
  70.   $(PATHDEF_SRC): auto
  71.       @echo creating $(PATHDEF_SRC)
  72. ***************
  73. *** 972,1001 ****
  74.       @echo char_u *all_lflags = (char_u *)"$(link:\=\\) $(LINKARGS1:\=\\) $(LINKARGS2:\=\\)"; >> $(PATHDEF_SRC)
  75.       @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> $(PATHDEF_SRC)
  76.       @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> $(PATHDEF_SRC)
  77. - gvim.exe.mnf: auto
  78. -     @echo ^<?xml version="1.0" encoding="UTF-8" standalone="yes"?^> >$@
  79. -     @echo ^<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"^> >>$@
  80. -     @echo   ^<assemblyIdentity >>$@
  81. -     @echo     processorArchitecture="$(ASSEMBLY_ARCHITECTURE)" >>$@
  82. -     @echo     version="7.0.0.0" >>$@
  83. -     @echo     type="win32" >>$@
  84. -     @echo     name="Vim" >>$@
  85. -     @echo   /^> >>$@
  86. -     @echo   ^<description^>Vi Improved - A Text Editor^</description^> >>$@
  87. -     @echo   ^<dependency^> >>$@
  88. -     @echo     ^<dependentAssembly^> >>$@
  89. -     @echo       ^<assemblyIdentity >>$@
  90. -     @echo         type="win32" >>$@
  91. -     @echo         name="Microsoft.Windows.Common-Controls" >>$@
  92. -     @echo         version="6.0.0.0" >>$@
  93. -     @echo         publicKeyToken="6595b64144ccf1df" >>$@
  94. -     @echo         language="*" >>$@
  95. -     @echo         processorArchitecture="$(ASSEMBLY_ARCHITECTURE)" >>$@
  96. -     @echo       /^> >>$@
  97. -     @echo     ^</dependentAssembly^> >>$@
  98. -     @echo   ^</dependency^> >>$@
  99. -     @echo ^</assembly^> >>$@
  100.   
  101.   auto:
  102.       if not exist auto/nul mkdir auto
  103. --- 972,977 ----
  104. *** ../vim-7.0.197/src/eval.c    Sun Jan 14 15:27:05 2007
  105. --- src/eval.c    Wed Feb  7 05:01:29 2007
  106. ***************
  107. *** 1004,1010 ****
  108.       if (ga_grow(&redir_ga, (int)len) == OK)
  109.       {
  110.       mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
  111. !     redir_ga.ga_len += len;
  112.       }
  113.       else
  114.       var_redir_stop();
  115. --- 1004,1010 ----
  116.       if (ga_grow(&redir_ga, (int)len) == OK)
  117.       {
  118.       mch_memmove((char *)redir_ga.ga_data + redir_ga.ga_len, value, len);
  119. !     redir_ga.ga_len += (int)len;
  120.       }
  121.       else
  122.       var_redir_stop();
  123. ***************
  124. *** 10307,10313 ****
  125.       win_T    *wp;
  126.   #endif
  127.   
  128. !     rettv->vval.v_number = FALSE;
  129.   #ifdef FEAT_QUICKFIX
  130.       if (rettv_list_alloc(rettv) == OK)
  131.       {
  132. --- 10307,10313 ----
  133.       win_T    *wp;
  134.   #endif
  135.   
  136. !     rettv->vval.v_number = 0;
  137.   #ifdef FEAT_QUICKFIX
  138.       if (rettv_list_alloc(rettv) == OK)
  139.       {
  140. *** ../vim-7.0.197/src/gvim.exe.mnf    Sun Jun 13 17:13:20 2004
  141. --- src/gvim.exe.mnf    Wed Feb  7 05:06:52 2007
  142. ***************
  143. *** 1,8 ****
  144.   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  145.   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  146.     <assemblyIdentity
  147. !     processorArchitecture="X86"
  148. !     version="6.2.0.0"
  149.       type="win32"
  150.       name="Vim"
  151.     />
  152. --- 1,8 ----
  153.   <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  154.   <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  155.     <assemblyIdentity
  156. !     processorArchitecture="*"
  157. !     version="7.0.0.0"
  158.       type="win32"
  159.       name="Vim"
  160.     />
  161. ***************
  162. *** 15,21 ****
  163.           version="6.0.0.0"
  164.           publicKeyToken="6595b64144ccf1df"
  165.           language="*"
  166. !         processorArchitecture="X86"
  167.         />
  168.       </dependentAssembly>
  169.     </dependency>
  170. --- 15,21 ----
  171.           version="6.0.0.0"
  172.           publicKeyToken="6595b64144ccf1df"
  173.           language="*"
  174. !         processorArchitecture="*"
  175.         />
  176.       </dependentAssembly>
  177.     </dependency>
  178. *** ../vim-7.0.197/src/misc2.c    Tue Feb 20 03:01:33 2007
  179. --- src/misc2.c    Wed Feb  7 05:00:13 2007
  180. ***************
  181. *** 1246,1252 ****
  182.       char_u    *escaped_string;
  183.   
  184.       /* First count the number of extra bytes required. */
  185. !     length = STRLEN(string) + 3;    /* two quotes and the trailing NUL */
  186.       for (p = string; *p != NUL; mb_ptr_adv(p))
  187.       {
  188.   # if defined(WIN32) || defined(WIN16) || defined(DOS)
  189. --- 1246,1252 ----
  190.       char_u    *escaped_string;
  191.   
  192.       /* First count the number of extra bytes required. */
  193. !     length = (unsigned)STRLEN(string) + 3;  /* two quotes and a trailing NUL */
  194.       for (p = string; *p != NUL; mb_ptr_adv(p))
  195.       {
  196.   # if defined(WIN32) || defined(WIN16) || defined(DOS)
  197. ***************
  198. *** 3718,3724 ****
  199.    *
  200.    * ATTENTION:
  201.    * ==========
  202. !  *    Also we use an allocated search context here, this functions ARE NOT
  203.    *    thread-safe!!!!!
  204.    *
  205.    *    To minimize parameter passing (or because I'm to lazy), only the
  206. --- 3718,3724 ----
  207.    *
  208.    * ATTENTION:
  209.    * ==========
  210. !  *    Also we use an allocated search context here, this functions are NOT
  211.    *    thread-safe!!!!!
  212.    *
  213.    *    To minimize parameter passing (or because I'm to lazy), only the
  214. *** ../vim-7.0.197/src/version.c    Tue Feb 20 03:01:33 2007
  215. --- src/version.c    Tue Feb 20 03:14:39 2007
  216. ***************
  217. *** 668,669 ****
  218. --- 668,671 ----
  219.   {   /* Add new patch number below this line */
  220. + /**/
  221. +     198,
  222.   /**/
  223.  
  224. -- 
  225. hundred-and-one symptoms of being an internet addict:
  226. 155. You forget to eat because you're too busy surfing the net.
  227.  
  228.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  229. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  230. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  231.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  232.