From 10fc19772a0a25e88f599ed7f5d655ec043dce8b Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Thu, 13 Aug 2026 02:31:55 +0300
Subject: [PATCH 49/49] tolua: Use NULL instead of nullptr in toluabind.c

Partially revert tolua change to use nullptr everywhere.
After that change the generated toluabind.c no longer has nullptrs.
That fixes build with older compilers without nullptr.

See RM #2133

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 .../tolua-5.2/patch/07-gen-code-nullptr.patch |  30 +-
 .../tolua-5.2/src/bin/lua/package.lua         |   4 +-
 dependencies/tolua-5.2/src/bin/toluabind.c    | 322 +++++++++---------
 3 files changed, 178 insertions(+), 178 deletions(-)

diff --git a/dependencies/tolua-5.2/patch/07-gen-code-nullptr.patch b/dependencies/tolua-5.2/patch/07-gen-code-nullptr.patch
index 0e333a819d..b777fa5f4a 100644
--- a/dependencies/tolua-5.2/patch/07-gen-code-nullptr.patch
+++ b/dependencies/tolua-5.2/patch/07-gen-code-nullptr.patch
@@ -1,6 +1,6 @@
 diff -Nurd tolua-5.2/src/bin/lua/array.lua tolua-5.2/src/bin/lua/array.lua
---- tolua-5.2/src/bin/lua/array.lua	2024-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/array.lua	2025-05-01 18:16:05.012460144 +0300
+--- tolua-5.2/src/bin/lua/array.lua	2026-08-13 02:26:11.386530703 +0300
++++ tolua-5.2/src/bin/lua/array.lua	2025-05-17 04:26:34.974396726 +0300
 @@ -87,7 +87,7 @@
   output(' tolua_index = (int)tolua_tonumber(tolua_S,2,0)-1;')
  	output('#ifndef TOLUA_RELEASE\n')
@@ -29,8 +29,8 @@ diff -Nurd tolua-5.2/src/bin/lua/array.lua tolua-5.2/src/bin/lua/array.lua
  end
  
 diff -Nurd tolua-5.2/src/bin/lua/class.lua tolua-5.2/src/bin/lua/class.lua
---- tolua-5.2/src/bin/lua/class.lua	2024-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/class.lua	2025-05-01 18:11:12.830722336 +0300
+--- tolua-5.2/src/bin/lua/class.lua	2026-08-13 02:26:11.386666934 +0300
++++ tolua-5.2/src/bin/lua/class.lua	2025-05-17 04:26:34.974396726 +0300
 @@ -35,10 +35,10 @@
   	output('#ifdef __cplusplus\n')
   	output(' tolua_cclass(tolua_S,"'..self.lname..'","'..self.type..'","'..self.btype..'",'.._collect[self.type]..');')
@@ -45,8 +45,8 @@ diff -Nurd tolua-5.2/src/bin/lua/class.lua tolua-5.2/src/bin/lua/class.lua
   output(' tolua_beginmodule(tolua_S,"'..self.lname..'");')
   local i=1
 diff -Nurd tolua-5.2/src/bin/lua/declaration.lua tolua-5.2/src/bin/lua/declaration.lua
---- tolua-5.2/src/bin/lua/declaration.lua	2024-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/declaration.lua	2025-05-01 18:14:35.951932167 +0300
+--- tolua-5.2/src/bin/lua/declaration.lua	2026-08-13 02:26:11.386752115 +0300
++++ tolua-5.2/src/bin/lua/declaration.lua	2025-05-17 04:26:34.974396726 +0300
 @@ -307,10 +307,10 @@
       output('   {')
       output('#ifdef __cplusplus\n')
@@ -61,8 +61,8 @@ diff -Nurd tolua-5.2/src/bin/lua/declaration.lua tolua-5.2/src/bin/lua/declarati
       output('   }')
     else
 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-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/function.lua	2025-05-01 18:15:38.324302059 +0300
+--- tolua-5.2/src/bin/lua/function.lua	2026-08-13 02:26:11.386855345 +0300
++++ tolua-5.2/src/bin/lua/function.lua	2025-05-17 04:26:34.974396726 +0300
 @@ -145,7 +145,7 @@
   -- check self
   if class and self.name~='new' and static==nil then
@@ -86,22 +86,22 @@ diff -Nurd tolua-5.2/src/bin/lua/function.lua tolua-5.2/src/bin/lua/function.lua
       output('   }')
      elseif self.ptr == '&' then
 diff -Nurd tolua-5.2/src/bin/lua/package.lua tolua-5.2/src/bin/lua/package.lua
---- tolua-5.2/src/bin/lua/package.lua	2024-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/package.lua	2025-05-01 18:10:55.666619656 +0300
-@@ -156,8 +156,8 @@
+--- tolua-5.2/src/bin/lua/package.lua	2026-08-13 02:26:11.386937846 +0300
++++ tolua-5.2/src/bin/lua/package.lua	2026-08-13 02:26:47.793712754 +0300
+@@ -163,8 +163,8 @@
   output("{")
   output(" tolua_open(tolua_S);")
   output(" tolua_reg_types(tolua_S);")
 - output(" tolua_module(tolua_S,NULL,",self:hasvar(),");")
 - output(" tolua_beginmodule(tolua_S,NULL);")
-+ output(" tolua_module(tolua_S, nullptr, ",self:hasvar(),");")
-+ output(" tolua_beginmodule(tolua_S, nullptr);")
++ output(" tolua_module(tolua_S, NULL, ",self:hasvar(),");")
++ output(" tolua_beginmodule(tolua_S, NULL);")
   local i=1
   while self[i] do
    self[i]:register()
 diff -Nurd tolua-5.2/src/bin/lua/variable.lua tolua-5.2/src/bin/lua/variable.lua
---- tolua-5.2/src/bin/lua/variable.lua	2024-05-31 07:35:56.682991087 +0300
-+++ tolua-5.2/src/bin/lua/variable.lua	2025-05-01 18:17:27.216946438 +0300
+--- tolua-5.2/src/bin/lua/variable.lua	2026-08-13 02:26:11.387039876 +0300
++++ tolua-5.2/src/bin/lua/variable.lua	2025-05-17 04:26:34.974396726 +0300
 @@ -117,7 +117,7 @@
   if class and static==nil then
  	 output('#ifndef TOLUA_RELEASE\n')
diff --git a/dependencies/tolua-5.2/src/bin/lua/package.lua b/dependencies/tolua-5.2/src/bin/lua/package.lua
index 705a6907db..8fa0beba8e 100644
--- a/dependencies/tolua-5.2/src/bin/lua/package.lua
+++ b/dependencies/tolua-5.2/src/bin/lua/package.lua
@@ -163,8 +163,8 @@ function classPackage:register ()
  output("{")
  output(" tolua_open(tolua_S);")
  output(" tolua_reg_types(tolua_S);")
- output(" tolua_module(tolua_S, nullptr, ",self:hasvar(),");")
- output(" tolua_beginmodule(tolua_S, nullptr);")
+ output(" tolua_module(tolua_S, NULL, ",self:hasvar(),");")
+ output(" tolua_beginmodule(tolua_S, NULL);")
  local i=1
  while self[i] do
   self[i]:register()
diff --git a/dependencies/tolua-5.2/src/bin/toluabind.c b/dependencies/tolua-5.2/src/bin/toluabind.c
index 19a817c7a8..b37850ad2a 100644
--- a/dependencies/tolua-5.2/src/bin/toluabind.c
+++ b/dependencies/tolua-5.2/src/bin/toluabind.c
@@ -29,8 +29,8 @@ LUALIB_API int luaopen_tolua (lua_State* tolua_S)
 {
  tolua_open(tolua_S);
  tolua_reg_types(tolua_S);
- tolua_module(tolua_S, nullptr, 0);
- tolua_beginmodule(tolua_S, nullptr);
+ tolua_module(tolua_S, NULL, 0);
+ tolua_beginmodule(tolua_S, NULL);
 
  { /* begin embedded lua code */
  static unsigned char B[] = {
@@ -1575,170 +1575,170 @@ LUALIB_API int luaopen_tolua (lua_State* tolua_S)
  116,111,108,117, 97, 95,114,101,103, 95,116,121,112,101,115,
   40,116,111,108,117, 97, 95, 83, 41, 59, 34, 41, 10,111,117,
  116,112,117,116, 40, 34, 32,116,111,108,117, 97, 95,109,111,
- 100,117,108,101, 40,116,111,108,117, 97, 95, 83, 44, 32,110,
- 117,108,108,112,116,114, 44, 32, 34, 44,115,101,108,102, 58,
- 104, 97,115,118, 97,114, 40, 41, 44, 34, 41, 59, 34, 41, 10,
- 111,117,116,112,117,116, 40, 34, 32,116,111,108,117, 97, 95,
-  98,101,103,105,110,109,111,100,117,108,101, 40,116,111,108,
- 117, 97, 95, 83, 44, 32,110,117,108,108,112,116,114, 41, 59,
-  34, 41, 10,108,111, 99, 97,108, 32,105, 61, 49, 10,119,104,
- 105,108,101, 32,115,101,108,102, 91,105, 93, 32,100,111, 10,
- 115,101,108,102, 91,105, 93, 58,114,101,103,105,115,116,101,
- 114, 40, 41, 10,105, 32, 61, 32,105, 43, 49, 10,101,110,100,
-  10,111,117,116,112,117,116, 40, 34, 32,116,111,108,117, 97,
-  95,101,110,100,109,111,100,117,108,101, 40,116,111,108,117,
-  97, 95, 83, 41, 59, 34, 41, 10,111,117,116,112,117,116, 40,
-  34, 32,114,101,116,117,114,110, 32, 49, 59, 34, 41, 10,111,
- 117,116,112,117,116, 40, 34,125, 34, 41, 10,111,117,116,112,
- 117,116, 40, 34, 47, 42, 32, 79,112,101,110, 32,116,111,108,
- 117, 97, 32,102,117,110, 99,116,105,111,110, 32, 42, 47, 34,
-  41, 10,111,117,116,112,117,116, 40, 34, 84, 79, 76, 85, 65,
-  95, 65, 80, 73, 32,105,110,116, 32,116,111,108,117, 97, 95,
-  34, 46, 46,115,101,108,102, 46,110, 97,109,101, 46, 46, 34,
-  95,111,112,101,110, 32, 40,108,117, 97, 95, 83,116, 97,116,
- 101, 42, 32,116,111,108,117, 97, 95, 83, 41, 34, 41, 10,111,
- 117,116,112,117,116, 40, 34,123, 34, 41, 10,111,117,116,112,
- 117,116, 40, 34, 32,108,117, 97, 95,112,117,115,104, 99,102,
- 117,110, 99,116,105,111,110, 40,116,111,108,117, 97, 95, 83,
-  44, 32,108,117, 97,111,112,101,110, 95, 34, 46, 46,115,101,
- 108,102, 46,110, 97,109,101, 46, 46, 34, 41, 59, 34, 41, 10,
- 111,117,116,112,117,116, 40, 39, 32,108,117, 97, 95,112,117,
- 115,104,115,116,114,105,110,103, 40,116,111,108,117, 97, 95,
-  83, 44, 32, 34, 39, 46, 46,115,101,108,102, 46,110, 97,109,
- 101, 46, 46, 39, 34, 41, 59, 39, 41, 10,111,117,116,112,117,
- 116, 40, 34, 32,108,117, 97, 95, 99, 97,108,108, 40,116,111,
- 108,117, 97, 95, 83, 44, 32, 49, 44, 32, 48, 41, 59, 34, 41,
-  10,111,117,116,112,117,116, 40, 34, 32,114,101,116,117,114,
- 110, 32, 49, 59, 34, 41, 10,111,117,116,112,117,116, 40, 34,
- 125, 34, 41, 10,112,111,112, 40, 41, 10,101,110,100, 10,102,
- 117,110, 99,116,105,111,110, 32, 99,108, 97,115,115, 80, 97,
-  99,107, 97,103,101, 58,104,101, 97,100,101,114, 32, 40, 41,
-  10,111,117,116,112,117,116, 40, 39, 47, 42, 92,110, 39, 41,
-  32,111,117,116,112,117,116, 40, 39, 42, 42, 32, 76,117, 97,
-  32, 98,105,110,100,105,110,103, 58, 32, 39, 46, 46,115,101,
- 108,102, 46,110, 97,109,101, 46, 46, 39, 92,110, 39, 41, 10,
- 111,117,116,112,117,116, 40, 39, 42, 47, 92,110, 92,110, 39,
-  41, 10,105,102, 32,110,111,116, 32,102,108, 97,103,115, 46,
- 104, 32,116,104,101,110, 10,111,117,116,112,117,116, 40, 39,
-  47, 42, 32, 69,120,112,111,114,116,101,100, 32,102,117,110,
-  99,116,105,111,110, 32, 42, 47, 39, 41, 10,111,117,116,112,
- 117,116, 40, 39, 84, 79, 76, 85, 65, 95, 65, 80, 73, 32,105,
- 110,116, 32,116,111,108,117, 97, 95, 39, 46, 46,115,101,108,
- 102, 46,110, 97,109,101, 46, 46, 39, 95,111,112,101,110, 32,
+ 100,117,108,101, 40,116,111,108,117, 97, 95, 83, 44, 32, 78,
+  85, 76, 76, 44, 32, 34, 44,115,101,108,102, 58,104, 97,115,
+ 118, 97,114, 40, 41, 44, 34, 41, 59, 34, 41, 10,111,117,116,
+ 112,117,116, 40, 34, 32,116,111,108,117, 97, 95, 98,101,103,
+ 105,110,109,111,100,117,108,101, 40,116,111,108,117, 97, 95,
+  83, 44, 32, 78, 85, 76, 76, 41, 59, 34, 41, 10,108,111, 99,
+  97,108, 32,105, 61, 49, 10,119,104,105,108,101, 32,115,101,
+ 108,102, 91,105, 93, 32,100,111, 10,115,101,108,102, 91,105,
+  93, 58,114,101,103,105,115,116,101,114, 40, 41, 10,105, 32,
+  61, 32,105, 43, 49, 10,101,110,100, 10,111,117,116,112,117,
+ 116, 40, 34, 32,116,111,108,117, 97, 95,101,110,100,109,111,
+ 100,117,108,101, 40,116,111,108,117, 97, 95, 83, 41, 59, 34,
+  41, 10,111,117,116,112,117,116, 40, 34, 32,114,101,116,117,
+ 114,110, 32, 49, 59, 34, 41, 10,111,117,116,112,117,116, 40,
+  34,125, 34, 41, 10,111,117,116,112,117,116, 40, 34, 47, 42,
+  32, 79,112,101,110, 32,116,111,108,117, 97, 32,102,117,110,
+  99,116,105,111,110, 32, 42, 47, 34, 41, 10,111,117,116,112,
+ 117,116, 40, 34, 84, 79, 76, 85, 65, 95, 65, 80, 73, 32,105,
+ 110,116, 32,116,111,108,117, 97, 95, 34, 46, 46,115,101,108,
+ 102, 46,110, 97,109,101, 46, 46, 34, 95,111,112,101,110, 32,
   40,108,117, 97, 95, 83,116, 97,116,101, 42, 32,116,111,108,
- 117, 97, 95, 83, 41, 59, 39, 41, 10,111,117,116,112,117,116,
-  40, 39, 76, 85, 65, 76, 73, 66, 95, 65, 80, 73, 32,105,110,
- 116, 32,108,117, 97,111,112,101,110, 95, 39, 46, 46,115,101,
- 108,102, 46,110, 97,109,101, 46, 46, 39, 32, 40,108,117, 97,
-  95, 83,116, 97,116,101, 42, 32,116,111,108,117, 97, 95, 83,
-  41, 59, 39, 41, 10,111,117,116,112,117,116, 40, 39, 92,110,
-  39, 41, 10,101,110,100, 10,101,110,100, 10,102,117,110, 99,
- 116,105,111,110, 32, 95, 80, 97, 99,107, 97,103,101, 32, 40,
- 115,101,108,102, 41, 10,115,101,116,109,101,116, 97,116, 97,
-  98,108,101, 40,115,101,108,102, 44, 99,108, 97,115,115, 80,
-  97, 99,107, 97,103,101, 41, 10,114,101,116,117,114,110, 32,
- 115,101,108,102, 10,101,110,100, 10,102,117,110, 99,116,105,
- 111,110, 32,101,120,116,114, 97, 99,116, 95, 99,111,100,101,
-  40,102,110, 44,115, 41, 10,108,111, 99, 97,108, 32, 99,111,
- 100,101, 32, 61, 32, 39, 92,110, 36, 35,105,110, 99,108,117,
- 100,101, 32, 34, 39, 46, 46,102,110, 46, 46, 39, 34, 92,110,
-  39, 10,115, 61, 32, 34, 92,110, 34, 32, 46, 46, 32,115, 32,
-  46, 46, 32, 34, 92,110, 34, 10,108,111, 99, 97,108, 32, 95,
-  44,101, 44, 99, 44,116, 32, 61, 32,115,116,114,102,105,110,
- 100, 40,115, 44, 32, 34, 92,110, 40, 91, 94, 92,110, 93, 45,
-  41, 91, 84,116, 93, 91, 79,111, 93, 91, 76,108, 93, 91, 85,
- 117, 93, 91, 65, 97, 93, 95, 40, 91, 94, 37,115, 93, 42, 41,
-  91, 94, 92,110, 93, 42, 92,110, 34, 41, 10,119,104,105,108,
- 101, 32,101, 32,100,111, 10,116, 32, 61, 32,115,116,114,108,
- 111,119,101,114, 40,116, 41, 10,105,102, 32,116, 32, 61, 61,
-  32, 34, 98,101,103,105,110, 34, 32,116,104,101,110, 10, 95,
-  44,101, 44, 99, 32, 61, 32,115,116,114,102,105,110,100, 40,
- 115, 44, 34, 40, 46, 45, 41, 92,110, 91, 94, 92,110, 93, 42,
-  91, 84,116, 93, 91, 79,111, 93, 91, 76,108, 93, 91, 85,117,
-  93, 91, 65, 97, 93, 95, 91, 69,101, 93, 91, 78,110, 93, 91,
-  68,100, 93, 91, 94, 92,110, 93, 42, 92,110, 34, 44,101, 41,
-  10,105,102, 32,110,111,116, 32,101, 32,116,104,101,110, 10,
- 116,111,108,117, 97, 95,101,114,114,111,114, 40, 34, 85,110,
-  98, 97,108, 97,110, 99,101,100, 32, 39,116,111,108,117, 97,
-  95, 98,101,103,105,110, 39, 32,100,105,114,101, 99,116,105,
- 118,101, 32,105,110, 32,104,101, 97,100,101,114, 32,102,105,
- 108,101, 34, 41, 10,101,110,100, 10,101,110,100, 10, 99,111,
- 100,101, 32, 61, 32, 99,111,100,101, 32, 46, 46, 32, 99, 32,
-  46, 46, 32, 34, 92,110, 34, 10, 95, 44,101, 44, 99, 44,116,
+ 117, 97, 95, 83, 41, 34, 41, 10,111,117,116,112,117,116, 40,
+  34,123, 34, 41, 10,111,117,116,112,117,116, 40, 34, 32,108,
+ 117, 97, 95,112,117,115,104, 99,102,117,110, 99,116,105,111,
+ 110, 40,116,111,108,117, 97, 95, 83, 44, 32,108,117, 97,111,
+ 112,101,110, 95, 34, 46, 46,115,101,108,102, 46,110, 97,109,
+ 101, 46, 46, 34, 41, 59, 34, 41, 10,111,117,116,112,117,116,
+  40, 39, 32,108,117, 97, 95,112,117,115,104,115,116,114,105,
+ 110,103, 40,116,111,108,117, 97, 95, 83, 44, 32, 34, 39, 46,
+  46,115,101,108,102, 46,110, 97,109,101, 46, 46, 39, 34, 41,
+  59, 39, 41, 10,111,117,116,112,117,116, 40, 34, 32,108,117,
+  97, 95, 99, 97,108,108, 40,116,111,108,117, 97, 95, 83, 44,
+  32, 49, 44, 32, 48, 41, 59, 34, 41, 10,111,117,116,112,117,
+ 116, 40, 34, 32,114,101,116,117,114,110, 32, 49, 59, 34, 41,
+  10,111,117,116,112,117,116, 40, 34,125, 34, 41, 10,112,111,
+ 112, 40, 41, 10,101,110,100, 10,102,117,110, 99,116,105,111,
+ 110, 32, 99,108, 97,115,115, 80, 97, 99,107, 97,103,101, 58,
+ 104,101, 97,100,101,114, 32, 40, 41, 10,111,117,116,112,117,
+ 116, 40, 39, 47, 42, 92,110, 39, 41, 32,111,117,116,112,117,
+ 116, 40, 39, 42, 42, 32, 76,117, 97, 32, 98,105,110,100,105,
+ 110,103, 58, 32, 39, 46, 46,115,101,108,102, 46,110, 97,109,
+ 101, 46, 46, 39, 92,110, 39, 41, 10,111,117,116,112,117,116,
+  40, 39, 42, 47, 92,110, 92,110, 39, 41, 10,105,102, 32,110,
+ 111,116, 32,102,108, 97,103,115, 46,104, 32,116,104,101,110,
+  10,111,117,116,112,117,116, 40, 39, 47, 42, 32, 69,120,112,
+ 111,114,116,101,100, 32,102,117,110, 99,116,105,111,110, 32,
+  42, 47, 39, 41, 10,111,117,116,112,117,116, 40, 39, 84, 79,
+  76, 85, 65, 95, 65, 80, 73, 32,105,110,116, 32,116,111,108,
+ 117, 97, 95, 39, 46, 46,115,101,108,102, 46,110, 97,109,101,
+  46, 46, 39, 95,111,112,101,110, 32, 40,108,117, 97, 95, 83,
+ 116, 97,116,101, 42, 32,116,111,108,117, 97, 95, 83, 41, 59,
+  39, 41, 10,111,117,116,112,117,116, 40, 39, 76, 85, 65, 76,
+  73, 66, 95, 65, 80, 73, 32,105,110,116, 32,108,117, 97,111,
+ 112,101,110, 95, 39, 46, 46,115,101,108,102, 46,110, 97,109,
+ 101, 46, 46, 39, 32, 40,108,117, 97, 95, 83,116, 97,116,101,
+  42, 32,116,111,108,117, 97, 95, 83, 41, 59, 39, 41, 10,111,
+ 117,116,112,117,116, 40, 39, 92,110, 39, 41, 10,101,110,100,
+  10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32, 95,
+  80, 97, 99,107, 97,103,101, 32, 40,115,101,108,102, 41, 10,
+ 115,101,116,109,101,116, 97,116, 97, 98,108,101, 40,115,101,
+ 108,102, 44, 99,108, 97,115,115, 80, 97, 99,107, 97,103,101,
+  41, 10,114,101,116,117,114,110, 32,115,101,108,102, 10,101,
+ 110,100, 10,102,117,110, 99,116,105,111,110, 32,101,120,116,
+ 114, 97, 99,116, 95, 99,111,100,101, 40,102,110, 44,115, 41,
+  10,108,111, 99, 97,108, 32, 99,111,100,101, 32, 61, 32, 39,
+  92,110, 36, 35,105,110, 99,108,117,100,101, 32, 34, 39, 46,
+  46,102,110, 46, 46, 39, 34, 92,110, 39, 10,115, 61, 32, 34,
+  92,110, 34, 32, 46, 46, 32,115, 32, 46, 46, 32, 34, 92,110,
+  34, 10,108,111, 99, 97,108, 32, 95, 44,101, 44, 99, 44,116,
   32, 61, 32,115,116,114,102,105,110,100, 40,115, 44, 32, 34,
   92,110, 40, 91, 94, 92,110, 93, 45, 41, 91, 84,116, 93, 91,
   79,111, 93, 91, 76,108, 93, 91, 85,117, 93, 91, 65, 97, 93,
   95, 40, 91, 94, 37,115, 93, 42, 41, 91, 94, 92,110, 93, 42,
-  92,110, 34, 44,101, 41, 10,101,110,100, 10,114,101,116,117,
- 114,110, 32, 99,111,100,101, 10,101,110,100, 10,102,117,110,
-  99,116,105,111,110, 32, 80, 97, 99,107, 97,103,101, 32, 40,
- 110, 97,109,101, 44,102,110, 41, 10,108,111, 99, 97,108, 32,
- 101,120,116, 32, 61, 32, 34,112,107,103, 34, 10,105,102, 32,
- 102,110, 32,116,104,101,110, 10,108,111, 99, 97,108, 32,115,
- 116, 44, 32,109,115,103, 32, 61, 32,114,101, 97,100,102,114,
- 111,109, 40,102,108, 97,103,115, 46,102, 41, 10,105,102, 32,
- 110,111,116, 32,115,116, 32,116,104,101,110, 10,101,114,114,
- 111,114, 40, 39, 35, 39, 46, 46,109,115,103, 41, 10,101,110,
- 100, 10,108,111, 99, 97,108, 32, 95, 59, 32, 95, 44, 32, 95,
-  44, 32,101,120,116, 32, 61, 32,115,116,114,102,105,110,100,
-  40,102,110, 44, 34, 46, 42, 37, 46, 40, 46, 42, 41, 36, 34,
-  41, 10,101,110,100, 10,108,111, 99, 97,108, 32, 99,111,100,
- 101, 32, 61, 32, 34, 92,110, 34, 32, 46, 46, 32,114,101, 97,
- 100, 40, 39, 42, 97, 39, 41, 10,105,102, 32,101,120,116, 32,
-  61, 61, 32, 39,104, 39, 32,111,114, 32,101,120,116, 32, 61,
-  61, 32, 39,104,112,112, 39, 32,116,104,101,110, 10, 99,111,
- 100,101, 32, 61, 32,101,120,116,114, 97, 99,116, 95, 99,111,
- 100,101, 40,102,110, 44, 99,111,100,101, 41, 10,101,110,100,
-  10,105,102, 32,102,110, 32,116,104,101,110, 10,114,101, 97,
- 100,102,114,111,109, 40, 41, 10,101,110,100, 10, 99,111,100,
- 101, 32, 61, 32,103,115,117, 98, 40, 99,111,100,101, 44, 39,
-  37,115, 42, 37, 36,114,101,110, 97,109,105,110,103, 37,115,
-  42, 40, 46, 45, 41, 37,115, 42, 92,110, 39, 44, 32,102,117,
- 110, 99,116,105,111,110, 32, 40,114, 41, 32, 97,112,112,101,
- 110,100,114,101,110, 97,109,105,110,103, 40,114, 41, 32,114,
- 101,116,117,114,110, 32, 34, 92,110, 34, 32,101,110,100, 41,
-  10,108,111, 99, 97,108, 32,110,115,117, 98,115,116, 10,114,
- 101,112,101, 97,116, 10, 99,111,100,101, 44,110,115,117, 98,
- 115,116, 32, 61, 32,103,115,117, 98, 40, 99,111,100,101, 44,
-  39, 92,110, 37,115, 42, 37, 36, 40, 46, 41,102,105,108,101,
-  37,115, 42, 34, 40, 46, 45, 41, 34, 37,115, 42, 92,110, 39,
-  44, 10,102,117,110, 99,116,105,111,110, 32, 40,107,105,110,
- 100, 44,102,110, 41, 10,108,111, 99, 97,108, 32, 95, 44, 32,
-  95, 44, 32,101,120,116, 32, 61, 32,115,116,114,102,105,110,
- 100, 40,102,110, 44, 34, 46, 42, 37, 46, 40, 46, 42, 41, 36,
-  34, 41, 10,108,111, 99, 97,108, 32,102,112, 44,109,115,103,
-  32, 61, 32,111,112,101,110,102,105,108,101, 40,102,110, 44,
-  39,114, 39, 41, 10,105,102, 32,110,111,116, 32,102,112, 32,
- 116,104,101,110, 10,101,114,114,111,114, 40, 39, 35, 39, 46,
-  46,109,115,103, 46, 46, 39, 58, 32, 39, 46, 46,102,110, 41,
-  10,101,110,100, 10,108,111, 99, 97,108, 32,115, 32, 61, 32,
- 114,101, 97,100, 40,102,112, 44, 39, 42, 97, 39, 41, 10, 99,
- 108,111,115,101,102,105,108,101, 40,102,112, 41, 10,105,102,
-  32,107,105,110,100, 32, 61, 61, 32, 39, 99, 39, 32,111,114,
-  32,107,105,110,100, 32, 61, 61, 32, 39,104, 39, 32,116,104,
- 101,110, 10,114,101,116,117,114,110, 32,101,120,116,114, 97,
-  99,116, 95, 99,111,100,101, 40,102,110, 44,115, 41, 10,101,
- 108,115,101,105,102, 32,107,105,110,100, 32, 61, 61, 32, 39,
- 112, 39, 32,116,104,101,110, 10,114,101,116,117,114,110, 32,
-  34, 92,110, 92,110, 34, 32, 46, 46, 32,115, 10,101,108,115,
- 101,105,102, 32,107,105,110,100, 32, 61, 61, 32, 39,108, 39,
-  32,116,104,101,110, 10,114,101,116,117,114,110, 32, 34, 92,
- 110, 36, 91, 92,110, 34, 32, 46, 46, 32,115, 32, 46, 46, 32,
-  34, 92,110, 36, 93, 92,110, 34, 10,101,108,115,101, 10,101,
- 114,114,111,114, 40, 39, 35, 73,110,118, 97,108,105,100, 32,
- 105,110, 99,108,117,100,101, 32,100,105,114,101, 99,116,105,
- 118,101, 32, 40,117,115,101, 32, 36, 99,102,105,108,101, 44,
-  32, 36,112,102,105,108,101, 32,111,114, 32, 36,108,102,105,
- 108,101, 41, 39, 41, 10,101,110,100, 10,101,110,100, 41, 10,
- 117,110,116,105,108, 32,110,115,117, 98,115,116, 61, 61, 48,
-  10,108,111, 99, 97,108, 32,116, 32, 61, 32, 95, 80, 97, 99,
- 107, 97,103,101, 40, 95, 67,111,110,116, 97,105,110,101,114,
- 123,110, 97,109,101, 61,110, 97,109,101, 44, 32, 99,111,100,
- 101, 61, 99,111,100,101,125, 41, 10,112,117,115,104, 40,116,
-  41, 10,116, 58,112,114,101,112,114,111, 99,101,115,115, 40,
-  41, 10,116, 58,112, 97,114,115,101, 40,116, 46, 99,111,100,
- 101, 41, 10,112,111,112, 40, 41, 10,114,101,116,117,114,110,
-  32,116, 10,101,110,100,32
+  92,110, 34, 41, 10,119,104,105,108,101, 32,101, 32,100,111,
+  10,116, 32, 61, 32,115,116,114,108,111,119,101,114, 40,116,
+  41, 10,105,102, 32,116, 32, 61, 61, 32, 34, 98,101,103,105,
+ 110, 34, 32,116,104,101,110, 10, 95, 44,101, 44, 99, 32, 61,
+  32,115,116,114,102,105,110,100, 40,115, 44, 34, 40, 46, 45,
+  41, 92,110, 91, 94, 92,110, 93, 42, 91, 84,116, 93, 91, 79,
+ 111, 93, 91, 76,108, 93, 91, 85,117, 93, 91, 65, 97, 93, 95,
+  91, 69,101, 93, 91, 78,110, 93, 91, 68,100, 93, 91, 94, 92,
+ 110, 93, 42, 92,110, 34, 44,101, 41, 10,105,102, 32,110,111,
+ 116, 32,101, 32,116,104,101,110, 10,116,111,108,117, 97, 95,
+ 101,114,114,111,114, 40, 34, 85,110, 98, 97,108, 97,110, 99,
+ 101,100, 32, 39,116,111,108,117, 97, 95, 98,101,103,105,110,
+  39, 32,100,105,114,101, 99,116,105,118,101, 32,105,110, 32,
+ 104,101, 97,100,101,114, 32,102,105,108,101, 34, 41, 10,101,
+ 110,100, 10,101,110,100, 10, 99,111,100,101, 32, 61, 32, 99,
+ 111,100,101, 32, 46, 46, 32, 99, 32, 46, 46, 32, 34, 92,110,
+  34, 10, 95, 44,101, 44, 99, 44,116, 32, 61, 32,115,116,114,
+ 102,105,110,100, 40,115, 44, 32, 34, 92,110, 40, 91, 94, 92,
+ 110, 93, 45, 41, 91, 84,116, 93, 91, 79,111, 93, 91, 76,108,
+  93, 91, 85,117, 93, 91, 65, 97, 93, 95, 40, 91, 94, 37,115,
+  93, 42, 41, 91, 94, 92,110, 93, 42, 92,110, 34, 44,101, 41,
+  10,101,110,100, 10,114,101,116,117,114,110, 32, 99,111,100,
+ 101, 10,101,110,100, 10,102,117,110, 99,116,105,111,110, 32,
+  80, 97, 99,107, 97,103,101, 32, 40,110, 97,109,101, 44,102,
+ 110, 41, 10,108,111, 99, 97,108, 32,101,120,116, 32, 61, 32,
+  34,112,107,103, 34, 10,105,102, 32,102,110, 32,116,104,101,
+ 110, 10,108,111, 99, 97,108, 32,115,116, 44, 32,109,115,103,
+  32, 61, 32,114,101, 97,100,102,114,111,109, 40,102,108, 97,
+ 103,115, 46,102, 41, 10,105,102, 32,110,111,116, 32,115,116,
+  32,116,104,101,110, 10,101,114,114,111,114, 40, 39, 35, 39,
+  46, 46,109,115,103, 41, 10,101,110,100, 10,108,111, 99, 97,
+ 108, 32, 95, 59, 32, 95, 44, 32, 95, 44, 32,101,120,116, 32,
+  61, 32,115,116,114,102,105,110,100, 40,102,110, 44, 34, 46,
+  42, 37, 46, 40, 46, 42, 41, 36, 34, 41, 10,101,110,100, 10,
+ 108,111, 99, 97,108, 32, 99,111,100,101, 32, 61, 32, 34, 92,
+ 110, 34, 32, 46, 46, 32,114,101, 97,100, 40, 39, 42, 97, 39,
+  41, 10,105,102, 32,101,120,116, 32, 61, 61, 32, 39,104, 39,
+  32,111,114, 32,101,120,116, 32, 61, 61, 32, 39,104,112,112,
+  39, 32,116,104,101,110, 10, 99,111,100,101, 32, 61, 32,101,
+ 120,116,114, 97, 99,116, 95, 99,111,100,101, 40,102,110, 44,
+  99,111,100,101, 41, 10,101,110,100, 10,105,102, 32,102,110,
+  32,116,104,101,110, 10,114,101, 97,100,102,114,111,109, 40,
+  41, 10,101,110,100, 10, 99,111,100,101, 32, 61, 32,103,115,
+ 117, 98, 40, 99,111,100,101, 44, 39, 37,115, 42, 37, 36,114,
+ 101,110, 97,109,105,110,103, 37,115, 42, 40, 46, 45, 41, 37,
+ 115, 42, 92,110, 39, 44, 32,102,117,110, 99,116,105,111,110,
+  32, 40,114, 41, 32, 97,112,112,101,110,100,114,101,110, 97,
+ 109,105,110,103, 40,114, 41, 32,114,101,116,117,114,110, 32,
+  34, 92,110, 34, 32,101,110,100, 41, 10,108,111, 99, 97,108,
+  32,110,115,117, 98,115,116, 10,114,101,112,101, 97,116, 10,
+  99,111,100,101, 44,110,115,117, 98,115,116, 32, 61, 32,103,
+ 115,117, 98, 40, 99,111,100,101, 44, 39, 92,110, 37,115, 42,
+  37, 36, 40, 46, 41,102,105,108,101, 37,115, 42, 34, 40, 46,
+  45, 41, 34, 37,115, 42, 92,110, 39, 44, 10,102,117,110, 99,
+ 116,105,111,110, 32, 40,107,105,110,100, 44,102,110, 41, 10,
+ 108,111, 99, 97,108, 32, 95, 44, 32, 95, 44, 32,101,120,116,
+  32, 61, 32,115,116,114,102,105,110,100, 40,102,110, 44, 34,
+  46, 42, 37, 46, 40, 46, 42, 41, 36, 34, 41, 10,108,111, 99,
+  97,108, 32,102,112, 44,109,115,103, 32, 61, 32,111,112,101,
+ 110,102,105,108,101, 40,102,110, 44, 39,114, 39, 41, 10,105,
+ 102, 32,110,111,116, 32,102,112, 32,116,104,101,110, 10,101,
+ 114,114,111,114, 40, 39, 35, 39, 46, 46,109,115,103, 46, 46,
+  39, 58, 32, 39, 46, 46,102,110, 41, 10,101,110,100, 10,108,
+ 111, 99, 97,108, 32,115, 32, 61, 32,114,101, 97,100, 40,102,
+ 112, 44, 39, 42, 97, 39, 41, 10, 99,108,111,115,101,102,105,
+ 108,101, 40,102,112, 41, 10,105,102, 32,107,105,110,100, 32,
+  61, 61, 32, 39, 99, 39, 32,111,114, 32,107,105,110,100, 32,
+  61, 61, 32, 39,104, 39, 32,116,104,101,110, 10,114,101,116,
+ 117,114,110, 32,101,120,116,114, 97, 99,116, 95, 99,111,100,
+ 101, 40,102,110, 44,115, 41, 10,101,108,115,101,105,102, 32,
+ 107,105,110,100, 32, 61, 61, 32, 39,112, 39, 32,116,104,101,
+ 110, 10,114,101,116,117,114,110, 32, 34, 92,110, 92,110, 34,
+  32, 46, 46, 32,115, 10,101,108,115,101,105,102, 32,107,105,
+ 110,100, 32, 61, 61, 32, 39,108, 39, 32,116,104,101,110, 10,
+ 114,101,116,117,114,110, 32, 34, 92,110, 36, 91, 92,110, 34,
+  32, 46, 46, 32,115, 32, 46, 46, 32, 34, 92,110, 36, 93, 92,
+ 110, 34, 10,101,108,115,101, 10,101,114,114,111,114, 40, 39,
+  35, 73,110,118, 97,108,105,100, 32,105,110, 99,108,117,100,
+ 101, 32,100,105,114,101, 99,116,105,118,101, 32, 40,117,115,
+ 101, 32, 36, 99,102,105,108,101, 44, 32, 36,112,102,105,108,
+ 101, 32,111,114, 32, 36,108,102,105,108,101, 41, 39, 41, 10,
+ 101,110,100, 10,101,110,100, 41, 10,117,110,116,105,108, 32,
+ 110,115,117, 98,115,116, 61, 61, 48, 10,108,111, 99, 97,108,
+  32,116, 32, 61, 32, 95, 80, 97, 99,107, 97,103,101, 40, 95,
+  67,111,110,116, 97,105,110,101,114,123,110, 97,109,101, 61,
+ 110, 97,109,101, 44, 32, 99,111,100,101, 61, 99,111,100,101,
+ 125, 41, 10,112,117,115,104, 40,116, 41, 10,116, 58,112,114,
+ 101,112,114,111, 99,101,115,115, 40, 41, 10,116, 58,112, 97,
+ 114,115,101, 40,116, 46, 99,111,100,101, 41, 10,112,111,112,
+  40, 41, 10,114,101,116,117,114,110, 32,116, 10,101,110,100,
+ 32
  };
  if (luaL_loadbuffer(tolua_S,(char*)B,sizeof(B),"tolua: embedded Lua code") == LUA_OK)
  lua_pcall(tolua_S,0,LUA_MULTRET,0);
-- 
2.53.0

