httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject svn commit: r712360 - /httpd/mod_wombat/trunk/mod_wombat.c
Date Sat, 08 Nov 2008 07:53:34 GMT
Author: pquerna
Date: Fri Nov  7 23:53:34 2008
New Revision: 712360

URL: http://svn.apache.org/viewvc?rev=712360&view=rev
Log:
Return zero from the dumper, so that lua keeps calling us.

Modified:
    httpd/mod_wombat/trunk/mod_wombat.c

Modified: httpd/mod_wombat/trunk/mod_wombat.c
URL: http://svn.apache.org/viewvc/httpd/mod_wombat/trunk/mod_wombat.c?rev=712360&r1=712359&r2=712360&view=diff
==============================================================================
--- httpd/mod_wombat/trunk/mod_wombat.c (original)
+++ httpd/mod_wombat/trunk/mod_wombat.c Fri Nov  7 23:53:34 2008
@@ -303,9 +303,8 @@
 
 static int ldump_writer (lua_State *L, const void* b, size_t size, void* B) {
     (void)L;
-    fprintf(stderr, "dump of %ld bytes\n", size);
     luaL_addlstring((luaL_Buffer*) B, (const char *)b, size);
-    return 1;
+    return 0;
 }
 
 typedef struct hack_section_baton {
@@ -383,8 +382,8 @@
         ctx.cfp = cmd->config_file;
         ctx.startline = cmd->config_file->line_number;
 
-        /* This lua State is used only to compile the input strings -> bytecode. */
-        lvm = lua_open();
+        /* This lua State is used only to compile the input strings -> bytecode, so we
don't need anything extra. */
+        lvm = luaL_newstate();
 
         lua_settop(lvm, 0);
 



Mime
View raw message