Blame SOURCES/7.4.553

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.553
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.553
22c937
Problem:    Various small issues.
22c937
Solution:   Fix those issues.
22c937
Files:	    src/ex_cmds.h, src/gui.h, src/message.c, src/testdir/test39.in,
22c937
	    src/proto/eval.pro, src/proto/misc1.pro, src/proto/ops.pro,
22c937
	    src/proto/screen.pro, src/proto/window.pro. src/os_unix.c,
22c937
	    src/Make_vms.mms, src/proto/os_vms.pro, src/INSTALL
22c937
22c937
22c937
*** ../vim-7.4.552/src/ex_cmds.h	2014-12-08 04:16:26.257702950 +0100
22c937
--- src/ex_cmds.h	2014-12-17 12:41:18.536370067 +0100
22c937
***************
22c937
*** 63,69 ****
22c937
  #define ADDR_WINDOWS		1
22c937
  #define ADDR_ARGUMENTS		2
22c937
  #define ADDR_LOADED_BUFFERS	3
22c937
! #define ADDR_BUFFERS	4
22c937
  #define ADDR_TABS		5
22c937
  
22c937
  #ifndef DO_DECLARE_EXCMD
22c937
--- 63,69 ----
22c937
  #define ADDR_WINDOWS		1
22c937
  #define ADDR_ARGUMENTS		2
22c937
  #define ADDR_LOADED_BUFFERS	3
22c937
! #define ADDR_BUFFERS		4
22c937
  #define ADDR_TABS		5
22c937
  
22c937
  #ifndef DO_DECLARE_EXCMD
22c937
*** ../vim-7.4.552/src/gui.h	2013-06-17 22:22:49.000000000 +0200
22c937
--- src/gui.h	2014-11-20 22:14:04.635717128 +0100
22c937
***************
22c937
*** 41,47 ****
22c937
  # include <Events.h>
22c937
  # include <Menus.h>
22c937
  # if !(defined (TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON))
22c937
! #   include <Windows.h>
22c937
  # endif
22c937
  # include <Controls.h>
22c937
  /*# include <TextEdit.h>*/
22c937
--- 41,47 ----
22c937
  # include <Events.h>
22c937
  # include <Menus.h>
22c937
  # if !(defined (TARGET_API_MAC_CARBON) && (TARGET_API_MAC_CARBON))
22c937
! #  include <Windows.h>
22c937
  # endif
22c937
  # include <Controls.h>
22c937
  /*# include <TextEdit.h>*/
22c937
*** ../vim-7.4.552/src/message.c	2014-02-23 22:52:33.368764715 +0100
22c937
--- src/message.c	2014-10-31 13:43:15.075230535 +0100
22c937
***************
22c937
*** 4030,4040 ****
22c937
   * pointer for resulting string argument if "str_m" is zero (as per ISO C99).
22c937
   *
22c937
   * The return value is the number of characters which would be generated
22c937
!  * for the given input, excluding the trailing null. If this value
22c937
   * is greater or equal to "str_m", not all characters from the result
22c937
   * have been stored in str, output bytes beyond the ("str_m"-1) -th character
22c937
   * are discarded. If "str_m" is greater than zero it is guaranteed
22c937
!  * the resulting string will be null-terminated.
22c937
   */
22c937
  
22c937
  /*
22c937
--- 4030,4040 ----
22c937
   * pointer for resulting string argument if "str_m" is zero (as per ISO C99).
22c937
   *
22c937
   * The return value is the number of characters which would be generated
22c937
!  * for the given input, excluding the trailing NUL. If this value
22c937
   * is greater or equal to "str_m", not all characters from the result
22c937
   * have been stored in str, output bytes beyond the ("str_m"-1) -th character
22c937
   * are discarded. If "str_m" is greater than zero it is guaranteed
22c937
!  * the resulting string will be NUL-terminated.
22c937
   */
22c937
  
22c937
  /*
22c937
*** ../vim-7.4.552/src/testdir/test39.in	2014-08-16 18:13:00.082044726 +0200
22c937
--- src/testdir/test39.in	2014-08-16 18:22:56.418023098 +0200
22c937
***************
22c937
*** 85,90 ****
22c937
--- 85,94 ----
22c937
  cccc
22c937
  dddd
22c937
  
22c937
+ yaaa
22c937
+ ¿¿¿
22c937
+ bbb
22c937
+ 
22c937
  A23
22c937
  4567
22c937
  
22c937
*** ../vim-7.4.552/src/proto/eval.pro	2014-05-07 17:31:32.473182497 +0200
22c937
--- src/proto/eval.pro	2014-11-12 15:34:08.671587958 +0100
22c937
***************
22c937
*** 59,66 ****
22c937
  int list_append_dict __ARGS((list_T *list, dict_T *dict));
22c937
  int list_append_string __ARGS((list_T *l, char_u *str, int len));
22c937
  int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item));
22c937
- void vimlist_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2));
22c937
  void list_insert __ARGS((list_T *l, listitem_T *ni, listitem_T *item));
22c937
  int garbage_collect __ARGS((void));
22c937
  void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID));
22c937
  void set_ref_in_list __ARGS((list_T *l, int copyID));
22c937
--- 59,66 ----
22c937
  int list_append_dict __ARGS((list_T *list, dict_T *dict));
22c937
  int list_append_string __ARGS((list_T *l, char_u *str, int len));
22c937
  int list_insert_tv __ARGS((list_T *l, typval_T *tv, listitem_T *item));
22c937
  void list_insert __ARGS((list_T *l, listitem_T *ni, listitem_T *item));
22c937
+ void vimlist_remove __ARGS((list_T *l, listitem_T *item, listitem_T *item2));
22c937
  int garbage_collect __ARGS((void));
22c937
  void set_ref_in_ht __ARGS((hashtab_T *ht, int copyID));
22c937
  void set_ref_in_list __ARGS((list_T *l, int copyID));
22c937
*** ../vim-7.4.552/src/proto/misc1.pro	2014-06-25 14:39:35.110348584 +0200
22c937
--- src/proto/misc1.pro	2014-11-12 15:34:16.043501712 +0100
22c937
***************
22c937
*** 5,11 ****
22c937
  int get_indent_str __ARGS((char_u *ptr, int ts, int list));
22c937
  int set_indent __ARGS((int size, int flags));
22c937
  int get_number_indent __ARGS((linenr_T lnum));
22c937
! int get_breakindent_win __ARGS((win_T *wp, char_u *ptr));
22c937
  int open_line __ARGS((int dir, int flags, int second_line_indent));
22c937
  int get_leader_len __ARGS((char_u *line, char_u **flags, int backward, int include_space));
22c937
  int get_last_leader_offset __ARGS((char_u *line, char_u **flags));
22c937
--- 5,11 ----
22c937
  int get_indent_str __ARGS((char_u *ptr, int ts, int list));
22c937
  int set_indent __ARGS((int size, int flags));
22c937
  int get_number_indent __ARGS((linenr_T lnum));
22c937
! int get_breakindent_win __ARGS((win_T *wp, char_u *line));
22c937
  int open_line __ARGS((int dir, int flags, int second_line_indent));
22c937
  int get_leader_len __ARGS((char_u *line, char_u **flags, int backward, int include_space));
22c937
  int get_last_leader_offset __ARGS((char_u *line, char_u **flags));
22c937
*** ../vim-7.4.552/src/proto/ops.pro	2014-04-29 12:15:22.860032651 +0200
22c937
--- src/proto/ops.pro	2014-11-12 15:34:17.567483882 +0100
22c937
***************
22c937
*** 55,62 ****
22c937
  char_u get_reg_type __ARGS((int regname, long *reglen));
22c937
  char_u *get_reg_contents __ARGS((int regname, int flags));
22c937
  void write_reg_contents __ARGS((int name, char_u *str, int maxlen, int must_append));
22c937
- void write_reg_contents_ex __ARGS((int name, char_u *str, int maxlen, int must_append, int yank_type, long block_len));
22c937
  void write_reg_contents_lst __ARGS((int name, char_u **strings, int maxlen, int must_append, int yank_type, long block_len));
22c937
  void clear_oparg __ARGS((oparg_T *oap));
22c937
  void cursor_pos_info __ARGS((void));
22c937
  /* vim: set ft=c : */
22c937
--- 55,62 ----
22c937
  char_u get_reg_type __ARGS((int regname, long *reglen));
22c937
  char_u *get_reg_contents __ARGS((int regname, int flags));
22c937
  void write_reg_contents __ARGS((int name, char_u *str, int maxlen, int must_append));
22c937
  void write_reg_contents_lst __ARGS((int name, char_u **strings, int maxlen, int must_append, int yank_type, long block_len));
22c937
+ void write_reg_contents_ex __ARGS((int name, char_u *str, int maxlen, int must_append, int yank_type, long block_len));
22c937
  void clear_oparg __ARGS((oparg_T *oap));
22c937
  void cursor_pos_info __ARGS((void));
22c937
  /* vim: set ft=c : */
22c937
*** ../vim-7.4.552/src/proto/screen.pro	2013-08-10 13:37:25.000000000 +0200
22c937
--- src/proto/screen.pro	2014-11-12 15:34:19.455461795 +0100
22c937
***************
22c937
*** 26,32 ****
22c937
  void screen_putchar __ARGS((int c, int row, int col, int attr));
22c937
  void screen_getbytes __ARGS((int row, int col, char_u *bytes, int *attrp));
22c937
  void screen_puts __ARGS((char_u *text, int row, int col, int attr));
22c937
! void screen_puts_len __ARGS((char_u *text, int len, int row, int col, int attr));
22c937
  void screen_stop_highlight __ARGS((void));
22c937
  void reset_cterm_colors __ARGS((void));
22c937
  void screen_draw_rectangle __ARGS((int row, int col, int height, int width, int invert));
22c937
--- 26,32 ----
22c937
  void screen_putchar __ARGS((int c, int row, int col, int attr));
22c937
  void screen_getbytes __ARGS((int row, int col, char_u *bytes, int *attrp));
22c937
  void screen_puts __ARGS((char_u *text, int row, int col, int attr));
22c937
! void screen_puts_len __ARGS((char_u *text, int textlen, int row, int col, int attr));
22c937
  void screen_stop_highlight __ARGS((void));
22c937
  void reset_cterm_colors __ARGS((void));
22c937
  void screen_draw_rectangle __ARGS((int row, int col, int height, int width, int invert));
22c937
*** ../vim-7.4.552/src/os_unix.c	2014-11-19 18:48:41.515814987 +0100
22c937
--- src/os_unix.c	2014-11-23 13:47:50.484703720 +0100
22c937
***************
22c937
*** 1609,1615 ****
22c937
  /*
22c937
   * If the X11 connection was lost try to restore it.
22c937
   * Helps when the X11 server was stopped and restarted while Vim was inactive
22c937
!  * (e.g. though tmux).
22c937
   */
22c937
      static void
22c937
  may_restore_clipboard()
22c937
--- 1609,1615 ----
22c937
  /*
22c937
   * If the X11 connection was lost try to restore it.
22c937
   * Helps when the X11 server was stopped and restarted while Vim was inactive
22c937
!  * (e.g. through tmux).
22c937
   */
22c937
      static void
22c937
  may_restore_clipboard()
22c937
*** ../vim-7.4.552/src/Make_vms.mms	2014-03-12 16:51:35.048792541 +0100
22c937
--- src/Make_vms.mms	2014-08-10 16:27:11.040711199 +0200
22c937
***************
22c937
*** 2,8 ****
22c937
  # Makefile for Vim on OpenVMS
22c937
  #
22c937
  # Maintainer:   Zoltan Arpadffy <arpadffy@polarhome.com>
22c937
! # Last change:  2014 Feb 24
22c937
  #
22c937
  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
22c937
  # with MMS and MMK
22c937
--- 2,8 ----
22c937
  # Makefile for Vim on OpenVMS
22c937
  #
22c937
  # Maintainer:   Zoltan Arpadffy <arpadffy@polarhome.com>
22c937
! # Last change:  2014 Aug 10
22c937
  #
22c937
  # This has script been tested on VMS 6.2 to 8.2 on DEC Alpha, VAX and IA64
22c937
  # with MMS and MMK
22c937
***************
22c937
*** 309,315 ****
22c937
  ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
22c937
  	   $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(SNIFF_LIB) $(RUBY_LIB)
22c937
  
22c937
! SRC =	blowfish.c buffer.c charset.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_cmds2.c \
22c937
  	ex_docmd.c ex_eval.c ex_getln.c if_xcmdsrv.c fileio.c fold.c getchar.c \
22c937
  	hardcopy.c hashtab.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
22c937
  	misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c\
22c937
--- 309,315 ----
22c937
  ALL_LIBS = $(LIBS) $(GUI_LIB_DIR) $(GUI_LIB) \
22c937
  	   $(PERL_LIB) $(PYTHON_LIB) $(TCL_LIB) $(SNIFF_LIB) $(RUBY_LIB)
22c937
  
22c937
! SRC =	blowfish.c buffer.c charset.c crypt.c, crypt_zip.c diff.c digraph.c edit.c eval.c ex_cmds.c ex_cmds2.c \
22c937
  	ex_docmd.c ex_eval.c ex_getln.c if_xcmdsrv.c fileio.c fold.c getchar.c \
22c937
  	hardcopy.c hashtab.c main.c mark.c menu.c mbyte.c memfile.c memline.c message.c misc1.c \
22c937
  	misc2.c move.c normal.c ops.c option.c popupmnu.c quickfix.c regexp.c search.c sha256.c\
22c937
***************
22c937
*** 318,324 ****
22c937
  	$(GUI_SRC) $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(SNIFF_SRC) \
22c937
  	$(RUBY_SRC) $(HANGULIN_SRC) $(MZSCH_SRC)
22c937
  
22c937
! OBJ =	blowfish.obj buffer.obj charset.obj diff.obj digraph.obj edit.obj eval.obj \
22c937
  	ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj \
22c937
  	if_xcmdsrv.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj main.obj mark.obj \
22c937
  	menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
22c937
--- 318,324 ----
22c937
  	$(GUI_SRC) $(PERL_SRC) $(PYTHON_SRC) $(TCL_SRC) $(SNIFF_SRC) \
22c937
  	$(RUBY_SRC) $(HANGULIN_SRC) $(MZSCH_SRC)
22c937
  
22c937
! OBJ =	blowfish.obj buffer.obj charset.obj crypt.obj, crypt_zip.obj diff.obj digraph.obj edit.obj eval.obj \
22c937
  	ex_cmds.obj ex_cmds2.obj ex_docmd.obj ex_eval.obj ex_getln.obj \
22c937
  	if_xcmdsrv.obj fileio.obj fold.obj getchar.obj hardcopy.obj hashtab.obj main.obj mark.obj \
22c937
  	menu.obj memfile.obj memline.obj message.obj misc1.obj misc2.obj \
22c937
*** ../vim-7.4.552/src/proto/os_vms.pro	2014-03-12 16:51:35.060792541 +0100
22c937
--- src/proto/os_vms.pro	2014-11-12 15:34:29.219347574 +0100
22c937
***************
22c937
*** 5,15 ****
22c937
  char_u *mch_getenv __ARGS((char_u *lognam));
22c937
  int mch_setenv __ARGS((char *var, char *value, int x));
22c937
  int vms_sys __ARGS((char *cmd, char *out, char *inp));
22c937
  int vms_sys_status __ARGS((int status));
22c937
  int vms_read __ARGS((char *inbuf, size_t nbytes));
22c937
- char *vms_tolower __ARGS((char *name));
22c937
  int mch_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags));
22c937
  int mch_expandpath __ARGS((garray_T *gap, char_u *path, int flags));
22c937
  void *vms_fixfilename __ARGS((void *instring));
22c937
  void vms_remove_version __ARGS((void *fname));
22c937
  /* vim: set ft=c : */
22c937
--- 5,16 ----
22c937
  char_u *mch_getenv __ARGS((char_u *lognam));
22c937
  int mch_setenv __ARGS((char *var, char *value, int x));
22c937
  int vms_sys __ARGS((char *cmd, char *out, char *inp));
22c937
+ char *vms_tolower __ARGS((char *name));
22c937
  int vms_sys_status __ARGS((int status));
22c937
  int vms_read __ARGS((char *inbuf, size_t nbytes));
22c937
  int mch_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags));
22c937
  int mch_expandpath __ARGS((garray_T *gap, char_u *path, int flags));
22c937
  void *vms_fixfilename __ARGS((void *instring));
22c937
  void vms_remove_version __ARGS((void *fname));
22c937
+ int RealWaitForChar __ARGS((int fd, long msec, int *check_for_gpm));
22c937
  /* vim: set ft=c : */
22c937
*** ../vim-7.4.552/src/INSTALL	2011-05-19 12:36:17.000000000 +0200
22c937
--- src/INSTALL	2014-07-06 14:30:41.411368351 +0200
22c937
***************
22c937
*** 316,322 ****
22c937
  the `configure' script.  `configure' automatically checks for the
22c937
  source code in the directory that `configure' is in and in `..'.
22c937
  
22c937
!    If you have to use a `make' that does not supports the `VPATH'
22c937
  variable, you have to compile the package for one architecture at a time
22c937
  in the source code directory.  After you have installed the package for
22c937
  one architecture, use `make distclean' before reconfiguring for another
22c937
--- 316,322 ----
22c937
  the `configure' script.  `configure' automatically checks for the
22c937
  source code in the directory that `configure' is in and in `..'.
22c937
  
22c937
!    If you have to use a `make' that does not support the `VPATH'
22c937
  variable, you have to compile the package for one architecture at a time
22c937
  in the source code directory.  After you have installed the package for
22c937
  one architecture, use `make distclean' before reconfiguring for another
22c937
*** ../vim-7.4.552/src/version.c	2014-12-14 00:43:50.335749455 +0100
22c937
--- src/version.c	2014-12-17 12:39:41.933558755 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     553,
22c937
  /**/
22c937
22c937
-- 
22c937
hundred-and-one symptoms of being an internet addict:
22c937
1. You actually wore a blue ribbon to protest the Communications Decency Act.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///