Skip to content

Commit 4733482

Browse files
author
Joe Schaefer
committed
More Apache2 renames within the xs/Apache2 sources.
git-svn-id: https://svn.apache.org/repos/asf/perl/modperl/branches/apache2-rename-unstable@156496 13f79535-47bb-0310-9956-ffa450edef68
1 parent 85dfca7 commit 4733482

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

xs/Apache2/Directive/Apache2__Directive.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static XS(MPXS_Apache2__Directive_lookup)
122122

123123
if (items < 2 || items > 3) {
124124
Perl_croak(aTHX_
125-
"Usage: Apache::Directive::lookup(self, key, [args])");
125+
"Usage: Apache2::Directive::lookup(self, key, [args])");
126126
}
127127

128128
mpxs_PPCODE({
@@ -136,7 +136,7 @@ static XS(MPXS_Apache2__Directive_lookup)
136136
char *key = (char *)SvPV_nolen(ST(1));
137137
int scalar_context = (G_SCALAR == GIMME_V);
138138

139-
if (SvROK(ST(0)) && sv_derived_from(ST(0), "Apache::Directive")) {
139+
if (SvROK(ST(0)) && sv_derived_from(ST(0), "Apache2::Directive")) {
140140
IV tmp = SvIV((SV*)SvRV(ST(0)));
141141
tree = INT2PTR(Apache2__Directive,tmp);
142142
}

xs/Apache2/Filter/Apache2__Filter.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ static MP_INLINE apr_size_t mpxs_Apache2__Filter_print(pTHX_ I32 items,
3535
((modperl_filter_ctx_t *)modperl_filter->f->ctx)->handler->name);
3636
if (modperl_filter->mode == MP_OUTPUT_FILTER_MODE) {
3737
mpxs_write_loop(modperl_output_filter_write,
38-
modperl_filter, "Apache::Filter::print");
38+
modperl_filter, "Apache2::Filter::print");
3939
}
4040
else {
4141
mpxs_write_loop(modperl_input_filter_write,
42-
modperl_filter, "Apache::Filter::print");
42+
modperl_filter, "Apache2::Filter::print");
4343
}
4444

4545
/* XXX: ap_rflush if $| */
@@ -328,7 +328,7 @@ apr_status_t mpxs_Apache2__Filter_fflush(pTHX_ ap_filter_t *filter,
328328
/* if users don't bother to check the success, do it on their
329329
* behalf */
330330
if (GIMME_V == G_VOID && rc != APR_SUCCESS) {
331-
modperl_croak(aTHX_ rc, "Apache::Filter::fflush");
331+
modperl_croak(aTHX_ rc, "Apache2::Filter::fflush");
332332
}
333333

334334
return rc;
@@ -346,7 +346,7 @@ apr_status_t mpxs_Apache2__Filter_get_brigade(pTHX_
346346
/* if users don't bother to check the success, do it on their
347347
* behalf */
348348
if (GIMME_V == G_VOID && rc != APR_SUCCESS) {
349-
modperl_croak(aTHX_ rc, "Apache::Filter::get_brigade");
349+
modperl_croak(aTHX_ rc, "Apache2::Filter::get_brigade");
350350
}
351351

352352
return rc;
@@ -360,7 +360,7 @@ apr_status_t mpxs_Apache2__Filter_pass_brigade(pTHX_ ap_filter_t *f,
360360
/* if users don't bother to check the success, do it on their
361361
* behalf */
362362
if (GIMME_V == G_VOID && rc != APR_SUCCESS) {
363-
modperl_croak(aTHX_ rc, "Apache::Filter::pass_brigade");
363+
modperl_croak(aTHX_ rc, "Apache2::Filter::pass_brigade");
364364
}
365365

366366
return rc;

xs/Apache2/Module/Apache2__Module.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ static MP_INLINE void mpxs_Apache2__Module_add(pTHX_
8282
server_rec *s;
8383

8484
if (!(SvROK(cmds) && (SvTYPE(SvRV(cmds)) == SVt_PVAV))) {
85-
Perl_croak(aTHX_ "Usage: Apache::Module::add(__PACKAGE__, [])");
85+
Perl_croak(aTHX_ "Usage: Apache2::Module::add(__PACKAGE__, [])");
8686
}
8787

8888
s = modperl_global_get_server_rec();
8989
error = modperl_module_add(s->process->pconf, s, package, cmds);
9090

9191
if (error) {
92-
Perl_croak(aTHX_ "Apache::Module::add(%s) failed : %s",
92+
Perl_croak(aTHX_ "Apache2::Module::add(%s) failed : %s",
9393
package, error);
9494
}
9595

xs/Apache2/RequestIO/Apache2__RequestIO.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static MP_INLINE apr_size_t mpxs_ap_rvputs(pTHX_ I32 items,
6262

6363
MP_CHECK_WBUCKET_INIT("$r->puts");
6464
mpxs_write_loop(modperl_wbucket_write, rcfg->wbucket,
65-
"Apache::RequestIO::puts");
65+
"Apache2::RequestIO::puts");
6666

6767
MP_END_TIMES();
6868
MP_PRINT_TIMES("r->puts");
@@ -91,9 +91,9 @@ SV *mpxs_Apache2__RequestRec_print(pTHX_ I32 items,
9191

9292
MP_CHECK_WBUCKET_INIT("$r->print");
9393
mpxs_write_loop(modperl_wbucket_write, rcfg->wbucket,
94-
"Apache::RequestIO::print");
94+
"Apache2::RequestIO::print");
9595

96-
mpxs_output_flush(r, rcfg, "Apache::RequestIO::print");
96+
mpxs_output_flush(r, rcfg, "Apache2::RequestIO::print");
9797

9898
return bytes ? newSVuv(bytes) : newSVpvn("0E0", 3);
9999
}
@@ -123,9 +123,9 @@ apr_size_t mpxs_ap_rprintf(pTHX_ I32 items, SV **MARK, SV **SP)
123123

124124
MP_RUN_CROAK(modperl_wbucket_write(aTHX_ rcfg->wbucket,
125125
SvPVX(sv), &bytes),
126-
"Apache::RequestIO::printf");
126+
"Apache2::RequestIO::printf");
127127

128-
mpxs_output_flush(r, rcfg, "Apache::RequestIO::printf");
128+
mpxs_output_flush(r, rcfg, "Apache2::RequestIO::printf");
129129

130130
return bytes;
131131
}
@@ -156,7 +156,7 @@ apr_size_t mpxs_Apache2__RequestRec_write(pTHX_ request_rec *r,
156156
MP_CHECK_WBUCKET_INIT("$r->write");
157157
MP_RUN_CROAK(modperl_wbucket_write(aTHX_ rcfg->wbucket,
158158
buf+offset, &wlen),
159-
"Apache::RequestIO::write");
159+
"Apache2::RequestIO::write");
160160

161161
return wlen;
162162
}
@@ -179,7 +179,7 @@ void mpxs_Apache2__RequestRec_rflush(pTHX_ I32 items,
179179
apr_pstrmemdup(rcfg->wbucket->pool, rcfg->wbucket->outbuf,
180180
rcfg->wbucket->outcnt));
181181
MP_RUN_CROAK(modperl_wbucket_flush(rcfg->wbucket, TRUE),
182-
"Apache::RequestIO::rflush");
182+
"Apache2::RequestIO::rflush");
183183
}
184184

185185
static MP_INLINE long mpxs_ap_get_client_block(pTHX_ request_rec *r,
@@ -328,7 +328,7 @@ apr_status_t mpxs_Apache2__RequestRec_sendfile(pTHX_ request_rec *r,
328328
if (GIMME_V == G_VOID) {
329329
modperl_croak(aTHX_ rc,
330330
apr_psprintf(r->pool,
331-
"Apache::RequestIO::sendfile('%s')",
331+
"Apache2::RequestIO::sendfile('%s')",
332332
filename));
333333
}
334334
else {
@@ -357,7 +357,7 @@ apr_status_t mpxs_Apache2__RequestRec_sendfile(pTHX_ request_rec *r,
357357
rcfg->wbucket->outbuf,
358358
rcfg->wbucket->outcnt));
359359
MP_RUN_CROAK(modperl_wbucket_flush(rcfg->wbucket, TRUE),
360-
"Apache::RequestIO::sendfile");
360+
"Apache2::RequestIO::sendfile");
361361
}
362362
}
363363

@@ -366,7 +366,7 @@ apr_status_t mpxs_Apache2__RequestRec_sendfile(pTHX_ request_rec *r,
366366
/* apr_file_close(fp); */ /* do not do this */
367367

368368
if (GIMME_V == G_VOID && rc != APR_SUCCESS) {
369-
modperl_croak(aTHX_ rc, "Apache::RequestIO::sendfile");
369+
modperl_croak(aTHX_ rc, "Apache2::RequestIO::sendfile");
370370
}
371371

372372
return rc;

xs/Apache2/RequestUtil/Apache2__RequestUtil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ SV *mpxs_Apache2__RequestRec_new(pTHX_ SV *classname,
117117
r->assbackwards = 1;
118118
r->protocol = "UNKNOWN";
119119

120-
r_sv = sv_setref_pv(NEWSV(0, 0), "Apache::RequestRec", (void*)r);
120+
r_sv = sv_setref_pv(NEWSV(0, 0), "Apache2::RequestRec", (void*)r);
121121

122122
if (base_pool_sv) {
123123
mpxs_add_pool_magic(r_sv, base_pool_sv);

xs/Apache2/Response/Apache2__Response.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
/* XXX: this should probably named $r->cgi_header_parse
17-
* and send_cgi_header an alias in Apache::compat
17+
* and send_cgi_header an alias in Apache2::compat
1818
*/
1919
#define mpxs_Apache2__RequestRec_send_cgi_header(r, sv) \
2020
{ \

xs/Apache2/ServerRec/ServerRec_pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
use Exporter ();
2-
use Apache2::Log (); # Apache::ServerRec::loads warn
2+
use Apache2::Log (); # Apache2::ServerRec::loads warn
33
@Apache2::ServerRec::EXPORT_OK = qw(warn);
44
*Apache2::ServerRec::import = \&Exporter::import;

xs/Apache2/SubRequest/Apache2__SubRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static MP_INLINE int mpxs_ap_run_sub_req(pTHX_ request_rec *r)
2323
if (r->main) {
2424
modperl_config_req_t *rcfg = modperl_config_req_get(r->main);
2525
MP_RUN_CROAK(modperl_wbucket_flush(rcfg->wbucket, FALSE),
26-
"Apache::SubRequest::run");
26+
"Apache2::SubRequest::run");
2727
}
2828

2929
return ap_run_sub_req(r);

0 commit comments

Comments
 (0)