perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Förtsch <torsten.foert...@gmx.net>
Subject simplify mod_perl.c a bit
Date Wed, 31 Mar 2010 15:07:14 GMT
Hi,

the patch below simplifies mod_perl.c a bit.

Instead of

modperl_response_handler_run(r, finish) {
  do something
  if( finish ) {
    modperl_response_finish()
  }
}

and calling that function in one place as

modperl_response_handler_run(r, TRUE)

and in the second place as

modperl_response_handler_run(r, TRUE)
do something
modperl_response_finish()

it now looks like

modperl_response_handler_run(r) {
  do something
}

1st usage:
modperl_response_handler_run(r)
modperl_response_finish()

2nd usage:
modperl_response_handler_run(r)
do something
modperl_response_finish()

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Mime
View raw message