File: freeciv_tolua.patch

package info (click to toggle)
freeciv 2.6.2-1~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 212,500 kB
  • sloc: ansic: 443,831; cpp: 29,541; sh: 7,982; makefile: 7,886; python: 1,933; xml: 945
file content (44 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
diff -Nurd tolua-5.2/src/bin/tolua.c tolua-5.2/src/bin/tolua.c
--- tolua-5.2/src/bin/tolua.c	2016-01-06 01:19:24.984940138 +0200
+++ tolua-5.2/src/bin/tolua.c	2016-01-06 01:22:44.160507862 +0200
@@ -22,6 +22,9 @@
 #include <stdlib.h>
 #include <string.h>
 
+#ifndef LUA_SOURCE
+int tolua_tolua_open(lua_State *L);
+#endif
 
 static void help (void)
 {
@@ -106,7 +109,6 @@
 
 #ifndef LUA_SOURCE
  {
-  int tolua_tolua_open (lua_State* L);
   tolua_tolua_open(L);
  }
 #else
diff -Nurd tolua-5.2/src/lib/tolua_event.c tolua-5.2/src/lib/tolua_event.c
--- tolua-5.2/src/lib/tolua_event.c	2016-01-06 01:19:24.980940147 +0200
+++ tolua-5.2/src/lib/tolua_event.c	2016-01-06 01:20:07.884846927 +0200
@@ -18,6 +18,8 @@
 
 #include "tolua.h"
 
+#include "tolua_event.h"
+
 /* Store at peer
 	* It stores, creating the corresponding table if needed,
 	* the pair key/value in the corresponding peer table
diff -Nurd tolua-5.2/src/lib/tolua_map.c tolua-5.2/src/lib/tolua_map.c
--- tolua-5.2/src/lib/tolua_map.c	2016-01-06 01:19:24.980940147 +0200
+++ tolua-5.2/src/lib/tolua_map.c	2016-01-06 01:20:48.972757711 +0200
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <math.h>
 
+int tolua_bnd_takeownership(lua_State *L);
 
 static char toluaname[128] = "tolua.";
 static const char* TOLUANAME (const char* n)