Karsten Hopp 8d3a2b
To: vim_dev@googlegroups.com
Karsten Hopp 8d3a2b
Subject: Patch 7.4.763
Karsten Hopp 8d3a2b
Fcc: outbox
Karsten Hopp 8d3a2b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8d3a2b
Mime-Version: 1.0
Karsten Hopp 8d3a2b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8d3a2b
Content-Transfer-Encoding: 8bit
Karsten Hopp 8d3a2b
------------
Karsten Hopp 8d3a2b
Karsten Hopp 8d3a2b
Patch 7.4.763 (after 7.4.759)
Karsten Hopp 8d3a2b
Problem:    Building with Lua 5.1 doesn't work.
Karsten Hopp 8d3a2b
Solution:   Define lua_replace and lua_remove. (KF Leong)
Karsten Hopp 8d3a2b
Files:      src/if_lua.c
Karsten Hopp 8d3a2b
Karsten Hopp 8d3a2b
Karsten Hopp 8d3a2b
*** ../vim-7.4.762/src/if_lua.c	2015-06-25 18:27:27.312991420 +0200
Karsten Hopp 8d3a2b
--- src/if_lua.c	2015-06-27 18:30:11.046265315 +0200
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 111,122 ****
Karsten Hopp 8d3a2b
  #define lua_tointeger dll_lua_tointeger
Karsten Hopp 8d3a2b
  #define lua_call dll_lua_call
Karsten Hopp 8d3a2b
  #define lua_pcall dll_lua_pcall
Karsten Hopp 8d3a2b
- 
Karsten Hopp 8d3a2b
- #elif LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
- #define lua_replace dll_lua_replace
Karsten Hopp 8d3a2b
- #define lua_remove dll_lua_remove
Karsten Hopp 8d3a2b
  #else
Karsten Hopp 8d3a2b
- #define lua_rotate dll_lua_rotate
Karsten Hopp 8d3a2b
  #define lua_tonumberx dll_lua_tonumberx
Karsten Hopp 8d3a2b
  #define lua_tointegerx dll_lua_tointegerx
Karsten Hopp 8d3a2b
  #define lua_callk dll_lua_callk
Karsten Hopp 8d3a2b
--- 111,117 ----
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 124,135 ****
Karsten Hopp 8d3a2b
  #define lua_getglobal dll_lua_getglobal
Karsten Hopp 8d3a2b
  #define lua_setglobal dll_lua_setglobal
Karsten Hopp 8d3a2b
  #endif
Karsten Hopp 8d3a2b
  #define lua_typename dll_lua_typename
Karsten Hopp 8d3a2b
  #define lua_close dll_lua_close
Karsten Hopp 8d3a2b
  #define lua_gettop dll_lua_gettop
Karsten Hopp 8d3a2b
  #define lua_settop dll_lua_settop
Karsten Hopp 8d3a2b
  #define lua_pushvalue dll_lua_pushvalue
Karsten Hopp 8d3a2b
- #define lua_copy dll_lua_copy
Karsten Hopp 8d3a2b
  #define lua_isnumber dll_lua_isnumber
Karsten Hopp 8d3a2b
  #define lua_isstring dll_lua_isstring
Karsten Hopp 8d3a2b
  #define lua_type dll_lua_type
Karsten Hopp 8d3a2b
--- 119,137 ----
Karsten Hopp 8d3a2b
  #define lua_getglobal dll_lua_getglobal
Karsten Hopp 8d3a2b
  #define lua_setglobal dll_lua_setglobal
Karsten Hopp 8d3a2b
  #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
+ #define lua_replace dll_lua_replace
Karsten Hopp 8d3a2b
+ #define lua_remove dll_lua_remove
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM >= 503
Karsten Hopp 8d3a2b
+ #define lua_rotate dll_lua_rotate
Karsten Hopp 8d3a2b
+ #define lua_copy dll_lua_copy
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
  #define lua_typename dll_lua_typename
Karsten Hopp 8d3a2b
  #define lua_close dll_lua_close
Karsten Hopp 8d3a2b
  #define lua_gettop dll_lua_gettop
Karsten Hopp 8d3a2b
  #define lua_settop dll_lua_settop
Karsten Hopp 8d3a2b
  #define lua_pushvalue dll_lua_pushvalue
Karsten Hopp 8d3a2b
  #define lua_isnumber dll_lua_isnumber
Karsten Hopp 8d3a2b
  #define lua_isstring dll_lua_isstring
Karsten Hopp 8d3a2b
  #define lua_type dll_lua_type
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 199,210 ****
Karsten Hopp 8d3a2b
  lua_Integer (*dll_lua_tointeger) (lua_State *L, int idx);
Karsten Hopp 8d3a2b
  void (*dll_lua_call) (lua_State *L, int nargs, int nresults);
Karsten Hopp 8d3a2b
  int (*dll_lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
Karsten Hopp 8d3a2b
- #elif LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
- void (*dll_lua_replace) (lua_State *L, int idx);
Karsten Hopp 8d3a2b
- void (*dll_lua_remove) (lua_State *L, int idx);
Karsten Hopp 8d3a2b
  #else
Karsten Hopp 8d3a2b
- 
Karsten Hopp 8d3a2b
- void  (*dll_lua_rotate) (lua_State *L, int idx, int n);
Karsten Hopp 8d3a2b
  lua_Number (*dll_lua_tonumberx) (lua_State *L, int idx, int *isnum);
Karsten Hopp 8d3a2b
  lua_Integer (*dll_lua_tointegerx) (lua_State *L, int idx, int *isnum);
Karsten Hopp 8d3a2b
  void (*dll_lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
Karsten Hopp 8d3a2b
--- 201,207 ----
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 213,218 ****
Karsten Hopp 8d3a2b
--- 210,222 ----
Karsten Hopp 8d3a2b
  	int ctx, lua_CFunction k);
Karsten Hopp 8d3a2b
  void (*dll_lua_getglobal) (lua_State *L, const char *var);
Karsten Hopp 8d3a2b
  void (*dll_lua_setglobal) (lua_State *L, const char *var);
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
+ void (*dll_lua_replace) (lua_State *L, int idx);
Karsten Hopp 8d3a2b
+ void (*dll_lua_remove) (lua_State *L, int idx);
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM >= 503
Karsten Hopp 8d3a2b
+ void  (*dll_lua_rotate) (lua_State *L, int idx, int n);
Karsten Hopp 8d3a2b
  void (*dll_lua_copy) (lua_State *L, int fromidx, int toidx);
Karsten Hopp 8d3a2b
  #endif
Karsten Hopp 8d3a2b
  const char *(*dll_lua_typename) (lua_State *L, int tp);
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 296,307 ****
Karsten Hopp 8d3a2b
      {"lua_tointeger", (luaV_function) &dll_lua_tointeger},
Karsten Hopp 8d3a2b
      {"lua_call", (luaV_function) &dll_lua_call},
Karsten Hopp 8d3a2b
      {"lua_pcall", (luaV_function) &dll_lua_pcall},
Karsten Hopp 8d3a2b
- #elif LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
-     {"lua_replace", (luaV_function) &dll_lua_replace},
Karsten Hopp 8d3a2b
-     {"lua_remove", (luaV_function) &dll_lua_remove},
Karsten Hopp 8d3a2b
  #else
Karsten Hopp 8d3a2b
-     {"lua_rotate", (luaV_function) &dll_lua_rotate},
Karsten Hopp 8d3a2b
-     {"lua_copy", (luaV_function) &dll_lua_copy},
Karsten Hopp 8d3a2b
      {"lua_tonumberx", (luaV_function) &dll_lua_tonumberx},
Karsten Hopp 8d3a2b
      {"lua_tointegerx", (luaV_function) &dll_lua_tointegerx},
Karsten Hopp 8d3a2b
      {"lua_callk", (luaV_function) &dll_lua_callk},
Karsten Hopp 8d3a2b
--- 300,306 ----
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 309,314 ****
Karsten Hopp 8d3a2b
--- 308,321 ----
Karsten Hopp 8d3a2b
      {"lua_getglobal", (luaV_function) &dll_lua_getglobal},
Karsten Hopp 8d3a2b
      {"lua_setglobal", (luaV_function) &dll_lua_setglobal},
Karsten Hopp 8d3a2b
  #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM <= 502
Karsten Hopp 8d3a2b
+     {"lua_replace", (luaV_function) &dll_lua_replace},
Karsten Hopp 8d3a2b
+     {"lua_remove", (luaV_function) &dll_lua_remove},
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
+ #if LUA_VERSION_NUM >= 503
Karsten Hopp 8d3a2b
+     {"lua_rotate", (luaV_function) &dll_lua_rotate},
Karsten Hopp 8d3a2b
+     {"lua_copy", (luaV_function) &dll_lua_copy},
Karsten Hopp 8d3a2b
+ #endif
Karsten Hopp 8d3a2b
      {"lua_typename", (luaV_function) &dll_lua_typename},
Karsten Hopp 8d3a2b
      {"lua_close", (luaV_function) &dll_lua_close},
Karsten Hopp 8d3a2b
      {"lua_gettop", (luaV_function) &dll_lua_gettop},
Karsten Hopp 8d3a2b
*** ../vim-7.4.762/src/version.c	2015-06-27 18:34:19.503618396 +0200
Karsten Hopp 8d3a2b
--- src/version.c	2015-06-27 18:35:56.010574502 +0200
Karsten Hopp 8d3a2b
***************
Karsten Hopp 8d3a2b
*** 743,744 ****
Karsten Hopp 8d3a2b
--- 743,746 ----
Karsten Hopp 8d3a2b
  {   /* Add new patch number below this line */
Karsten Hopp 8d3a2b
+ /**/
Karsten Hopp 8d3a2b
+     763,
Karsten Hopp 8d3a2b
  /**/
Karsten Hopp 8d3a2b
Karsten Hopp 8d3a2b
-- 
Karsten Hopp 8d3a2b
If you feel lonely, try schizophrenia.
Karsten Hopp 8d3a2b
Karsten Hopp 8d3a2b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8d3a2b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8d3a2b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8d3a2b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///