|
Karsten Hopp |
4e8fea |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
4e8fea |
Subject: Patch 7.4.787
|
|
Karsten Hopp |
4e8fea |
Fcc: outbox
|
|
Karsten Hopp |
4e8fea |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
4e8fea |
Mime-Version: 1.0
|
|
Karsten Hopp |
4e8fea |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
4e8fea |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
4e8fea |
------------
|
|
Karsten Hopp |
4e8fea |
|
|
Karsten Hopp |
4e8fea |
Patch 7.4.787 (after 7.4.786)
|
|
Karsten Hopp |
4e8fea |
Problem: snprintf() isn't available everywhere.
|
|
Karsten Hopp |
4e8fea |
Solution: Use vim_snprintf(). (Ken Takata)
|
|
Karsten Hopp |
4e8fea |
Files: src/option.c
|
|
Karsten Hopp |
4e8fea |
|
|
Karsten Hopp |
4e8fea |
|
|
Karsten Hopp |
4e8fea |
*** ../vim-7.4.786/src/option.c 2015-07-17 17:38:00.567399623 +0200
|
|
Karsten Hopp |
4e8fea |
--- src/option.c 2015-07-17 22:01:19.618757952 +0200
|
|
Karsten Hopp |
4e8fea |
***************
|
|
Karsten Hopp |
4e8fea |
*** 8291,8299 ****
|
|
Karsten Hopp |
4e8fea |
if (!starting)
|
|
Karsten Hopp |
4e8fea |
{
|
|
Karsten Hopp |
4e8fea |
char_u buf_old[2], buf_new[2], buf_type[7];
|
|
Karsten Hopp |
4e8fea |
! snprintf((char *)buf_old, 2, "%d", old_value ? TRUE: FALSE);
|
|
Karsten Hopp |
4e8fea |
! snprintf((char *)buf_new, 2, "%d", value ? TRUE: FALSE);
|
|
Karsten Hopp |
4e8fea |
! sprintf((char *)buf_type, "%s", (opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_NEW, buf_new, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_OLD, buf_old, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
4e8fea |
--- 8291,8299 ----
|
|
Karsten Hopp |
4e8fea |
if (!starting)
|
|
Karsten Hopp |
4e8fea |
{
|
|
Karsten Hopp |
4e8fea |
char_u buf_old[2], buf_new[2], buf_type[7];
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_old, 2, "%d", old_value ? TRUE: FALSE);
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_new, 2, "%d", value ? TRUE: FALSE);
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_type, 7, "%s", (opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_NEW, buf_new, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_OLD, buf_old, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
4e8fea |
***************
|
|
Karsten Hopp |
4e8fea |
*** 8841,8849 ****
|
|
Karsten Hopp |
4e8fea |
if (!starting && errmsg == NULL)
|
|
Karsten Hopp |
4e8fea |
{
|
|
Karsten Hopp |
4e8fea |
char_u buf_old[11], buf_new[11], buf_type[7];
|
|
Karsten Hopp |
4e8fea |
! snprintf((char *)buf_old, 10, "%ld", old_value);
|
|
Karsten Hopp |
4e8fea |
! snprintf((char *)buf_new, 10, "%ld", value);
|
|
Karsten Hopp |
4e8fea |
! snprintf((char *)buf_type, 7, "%s", (opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_NEW, buf_new, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_OLD, buf_old, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
4e8fea |
--- 8841,8849 ----
|
|
Karsten Hopp |
4e8fea |
if (!starting && errmsg == NULL)
|
|
Karsten Hopp |
4e8fea |
{
|
|
Karsten Hopp |
4e8fea |
char_u buf_old[11], buf_new[11], buf_type[7];
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_old, 10, "%ld", old_value);
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_new, 10, "%ld", value);
|
|
Karsten Hopp |
4e8fea |
! vim_snprintf((char *)buf_type, 7, "%s", (opt_flags & OPT_LOCAL) ? "local" : "global");
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_NEW, buf_new, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_OLD, buf_old, -1);
|
|
Karsten Hopp |
4e8fea |
set_vim_var_string(VV_OPTION_TYPE, buf_type, -1);
|
|
Karsten Hopp |
4e8fea |
*** ../vim-7.4.786/src/version.c 2015-07-17 17:38:00.567399623 +0200
|
|
Karsten Hopp |
4e8fea |
--- src/version.c 2015-07-17 22:02:53.357875372 +0200
|
|
Karsten Hopp |
4e8fea |
***************
|
|
Karsten Hopp |
4e8fea |
*** 743,744 ****
|
|
Karsten Hopp |
4e8fea |
--- 743,746 ----
|
|
Karsten Hopp |
4e8fea |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
4e8fea |
+ /**/
|
|
Karsten Hopp |
4e8fea |
+ 787,
|
|
Karsten Hopp |
4e8fea |
/**/
|
|
Karsten Hopp |
4e8fea |
|
|
Karsten Hopp |
4e8fea |
--
|
|
Karsten Hopp |
4e8fea |
The term "free software" is defined by Richard M. Stallman as
|
|
Karsten Hopp |
4e8fea |
being software that isn't necessarily for free. Confusing?
|
|
Karsten Hopp |
4e8fea |
Let's call it "Stallman software" then!
|
|
Karsten Hopp |
4e8fea |
-- Bram Moolenaar
|
|
Karsten Hopp |
4e8fea |
|
|
Karsten Hopp |
4e8fea |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
4e8fea |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
4e8fea |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
4e8fea |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|