static int array_getch(void * param)
{
array_contents_t * ml = (array_contents_t *)param;
char ** tab = (char **)ml->contents->elts;
while (ml->char_index >= ml->length) { /* next element */
if (ml->index >= ml->contents->nelts) {
/* maybe update. */
if (ml->next && ml->next->getch && next_one(ml)) {
return ml->next->getch(ml->next->param);
}
return -1;
}
ml->index++;
ml->char_index = 0;
ml->length = ml->index >= ml->contents->nelts? 0: strlen(tab[ml->index]);
}
return tab[ml->index][ml->char_index++];
}
function through pointer on line blah blah, don't have one available at the moment but this is the offending line.
return ml->next->getch(ml->next->param);
in httpd_config.h it used to be
int getch (void * params);
now it's
apr_status_t (*getch) (char *ch, void *param);
I can get it to compile but the module errors about a config problem. I'm sure this IS semi-simple it's just not showing itself to me.
Stefan mentioned ap_pcfg_open_custom() so I need to look into those changes, I'm just tired of looking at it right now. I have added a ifmodule for NOT mod_macro loaded to cover what was macro'd. When I feel like it I'll compile a latest svn download. But my head hurts even doing that at this point.
http://marc.info/?l=apache-httpd-dev&m=130289788707876&w=2