Karsten Hopp e0ae17
To: vim_dev@googlegroups.com
Karsten Hopp e0ae17
Subject: Patch 7.4.759
Karsten Hopp e0ae17
Fcc: outbox
Karsten Hopp e0ae17
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e0ae17
Mime-Version: 1.0
Karsten Hopp e0ae17
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e0ae17
Content-Transfer-Encoding: 8bit
Karsten Hopp e0ae17
------------
Karsten Hopp e0ae17
Karsten Hopp e0ae17
Patch 7.4.759
Karsten Hopp e0ae17
Problem:    Building with Lua 5.3 doesn't work, symbols have changed.
Karsten Hopp e0ae17
Solution:   Use the new names for the new version. (Felix Schnizlein)
Karsten Hopp e0ae17
Files:      src/if_lua.c
Karsten Hopp e0ae17
Karsten Hopp e0ae17
Karsten Hopp e0ae17
*** ../vim-7.4.758/src/if_lua.c	2015-02-17 16:28:51.365508352 +0100
Karsten Hopp e0ae17
--- src/if_lua.c	2015-06-25 18:24:28.026834336 +0200
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 111,117 ****
Karsten Hopp e0ae17
--- 111,122 ----
Karsten Hopp e0ae17
  #define lua_tointeger dll_lua_tointeger
Karsten Hopp e0ae17
  #define lua_call dll_lua_call
Karsten Hopp e0ae17
  #define lua_pcall dll_lua_pcall
Karsten Hopp e0ae17
+ 
Karsten Hopp e0ae17
+ #elif LUA_VERSION_NUM <= 502
Karsten Hopp e0ae17
+ #define lua_replace dll_lua_replace
Karsten Hopp e0ae17
+ #define lua_remove dll_lua_remove
Karsten Hopp e0ae17
  #else
Karsten Hopp e0ae17
+ #define lua_rotate dll_lua_rotate
Karsten Hopp e0ae17
  #define lua_tonumberx dll_lua_tonumberx
Karsten Hopp e0ae17
  #define lua_tointegerx dll_lua_tointegerx
Karsten Hopp e0ae17
  #define lua_callk dll_lua_callk
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 124,131 ****
Karsten Hopp e0ae17
  #define lua_gettop dll_lua_gettop
Karsten Hopp e0ae17
  #define lua_settop dll_lua_settop
Karsten Hopp e0ae17
  #define lua_pushvalue dll_lua_pushvalue
Karsten Hopp e0ae17
! #define lua_replace dll_lua_replace
Karsten Hopp e0ae17
! #define lua_remove dll_lua_remove
Karsten Hopp e0ae17
  #define lua_isnumber dll_lua_isnumber
Karsten Hopp e0ae17
  #define lua_isstring dll_lua_isstring
Karsten Hopp e0ae17
  #define lua_type dll_lua_type
Karsten Hopp e0ae17
--- 129,135 ----
Karsten Hopp e0ae17
  #define lua_gettop dll_lua_gettop
Karsten Hopp e0ae17
  #define lua_settop dll_lua_settop
Karsten Hopp e0ae17
  #define lua_pushvalue dll_lua_pushvalue
Karsten Hopp e0ae17
! #define lua_copy dll_lua_copy
Karsten Hopp e0ae17
  #define lua_isnumber dll_lua_isnumber
Karsten Hopp e0ae17
  #define lua_isstring dll_lua_isstring
Karsten Hopp e0ae17
  #define lua_type dll_lua_type
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 195,201 ****
Karsten Hopp e0ae17
--- 199,210 ----
Karsten Hopp e0ae17
  lua_Integer (*dll_lua_tointeger) (lua_State *L, int idx);
Karsten Hopp e0ae17
  void (*dll_lua_call) (lua_State *L, int nargs, int nresults);
Karsten Hopp e0ae17
  int (*dll_lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
Karsten Hopp e0ae17
+ #elif LUA_VERSION_NUM <= 502
Karsten Hopp e0ae17
+ void (*dll_lua_replace) (lua_State *L, int idx);
Karsten Hopp e0ae17
+ void (*dll_lua_remove) (lua_State *L, int idx);
Karsten Hopp e0ae17
  #else
Karsten Hopp e0ae17
+ 
Karsten Hopp e0ae17
+ void  (*dll_lua_rotate) (lua_State *L, int idx, int n);
Karsten Hopp e0ae17
  lua_Number (*dll_lua_tonumberx) (lua_State *L, int idx, int *isnum);
Karsten Hopp e0ae17
  lua_Integer (*dll_lua_tointegerx) (lua_State *L, int idx, int *isnum);
Karsten Hopp e0ae17
  void (*dll_lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 204,217 ****
Karsten Hopp e0ae17
  	int ctx, lua_CFunction k);
Karsten Hopp e0ae17
  void (*dll_lua_getglobal) (lua_State *L, const char *var);
Karsten Hopp e0ae17
  void (*dll_lua_setglobal) (lua_State *L, const char *var);
Karsten Hopp e0ae17
  #endif
Karsten Hopp e0ae17
  const char *(*dll_lua_typename) (lua_State *L, int tp);
Karsten Hopp e0ae17
  void       (*dll_lua_close) (lua_State *L);
Karsten Hopp e0ae17
  int (*dll_lua_gettop) (lua_State *L);
Karsten Hopp e0ae17
  void (*dll_lua_settop) (lua_State *L, int idx);
Karsten Hopp e0ae17
  void (*dll_lua_pushvalue) (lua_State *L, int idx);
Karsten Hopp e0ae17
- void (*dll_lua_replace) (lua_State *L, int idx);
Karsten Hopp e0ae17
- void (*dll_lua_remove) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_isnumber) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_isstring) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_type) (lua_State *L, int idx);
Karsten Hopp e0ae17
--- 213,225 ----
Karsten Hopp e0ae17
  	int ctx, lua_CFunction k);
Karsten Hopp e0ae17
  void (*dll_lua_getglobal) (lua_State *L, const char *var);
Karsten Hopp e0ae17
  void (*dll_lua_setglobal) (lua_State *L, const char *var);
Karsten Hopp e0ae17
+ void (*dll_lua_copy) (lua_State *L, int fromidx, int toidx);
Karsten Hopp e0ae17
  #endif
Karsten Hopp e0ae17
  const char *(*dll_lua_typename) (lua_State *L, int tp);
Karsten Hopp e0ae17
  void       (*dll_lua_close) (lua_State *L);
Karsten Hopp e0ae17
  int (*dll_lua_gettop) (lua_State *L);
Karsten Hopp e0ae17
  void (*dll_lua_settop) (lua_State *L, int idx);
Karsten Hopp e0ae17
  void (*dll_lua_pushvalue) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_isnumber) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_isstring) (lua_State *L, int idx);
Karsten Hopp e0ae17
  int (*dll_lua_type) (lua_State *L, int idx);
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 288,294 ****
Karsten Hopp e0ae17
--- 296,307 ----
Karsten Hopp e0ae17
      {"lua_tointeger", (luaV_function) &dll_lua_tointeger},
Karsten Hopp e0ae17
      {"lua_call", (luaV_function) &dll_lua_call},
Karsten Hopp e0ae17
      {"lua_pcall", (luaV_function) &dll_lua_pcall},
Karsten Hopp e0ae17
+ #elif LUA_VERSION_NUM <= 502
Karsten Hopp e0ae17
+     {"lua_replace", (luaV_function) &dll_lua_replace},
Karsten Hopp e0ae17
+     {"lua_remove", (luaV_function) &dll_lua_remove},
Karsten Hopp e0ae17
  #else
Karsten Hopp e0ae17
+     {"lua_rotate", (luaV_function) &dll_lua_rotate},
Karsten Hopp e0ae17
+     {"lua_copy", (luaV_function) &dll_lua_copy},
Karsten Hopp e0ae17
      {"lua_tonumberx", (luaV_function) &dll_lua_tonumberx},
Karsten Hopp e0ae17
      {"lua_tointegerx", (luaV_function) &dll_lua_tointegerx},
Karsten Hopp e0ae17
      {"lua_callk", (luaV_function) &dll_lua_callk},
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 301,308 ****
Karsten Hopp e0ae17
      {"lua_gettop", (luaV_function) &dll_lua_gettop},
Karsten Hopp e0ae17
      {"lua_settop", (luaV_function) &dll_lua_settop},
Karsten Hopp e0ae17
      {"lua_pushvalue", (luaV_function) &dll_lua_pushvalue},
Karsten Hopp e0ae17
-     {"lua_replace", (luaV_function) &dll_lua_replace},
Karsten Hopp e0ae17
-     {"lua_remove", (luaV_function) &dll_lua_remove},
Karsten Hopp e0ae17
      {"lua_isnumber", (luaV_function) &dll_lua_isnumber},
Karsten Hopp e0ae17
      {"lua_isstring", (luaV_function) &dll_lua_isstring},
Karsten Hopp e0ae17
      {"lua_type", (luaV_function) &dll_lua_type},
Karsten Hopp e0ae17
--- 314,319 ----
Karsten Hopp e0ae17
*** ../vim-7.4.758/src/version.c	2015-06-25 18:20:30.437271806 +0200
Karsten Hopp e0ae17
--- src/version.c	2015-06-25 18:25:17.978321826 +0200
Karsten Hopp e0ae17
***************
Karsten Hopp e0ae17
*** 743,744 ****
Karsten Hopp e0ae17
--- 743,746 ----
Karsten Hopp e0ae17
  {   /* Add new patch number below this line */
Karsten Hopp e0ae17
+ /**/
Karsten Hopp e0ae17
+     759,
Karsten Hopp e0ae17
  /**/
Karsten Hopp e0ae17
Karsten Hopp e0ae17
-- 
Karsten Hopp e0ae17
hundred-and-one symptoms of being an internet addict:
Karsten Hopp e0ae17
150. You find yourself counting emoticons to get to sleep.
Karsten Hopp e0ae17
Karsten Hopp e0ae17
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e0ae17
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e0ae17
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp e0ae17
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///