ソースを参照

Add library test for Lua5.3

bel2125 9 年 前
コミット
533eac37cd
4 ファイル変更6 行追加4 行削除
  1. 1 0
      src/mod_lua.inl
  2. 1 0
      src/third_party/civetweb_lua.h
  3. 2 2
      test/page2.lp
  4. 2 2
      test/page2.lua

+ 1 - 0
src/mod_lua.inl

@@ -1615,3 +1615,4 @@ static void lua_websocket_close(struct mg_connection *conn, void *ws_arg)
 	(void)pthread_mutex_unlock(&ws->ws_mutex);
 }
 #endif
+

+ 1 - 0
src/third_party/civetweb_lua.h

@@ -70,3 +70,4 @@
 #endif
 
 #endif /* #ifndef CIVETWEB_LUA_H */
+

+ 2 - 2
test/page2.lp

@@ -4,7 +4,7 @@
 <html><body>
 
 <p>This is another example of a Lua server page, served by
-<a href="http://sourceforge.net/projects/civetweb/">Civetweb web server</a>.
+<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>.
 </p><p>
 The following features are available:
 <ul>
@@ -33,7 +33,7 @@ The following features are available:
   -- Print Lua version and available libraries
   mg.write("<li>" .. _VERSION .. " with the following standard libraries</li>\n")
   mg.write("<ul>")
-  libs = {"string", "math", "table", "io", "os", "bit32", "package", "coroutine", "debug"};
+  libs = {"string", "math", "table", "io", "os", "bit32", "utf8", "package", "coroutine", "debug"};
   for _,n in ipairs(libs) do
     print_if_available(_G[n], n);
   end

+ 2 - 2
test/page2.lua

@@ -4,7 +4,7 @@ mg.write("\r\n")
 mg.write([[<html><body>
 
 <p>This is another example of a Lua server page, served by
-<a href="http://sourceforge.net/projects/civetweb/">Civetweb web server</a>.
+<a href="https://github.com/civetweb/civetweb">CivetWeb web server</a>.
 </p><p>
 The following features are available:
 <ul>
@@ -39,7 +39,7 @@ end
 -- Print Lua version and available libraries
 mg.write("<li>" .. _VERSION .. " with the following standard libraries</li>\n")
 mg.write("<ul>\n")
-libs = {"string", "math", "table", "io", "os", "bit32", "package", "coroutine", "debug"};
+libs = {"string", "math", "table", "io", "os", "bit32", "utf8", "package", "coroutine", "debug"};
 for _,n in ipairs(libs) do
   print_if_available(_G[n], n);
 end