Karsten Hopp 41e3e8
To: vim-dev@vim.org
Karsten Hopp 41e3e8
Subject: Patch 7.2.320
Karsten Hopp 41e3e8
Fcc: outbox
Karsten Hopp 41e3e8
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 41e3e8
Mime-Version: 1.0
Karsten Hopp 41e3e8
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 41e3e8
Content-Transfer-Encoding: 8bit
Karsten Hopp 41e3e8
------------
Karsten Hopp 41e3e8
Karsten Hopp 41e3e8
Patch 7.2.320
Karsten Hopp 41e3e8
Problem:    Unused function in Mzscheme interface.
Karsten Hopp 41e3e8
Solution:   Remove the function and what depends on it. (Dominique Pelle)
Karsten Hopp 41e3e8
Files:	    src/if_mzsch.c, src/proto/if_mzsch.pro
Karsten Hopp 41e3e8
Karsten Hopp 41e3e8
Karsten Hopp 41e3e8
*** ../vim-7.2.319/src/if_mzsch.c	2009-09-11 12:20:47.000000000 +0200
Karsten Hopp 41e3e8
--- src/if_mzsch.c	2009-12-16 19:01:04.000000000 +0100
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 70,83 ****
Karsten Hopp 41e3e8
      Scheme_Object   *port;
Karsten Hopp 41e3e8
  } Port_Info;
Karsten Hopp 41e3e8
  
Karsten Hopp 41e3e8
- /* info for do_apply */
Karsten Hopp 41e3e8
- typedef struct
Karsten Hopp 41e3e8
- {
Karsten Hopp 41e3e8
-     Scheme_Object   *proc;
Karsten Hopp 41e3e8
-     int		    argc;
Karsten Hopp 41e3e8
-     Scheme_Object   **argv;
Karsten Hopp 41e3e8
- } Apply_Info;
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
  /*
Karsten Hopp 41e3e8
   *========================================================================
Karsten Hopp 41e3e8
   *  Vim-Control Commands
Karsten Hopp 41e3e8
--- 70,75 ----
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 160,166 ****
Karsten Hopp 41e3e8
  static Scheme_Object *extract_exn_message(Scheme_Object *v);
Karsten Hopp 41e3e8
  static Scheme_Object *do_eval(void *, int noargc, Scheme_Object **noargv);
Karsten Hopp 41e3e8
  static Scheme_Object *do_load(void *, int noargc, Scheme_Object **noargv);
Karsten Hopp 41e3e8
- static Scheme_Object *do_apply(void *, int noargc, Scheme_Object **noargv);
Karsten Hopp 41e3e8
  static void register_vim_exn(void);
Karsten Hopp 41e3e8
  static vim_mz_buffer *get_buffer_arg(const char *fname, int argnum,
Karsten Hopp 41e3e8
  	int argc, Scheme_Object **argv);
Karsten Hopp 41e3e8
--- 152,157 ----
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 1056,1062 ****
Karsten Hopp 41e3e8
  	MZ_GC_REG();
Karsten Hopp 41e3e8
  	config = scheme_config;
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
! 	/* recreate ports each call effectivelly clearing these ones */
Karsten Hopp 41e3e8
  	curout = scheme_make_string_output_port();
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
  	curerr = scheme_make_string_output_port();
Karsten Hopp 41e3e8
--- 1047,1053 ----
Karsten Hopp 41e3e8
  	MZ_GC_REG();
Karsten Hopp 41e3e8
  	config = scheme_config;
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
! 	/* recreate ports each call effectively clearing these ones */
Karsten Hopp 41e3e8
  	curout = scheme_make_string_output_port();
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
  	curerr = scheme_make_string_output_port();
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 1196,1231 ****
Karsten Hopp 41e3e8
      }
Karsten Hopp 41e3e8
  }
Karsten Hopp 41e3e8
  
Karsten Hopp 41e3e8
- /*
Karsten Hopp 41e3e8
-  * apply MzScheme procedure with arguments,
Karsten Hopp 41e3e8
-  * handling errors
Karsten Hopp 41e3e8
-  */
Karsten Hopp 41e3e8
-     Scheme_Object *
Karsten Hopp 41e3e8
- mzvim_apply(Scheme_Object *proc, int argc, Scheme_Object **argv)
Karsten Hopp 41e3e8
- {
Karsten Hopp 41e3e8
-     if (mzscheme_init())
Karsten Hopp 41e3e8
- 	return FAIL;
Karsten Hopp 41e3e8
-     else
Karsten Hopp 41e3e8
-     {
Karsten Hopp 41e3e8
- 	Apply_Info	data = {NULL, 0, NULL};
Karsten Hopp 41e3e8
- 	Scheme_Object	*ret = NULL;
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
- 	MZ_GC_DECL_REG(5);
Karsten Hopp 41e3e8
- 	MZ_GC_VAR_IN_REG(0, ret);
Karsten Hopp 41e3e8
- 	MZ_GC_VAR_IN_REG(1, data.proc);
Karsten Hopp 41e3e8
- 	MZ_GC_ARRAY_VAR_IN_REG(2, data.argv, argc);
Karsten Hopp 41e3e8
- 	MZ_GC_REG();
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
- 	data.proc = proc;
Karsten Hopp 41e3e8
- 	data.argc = argc;
Karsten Hopp 41e3e8
- 	data.argv = argv;
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
- 	eval_with_exn_handling(&data, do_apply, &ret;;
Karsten Hopp 41e3e8
- 	MZ_GC_UNREG();
Karsten Hopp 41e3e8
- 	return ret;
Karsten Hopp 41e3e8
-     }
Karsten Hopp 41e3e8
- }
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
      static Scheme_Object *
Karsten Hopp 41e3e8
  do_load(void *data, int noargc, Scheme_Object **noargv)
Karsten Hopp 41e3e8
  {
Karsten Hopp 41e3e8
--- 1187,1192 ----
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 1257,1263 ****
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
      }
Karsten Hopp 41e3e8
  
Karsten Hopp 41e3e8
!     /* errors will be caught in do_mzscheme_comamnd and ex_mzfile */
Karsten Hopp 41e3e8
      scheme_close_input_port(pinfo->port);
Karsten Hopp 41e3e8
      MZ_GC_CHECK();
Karsten Hopp 41e3e8
      pinfo->port = NULL;
Karsten Hopp 41e3e8
--- 1218,1224 ----
Karsten Hopp 41e3e8
  	MZ_GC_CHECK();
Karsten Hopp 41e3e8
      }
Karsten Hopp 41e3e8
  
Karsten Hopp 41e3e8
!     /* errors will be caught in do_mzscheme_command and ex_mzfile */
Karsten Hopp 41e3e8
      scheme_close_input_port(pinfo->port);
Karsten Hopp 41e3e8
      MZ_GC_CHECK();
Karsten Hopp 41e3e8
      pinfo->port = NULL;
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 1348,1360 ****
Karsten Hopp 41e3e8
      return scheme_eval_string_all((char *)s, environment, TRUE);
Karsten Hopp 41e3e8
  }
Karsten Hopp 41e3e8
  
Karsten Hopp 41e3e8
-     static Scheme_Object *
Karsten Hopp 41e3e8
- do_apply(void *a, int noargc, Scheme_Object **noargv)
Karsten Hopp 41e3e8
- {
Karsten Hopp 41e3e8
-     Apply_Info	*info = (Apply_Info *)a;
Karsten Hopp 41e3e8
-     return scheme_apply(info->proc, info->argc, info->argv);
Karsten Hopp 41e3e8
- }
Karsten Hopp 41e3e8
- 
Karsten Hopp 41e3e8
  /*
Karsten Hopp 41e3e8
   *========================================================================
Karsten Hopp 41e3e8
   *  3.  MzScheme I/O Handlers
Karsten Hopp 41e3e8
--- 1309,1314 ----
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 2128,2134 ****
Karsten Hopp 41e3e8
      static Scheme_Object *
Karsten Hopp 41e3e8
  set_buffer_line(void *data, int argc, Scheme_Object **argv)
Karsten Hopp 41e3e8
  {
Karsten Hopp 41e3e8
!     /* First of all, we check the the of the supplied MzScheme object.
Karsten Hopp 41e3e8
       * There are three cases:
Karsten Hopp 41e3e8
       *	  1. #f - this is a deletion.
Karsten Hopp 41e3e8
       *	  2. A string	   - this is a replacement.
Karsten Hopp 41e3e8
--- 2082,2088 ----
Karsten Hopp 41e3e8
      static Scheme_Object *
Karsten Hopp 41e3e8
  set_buffer_line(void *data, int argc, Scheme_Object **argv)
Karsten Hopp 41e3e8
  {
Karsten Hopp 41e3e8
!     /* First of all, we check the value of the supplied MzScheme object.
Karsten Hopp 41e3e8
       * There are three cases:
Karsten Hopp 41e3e8
       *	  1. #f - this is a deletion.
Karsten Hopp 41e3e8
       *	  2. A string	   - this is a replacement.
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 2428,2434 ****
Karsten Hopp 41e3e8
  /*
Karsten Hopp 41e3e8
   * (insert-buff-line-list {linenr} {string/string-list} [buffer])
Karsten Hopp 41e3e8
   *
Karsten Hopp 41e3e8
!  * Insert a number of lines into the specified buffer after the specifed line.
Karsten Hopp 41e3e8
   * The line number is in Vim format (1-based). The lines to be inserted are
Karsten Hopp 41e3e8
   * given as an MzScheme list of string objects or as a single string. The lines
Karsten Hopp 41e3e8
   * to be added are checked for validity and correct format. Errors are
Karsten Hopp 41e3e8
--- 2382,2388 ----
Karsten Hopp 41e3e8
  /*
Karsten Hopp 41e3e8
   * (insert-buff-line-list {linenr} {string/string-list} [buffer])
Karsten Hopp 41e3e8
   *
Karsten Hopp 41e3e8
!  * Insert a number of lines into the specified buffer after the specified line.
Karsten Hopp 41e3e8
   * The line number is in Vim format (1-based). The lines to be inserted are
Karsten Hopp 41e3e8
   * given as an MzScheme list of string objects or as a single string. The lines
Karsten Hopp 41e3e8
   * to be added are checked for validity and correct format. Errors are
Karsten Hopp 41e3e8
*** ../vim-7.2.319/src/proto/if_mzsch.pro	2009-05-26 22:58:43.000000000 +0200
Karsten Hopp 41e3e8
--- src/proto/if_mzsch.pro	2009-12-16 19:01:01.000000000 +0100
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 13,20 ****
Karsten Hopp 41e3e8
  void mzvim_check_threads __ARGS((void));
Karsten Hopp 41e3e8
  void mzvim_reset_timer __ARGS((void));
Karsten Hopp 41e3e8
  void *mzvim_eval_string __ARGS((char_u *str));
Karsten Hopp 41e3e8
- struct Scheme_Object *mzvim_apply __ARGS((struct Scheme_Object *, int argc,
Karsten Hopp 41e3e8
-     struct Scheme_Object **));
Karsten Hopp 41e3e8
  int mzthreads_allowed __ARGS((void));
Karsten Hopp 41e3e8
  void mzscheme_main __ARGS((void));
Karsten Hopp 41e3e8
  /* vim: set ft=c : */
Karsten Hopp 41e3e8
--- 13,18 ----
Karsten Hopp 41e3e8
*** ../vim-7.2.319/src/version.c	2009-12-16 18:49:09.000000000 +0100
Karsten Hopp 41e3e8
--- src/version.c	2009-12-16 18:53:48.000000000 +0100
Karsten Hopp 41e3e8
***************
Karsten Hopp 41e3e8
*** 683,684 ****
Karsten Hopp 41e3e8
--- 683,686 ----
Karsten Hopp 41e3e8
  {   /* Add new patch number below this line */
Karsten Hopp 41e3e8
+ /**/
Karsten Hopp 41e3e8
+     320,
Karsten Hopp 41e3e8
  /**/
Karsten Hopp 41e3e8
Karsten Hopp 41e3e8
-- 
Karsten Hopp 41e3e8
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 41e3e8
38. You wake up at 3 a.m. to go to the bathroom and stop and check your e-mail
Karsten Hopp 41e3e8
    on the way back to bed.
Karsten Hopp 41e3e8
Karsten Hopp 41e3e8
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 41e3e8
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 41e3e8
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 41e3e8
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///