summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/lua
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-26 16:23:53 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-26 16:23:53 +0000
commit774176738b2b19beda9e93276a0283a699eb60cf (patch)
tree72a94cf238eac75272132cad1a05aca00db1ab03 /Build/source/texk/web2c/luatexdir/lua
parenteafa63690d492952cf06088933ce31bee58d509e (diff)
texk/web2c/luatex more compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@16826 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua')
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c1
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/limglib.c5
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lkpselib.c2
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/llanglib.c3
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/llualib.c2
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lnodelib.c3
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/lstatslib.c8
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/ltexlib.c4
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luainit.c8
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luastuff.c6
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/luatex.c2
11 files changed, 8 insertions, 36 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c b/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
index 6b350a1249b..adbbd43becb 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lcallbacklib.c
@@ -24,7 +24,6 @@ static const char _svn_version[] =
"$Id: lcallbacklib.c 2448 2009-06-08 07:43:50Z taco $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.6/source/texk/web2c/luatexdir/lua/lcallbacklib.c $";
static int do_run_callback(int special, const char *values, va_list vl);
-extern int lua_traceback(lua_State * L);
int callback_count = 0;
int saved_callback_count = 0;
diff --git a/Build/source/texk/web2c/luatexdir/lua/limglib.c b/Build/source/texk/web2c/luatexdir/lua/limglib.c
index 090f3d43d82..7663d022c03 100644
--- a/Build/source/texk/web2c/luatexdir/lua/limglib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/limglib.c
@@ -23,7 +23,8 @@
#include <../lua51/lua.h>
#include <../lua51/lauxlib.h>
#include <ptexlib.h>
-#include "../luatex-api.h"
+#include "luatex-api.h"
+#include "inc-extra.h"
static const char _svn_version[] =
"$Id: limglib.c 2329 2009-04-18 14:25:30Z hhenkel $ "
@@ -588,8 +589,6 @@ typedef enum { WR_WRITE, WR_IMMEDIATEWRITE, WR_NODE, WR_VF_IMG } wrtype_e;
const char *wrtype_s[] =
{ "img.write()", "img.immediatewrite()", "img.node()", "write vf image" };
-extern void lua_nodelib_push_fast(lua_State * L, halfword n);
-
static void setup_image(lua_State * L, image * a, wrtype_e writetype)
{
image_dict *ad;
diff --git a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
index d4af0600dde..71c772eb732 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lkpselib.c
@@ -329,8 +329,6 @@ static int lua_kpathsea_var_value(lua_State * L)
* Current approach: run |os.setenv()| if you have to.
*/
-extern int luainit;
-
static int set_program_name(lua_State * L)
{
const char *exe_name = luaL_checkstring(L, 1);
diff --git a/Build/source/texk/web2c/luatexdir/lua/llanglib.c b/Build/source/texk/web2c/luatexdir/lua/llanglib.c
index e71565f94b4..2e5544ca37f 100644
--- a/Build/source/texk/web2c/luatexdir/lua/llanglib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/llanglib.c
@@ -21,6 +21,7 @@
#include <ptexlib.h>
#include "nodes.h"
+#include "inc-extra.h"
static const char _svn_version[] =
"$Id: llanglib.c 2271 2009-04-12 23:42:21Z oneiros $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.6/source/texk/web2c/luatexdir/lua/llanglib.c $";
@@ -29,8 +30,6 @@ static const char _svn_version[] =
#define check_islang(L,b) (struct tex_language **)luaL_checkudata(L,b,LANG_METATABLE)
-extern halfword *check_isnode(lua_State * L, int ud);
-
static int lang_new(lua_State * L)
{
diff --git a/Build/source/texk/web2c/luatexdir/lua/llualib.c b/Build/source/texk/web2c/luatexdir/lua/llualib.c
index fb1fe305a55..57cffe36ab1 100644
--- a/Build/source/texk/web2c/luatexdir/lua/llualib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/llualib.c
@@ -35,7 +35,7 @@ typedef struct {
static bytecode *lua_bytecode_registers = NULL;
-integer luabytecode_max = -1;
+int luabytecode_max = -1;
unsigned int luabytecode_bytes = 0;
static char *luanames[65536] = { NULL };
diff --git a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c
index d78fea95d8c..4b5738da4be 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c
@@ -21,6 +21,7 @@
#include <ptexlib.h>
#include "nodes.h"
+#include "inc-extra.h"
#include "commands.h"
@@ -3208,8 +3209,6 @@ static int lua_nodelib_do_ligature_n(lua_State * L)
return 1;
}
-extern halfword list_node_mem_usage(void);
-
static int lua_nodelib_usedlist(lua_State * L)
{
lua_pushnumber(L, list_node_mem_usage());
diff --git a/Build/source/texk/web2c/luatexdir/lua/lstatslib.c b/Build/source/texk/web2c/luatexdir/lua/lstatslib.c
index f3866f4878f..1f264cd55bb 100644
--- a/Build/source/texk/web2c/luatexdir/lua/lstatslib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/lstatslib.c
@@ -19,6 +19,7 @@
#include "luatex-api.h"
#include <ptexlib.h>
+#include "inc-extra.h"
static const char _svn_version[] =
@@ -30,8 +31,6 @@ typedef struct statistic {
void *value;
} statistic;
-extern void lua_nodelib_push_fast(lua_State * L, halfword n);
-
typedef const char *(*charfunc) (void);
typedef integer(*intfunc) (void);
@@ -61,12 +60,7 @@ static char *luatexrevision(void)
return makecstring(get_luatexrevision());
}
-extern int luabytecode_max;
-extern int luabytecode_bytes;
static int luastate_max = 1; /* fixed value */
-extern int luastate_bytes;
-extern int callback_count;
-extern int saved_callback_count;
static struct statistic stats[] = {
{"pdf_gone", 'g', &pdf_gone},
diff --git a/Build/source/texk/web2c/luatexdir/lua/ltexlib.c b/Build/source/texk/web2c/luatexdir/lua/ltexlib.c
index 8d64219dae2..82a54cc35bc 100644
--- a/Build/source/texk/web2c/luatexdir/lua/ltexlib.c
+++ b/Build/source/texk/web2c/luatexdir/lua/ltexlib.c
@@ -20,15 +20,13 @@
#include "luatex-api.h"
#include <ptexlib.h>
#include "nodes.h"
+#include "inc-extra.h"
#include "commands.h"
#include "tokens.h"
static const char _svn_version[] =
"$Id: ltexlib.c 2448 2009-06-08 07:43:50Z taco $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.6/source/texk/web2c/luatexdir/lua/ltexlib.c $";
-extern halfword *check_isnode(lua_State * L, int ud);
-extern void lua_nodelib_push_fast(lua_State * L, halfword n);
-
typedef struct {
char *text;
unsigned int tsize;
diff --git a/Build/source/texk/web2c/luatexdir/lua/luainit.c b/Build/source/texk/web2c/luatexdir/lua/luainit.c
index baa40d3cfe9..917cf462f7e 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luainit.c
+++ b/Build/source/texk/web2c/luatexdir/lua/luainit.c
@@ -44,8 +44,6 @@ static const char _svn_version[] =
*
*/
-extern string normalize_quotes(const_string name, const_string mesg);
-
const_string LUATEX_IHELP[] = {
"Usage: luatex --lua=FILE [OPTION]... [TEXNAME[.tex]] [COMMANDS]",
" or: luatex --lua=FILE [OPTION]... \\FIRST-LINE",
@@ -123,12 +121,6 @@ const_string input_name = NULL;
static const_string user_progname = NULL;
-extern int program_name_set; /* in lkpselib.c */
-
-/* for topenin() */
-extern char **argv;
-extern int argc;
-
const char *startup_filename = NULL;
int lua_only = 0;
int lua_offset = 0;
diff --git a/Build/source/texk/web2c/luatexdir/lua/luastuff.c b/Build/source/texk/web2c/luatexdir/lua/luastuff.c
index 44148f30928..75bdaf367ef 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luastuff.c
+++ b/Build/source/texk/web2c/luatexdir/lua/luastuff.c
@@ -25,10 +25,6 @@ static const char _svn_version[] =
lua_State *Luas = NULL;
-extern const char *startup_filename;
-extern int safer_option;
-extern int nosocket_option;
-
int luastate_bytes = 0;
int lua_active = 0;
@@ -256,7 +252,7 @@ void unhide_lua_value(lua_State * L, const char *name, const char *item, int r)
}
-int lua_traceback(lua_State * L)
+static int lua_traceback(lua_State * L)
{
lua_getfield(L, LUA_GLOBALSINDEX, "debug");
if (!lua_istable(L, -1)) {
diff --git a/Build/source/texk/web2c/luatexdir/lua/luatex.c b/Build/source/texk/web2c/luatexdir/lua/luatex.c
index 4db4660540e..88903fe338b 100644
--- a/Build/source/texk/web2c/luatexdir/lua/luatex.c
+++ b/Build/source/texk/web2c/luatexdir/lua/luatex.c
@@ -26,8 +26,6 @@ static const char _svn_version[] =
/* do this aleph stuff here, for now */
-extern int program_name_set; /* in lkpselib.c */
-
void b_test_in(void)
{
if (program_name_set) {