tolua: Add 06-gen-code-no-trailing-spaces.patch

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
This commit is contained in:
Marko Lindqvist
2024-04-19 20:49:02 +03:00
parent 4355eeb87c
commit af1e7fab69
2 changed files with 22 additions and 0 deletions

View 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

View File

@@ -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}"