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.3 / 7.3.733 < prev    next >
Encoding:
Internet Message Format  |  2012-11-27  |  2.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.733
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.733
  11. Problem:    Tests fail when including MzScheme.
  12. Solution:   Change #ifdefs for vim_main2().
  13. Files:        src/main.c
  14.  
  15.  
  16. *** ../vim-7.3.732/src/main.c    2012-04-25 18:24:24.000000000 +0200
  17. --- src/main.c    2012-11-24 14:26:56.000000000 +0100
  18. ***************
  19. *** 147,154 ****
  20.   #define ME_INVALID_ARG        5
  21.   };
  22.   
  23. - #ifndef NO_VIM_MAIN    /* skip this for unittests */
  24.   #ifndef PROTO        /* don't want a prototype for main() */
  25.       int
  26.   # ifdef VIMDLL
  27.   _export
  28. --- 147,154 ----
  29.   #define ME_INVALID_ARG        5
  30.   };
  31.   
  32.   #ifndef PROTO        /* don't want a prototype for main() */
  33. + #ifndef NO_VIM_MAIN    /* skip this for unittests */
  34.       int
  35.   # ifdef VIMDLL
  36.   _export
  37. ***************
  38. *** 570,584 ****
  39.       return mzscheme_main(2, args);
  40.       }
  41.   }
  42.   
  43. ! int vim_main2(int argc, char **argv)
  44.   {
  45.       char_u    *fname = (char_u *)argv[0];
  46.       mparm_T    params;
  47.   
  48.       memcpy(¶ms, argv[1], sizeof(params));
  49.   #endif
  50.   
  51.       /* Execute --cmd arguments. */
  52.       exe_pre_commands(¶ms);
  53.   
  54. --- 570,596 ----
  55.       return mzscheme_main(2, args);
  56.       }
  57.   }
  58. + #endif
  59. + #endif /* NO_VIM_MAIN */
  60.   
  61. ! /* vim_main2() needs to be produced when FEAT_MZSCHEME is defined even when
  62. !  * NO_VIM_MAIN is defined. */
  63. ! #ifdef FEAT_MZSCHEME
  64. !     int
  65. ! vim_main2(int argc UNUSED, char **argv UNUSED)
  66.   {
  67. + # ifndef NO_VIM_MAIN
  68.       char_u    *fname = (char_u *)argv[0];
  69.       mparm_T    params;
  70.   
  71.       memcpy(¶ms, argv[1], sizeof(params));
  72. + # else
  73. +     return 0;
  74. + }
  75. + # endif
  76.   #endif
  77.   
  78. + #ifndef NO_VIM_MAIN
  79.       /* Execute --cmd arguments. */
  80.       exe_pre_commands(¶ms);
  81.   
  82. ***************
  83. *** 999,1006 ****
  84.   
  85.       return 0;
  86.   }
  87. - #endif /* PROTO */
  88.   #endif /* NO_VIM_MAIN */
  89.   
  90.   /*
  91.    * Main loop: Execute Normal mode commands until exiting Vim.
  92. --- 1011,1018 ----
  93.   
  94.       return 0;
  95.   }
  96.   #endif /* NO_VIM_MAIN */
  97. + #endif /* PROTO */
  98.   
  99.   /*
  100.    * Main loop: Execute Normal mode commands until exiting Vim.
  101. *** ../vim-7.3.732/src/version.c    2012-11-28 15:37:46.000000000 +0100
  102. --- src/version.c    2012-11-28 15:54:07.000000000 +0100
  103. ***************
  104. *** 727,728 ****
  105. --- 727,730 ----
  106.   {   /* Add new patch number below this line */
  107. + /**/
  108. +     733,
  109.   /**/
  110.  
  111. -- 
  112. From "know your smileys":
  113.  :^[/   mean-smiley-with-cigarette
  114.  
  115.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  116. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  117. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  118.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  119.