You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by pq...@apache.org on 2008/11/08 08:53:34 UTC
svn commit: r712360 - /httpd/mod_wombat/trunk/mod_wombat.c
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);