From cvs-return-31250-apmail-httpd-cvs-archive=httpd.apache.org@httpd.apache.org Wed Nov 05 19:22:44 2008 Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 51277 invoked from network); 5 Nov 2008 19:22:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Nov 2008 19:22:44 -0000 Received: (qmail 70916 invoked by uid 500); 5 Nov 2008 19:22:50 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 70859 invoked by uid 500); 5 Nov 2008 19:22:50 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 70850 invoked by uid 99); 5 Nov 2008 19:22:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 11:22:50 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Nov 2008 19:21:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 03B6523889BA; Wed, 5 Nov 2008 11:21:53 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r711670 - /httpd/mod_wombat/trunk/request.c Date: Wed, 05 Nov 2008 19:21:52 -0000 To: cvs@httpd.apache.org From: brianm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081105192153.03B6523889BA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: brianm Date: Wed Nov 5 11:21:52 2008 New Revision: 711670 URL: http://svn.apache.org/viewvc?rev=711670&view=rev Log: flag unimplemented apr_table_t dispatch Modified: httpd/mod_wombat/trunk/request.c Modified: httpd/mod_wombat/trunk/request.c URL: http://svn.apache.org/viewvc/httpd/mod_wombat/trunk/request.c?rev=711670&r1=711669&r2=711670&view=diff ============================================================================== --- httpd/mod_wombat/trunk/request.c (original) +++ httpd/mod_wombat/trunk/request.c Wed Nov 5 11:21:52 2008 @@ -146,7 +146,7 @@ if (apreq_args(h, &form_table) == APR_SUCCESS) { apr_table_do(req_aprtable2luatable_cb, L, form_table, NULL); } - return 2; // [table, table] + return 2; // [table, table>] } // wrap ap_rputs as r:puts(String) @@ -284,6 +284,11 @@ if (rft) { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "rft -> %d, type -> %d", (int)rft, rft->type); switch(rft->type) { + case APW_REQ_FUNTYPE_TABLE: { + ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> apr table (NOT IMPLEMENTED YET)", name); + return 0; + } + case APW_REQ_FUNTYPE_LUACFUN: { ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "%s -> lua_CFunction", name); lua_CFunction func = rft->fun; @@ -436,13 +441,8 @@ apr_hash_set(dispatch, "crit", APR_HASH_KEY_STRING, makefun(&req_crit, APW_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "alert", APR_HASH_KEY_STRING, makefun(&req_alert, APW_REQ_FUNTYPE_LUACFUN, p)); apr_hash_set(dispatch, "emerg", APR_HASH_KEY_STRING, makefun(&req_emerg, APW_REQ_FUNTYPE_LUACFUN, p)); - // req_add_output_filter apr_hash_set(dispatch, "add_output_filter", APR_HASH_KEY_STRING, makefun(&req_add_output_filter, APW_REQ_FUNTYPE_LUACFUN, p)); - - // lua_pushinteger(L, r->status); - // lua_setfield(L, -2, "status"); - apr_hash_set(dispatch, "assbackwards", APR_HASH_KEY_STRING, makefun(&req_assbackwards_field, APW_REQ_FUNTYPE_BOOLEAN, p)); apr_hash_set(dispatch, "status", APR_HASH_KEY_STRING, makefun(&req_status_field, APW_REQ_FUNTYPE_INT, p)); apr_hash_set(dispatch, "protocol", APR_HASH_KEY_STRING, makefun(&req_protocol_field, APW_REQ_FUNTYPE_STRING, p));