From af1e7fab69d89291f7c3488fad4051c0b703a6b0 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 19 Apr 2024 20:49:02 +0300 Subject: [PATCH] tolua: Add 06-gen-code-no-trailing-spaces.patch Signed-off-by: Marko Lindqvist --- .../06-gen-code-no-trailing-spaces.patch | 21 +++++++++++++++++++ dependencies/tolua/tolua_5.2.4.bb | 1 + 2 files changed, 22 insertions(+) create mode 100644 dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch diff --git a/dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch b/dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch new file mode 100644 index 0000000..9ac3c9b --- /dev/null +++ b/dependencies/tolua/tolua/06-gen-code-no-trailing-spaces.patch @@ -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 diff --git a/dependencies/tolua/tolua_5.2.4.bb b/dependencies/tolua/tolua_5.2.4.bb index fcd7bb6..faa3330 100644 --- a/dependencies/tolua/tolua_5.2.4.bb +++ b/dependencies/tolua/tolua_5.2.4.bb @@ -23,6 +23,7 @@ SRC_URI = "\ file://03-tolua_bnd_takeownership-prototype.patch \ file://04-include-tolua_event.patch \ file://05-gen-code-fix-null-dereferences.patch \ + file://06-gen-code-no-trailing-spaces.patch \ " B = "${S}"