You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2008/11/05 20:21:52 UTC
svn commit: r711670 - /httpd/mod_wombat/trunk/request.c
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<string, string>, table<string, array>]
+ return 2; // [table<string, string>, table<string, array<string>>]
}
// 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));