Commit c0f44d25 authored by Kelly Anderson's avatar Kelly Anderson Committed by Rémi Denis-Courmont

Consolidate lua includes in vlc.h

So lua 5.2 compatibility declarations can be made in one place.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent a9571144
...@@ -37,10 +37,6 @@ ...@@ -37,10 +37,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "vlc.h" #include "vlc.h"
#include "libs.h" #include "libs.h"
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_acl.h> #include <vlc_acl.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_extensions.h> #include <vlc_extensions.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -38,9 +38,6 @@ ...@@ -38,9 +38,6 @@
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "input.h" #include "input.h"
#include "../libs.h" #include "../libs.h"
#include "../vlc.h" #include "../vlc.h"
......
...@@ -32,10 +32,6 @@ ...@@ -32,10 +32,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_httpd.h> #include <vlc_httpd.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -37,13 +37,11 @@ ...@@ -37,13 +37,11 @@
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <assert.h> #include <assert.h>
#include "../vlc.h"
#include "input.h" #include "input.h"
#include "playlist.h" #include "playlist.h"
#include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "../extension.h" #include "../extension.h"
......
...@@ -24,6 +24,8 @@ ...@@ -24,6 +24,8 @@
#ifndef VLC_LUA_INPUT_H #ifndef VLC_LUA_INPUT_H
#define VLC_LUA_INPUT_H #define VLC_LUA_INPUT_H
#include "../vlc.h"
input_thread_t * vlclua_get_input_internal( lua_State * ); input_thread_t * vlclua_get_input_internal( lua_State * );
#endif #endif
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
#include <vlc_meta.h> #include <vlc_meta.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -41,10 +41,6 @@ ...@@ -41,10 +41,6 @@
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_keys.h> #include <vlc_keys.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -41,9 +41,6 @@ ...@@ -41,9 +41,6 @@
#include <vlc_url.h> #include <vlc_url.h>
#include <vlc_fs.h> #include <vlc_fs.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#ifdef HAVE_POLL #ifdef HAVE_POLL
#include <poll.h> /* poll structures and defines */ #include <poll.h> /* poll structures and defines */
#endif #endif
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_vout.h> #include <vlc_vout.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "objects.h" #include "objects.h"
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_vout.h> #include <vlc_vout.h>
#include <vlc_osd.h> #include <vlc_osd.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "input.h" #include "input.h"
......
...@@ -37,9 +37,6 @@ ...@@ -37,9 +37,6 @@
#include <vlc_interface.h> #include <vlc_interface.h>
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "playlist.h" #include "playlist.h"
......
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "playlist.h" #include "playlist.h"
......
...@@ -38,9 +38,6 @@ ...@@ -38,9 +38,6 @@
#include <vlc_meta.h> #include <vlc_meta.h>
#include <vlc_aout.h> #include <vlc_aout.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -39,9 +39,6 @@ ...@@ -39,9 +39,6 @@
#include <vlc_aout.h> #include <vlc_aout.h>
#include <vlc_charset.h> #include <vlc_charset.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -34,10 +34,6 @@ ...@@ -34,10 +34,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "variables.h" #include "variables.h"
......
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
#include <vlc_vout.h> #include <vlc_vout.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "input.h" #include "input.h"
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_vlm.h> #include <vlc_vlm.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
#include <vlc_meta.h> #include <vlc_meta.h>
#include <vlc_aout_intf.h> #include <vlc_aout_intf.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#include "playlist.h" #include "playlist.h"
......
...@@ -35,9 +35,6 @@ ...@@ -35,9 +35,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_xml.h> #include <vlc_xml.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
......
...@@ -45,10 +45,6 @@ ...@@ -45,10 +45,6 @@
#include <vlc_stream.h> #include <vlc_stream.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */
#include "vlc.h" #include "vlc.h"
/***************************************************************************** /*****************************************************************************
......
...@@ -36,9 +36,15 @@ ...@@ -36,9 +36,15 @@
#include <vlc_strings.h> #include <vlc_strings.h>
#include <vlc_stream.h> #include <vlc_stream.h>
#define LUA_COMPAT_MODULE
#include <lua.h> /* Low level lua C API */ #include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */ #include <lauxlib.h> /* Higher level C API */
#include <lualib.h> /* Lua libs */ #include <lualib.h> /* Lua libs */
#if LUA_VERSION_NUM >= 502
#define lua_equal(L,idx1,idx2) lua_compare(L,(idx1),(idx2),LUA_OPEQ)
#define lua_objlen(L,idx) lua_rawlen(L,idx)
#define lua_strlen(L,idx) lua_rawlen(L,idx)
#endif
/***************************************************************************** /*****************************************************************************
* Module entry points * Module entry points
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment