mirror of
https://github.com/cazfi/meta-games.git
synced 2026-01-29 17:08:42 +01:00
tolua: Add 06-gen-code-no-trailing-spaces.patch
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
21
dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch
vendored
Normal file
21
dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
diff -Nurd tolua-5.2/src/bin/lua/function.lua tolua-5.2/src/bin/lua/function.lua
|
||||||
|
--- tolua-5.2/src/bin/lua/function.lua 2024-04-19 20:03:11.818328350 +0300
|
||||||
|
+++ tolua-5.2/src/bin/lua/function.lua 2024-04-19 20:11:14.294719921 +0300
|
||||||
|
@@ -85,7 +85,7 @@
|
||||||
|
func = 'tolua_isusertable'
|
||||||
|
type = self.parent.type
|
||||||
|
end
|
||||||
|
- output(' !'..func..'(tolua_S,1,"'..type..'",0,&tolua_err) || \n')
|
||||||
|
+ output(' !'..func..'(tolua_S,1,"'..type..'",0,&tolua_err) ||\n')
|
||||||
|
end
|
||||||
|
-- check args
|
||||||
|
local vararg = false
|
||||||
|
@@ -94,7 +94,7 @@
|
||||||
|
while self.args[i] and self.args[i].type ~= "..." do
|
||||||
|
local btype = isbasic(self.args[i].type)
|
||||||
|
if btype ~= 'state' then
|
||||||
|
- output(' !'..self.args[i]:outchecktype(narg,false)..' || \n')
|
||||||
|
+ output(' !'..self.args[i]:outchecktype(narg,false)..' ||\n')
|
||||||
|
end
|
||||||
|
if btype ~= 'state' then
|
||||||
|
narg = narg+1
|
||||||
1
dependencies/tolua/tolua_5.2.4.bb
vendored
1
dependencies/tolua/tolua_5.2.4.bb
vendored
@@ -23,6 +23,7 @@ SRC_URI = "\
|
|||||||
file://03-tolua_bnd_takeownership-prototype.patch \
|
file://03-tolua_bnd_takeownership-prototype.patch \
|
||||||
file://04-include-tolua_event.patch \
|
file://04-include-tolua_event.patch \
|
||||||
file://05-gen-code-fix-null-dereferences.patch \
|
file://05-gen-code-fix-null-dereferences.patch \
|
||||||
|
file://06-gen-code-no-trailing-spaces.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
B = "${S}"
|
B = "${S}"
|
||||||
|
|||||||
Reference in New Issue
Block a user