Skip to content

Commit a1e4c5a

Browse files
committed
One more backported (Nick expressed his -1 wasn't ment to be a veto,
next time please state something other than -1. -.999 would be fine.) Fix building PCRE with -DDEBUG on just about all the platforms under my roof (FreeBSD, Darwin, Ubuntu Breezy) Submitted by: sctemme Backports: r381783 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@495134 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8b440ae commit a1e4c5a

2 files changed

Lines changed: 10 additions & 15 deletions

File tree

STATUS

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,21 +96,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
9696
going on in this patch to no net effect. The WAIT_TIMEOUT
9797
result value seems to be ignored in the revised code?
9898

99-
* Bundled PCRE: backport r381783 from trunk
100-
Fix brokenness on certain platforms when building with -DDEBUG.
101-
http://svn.apache.org/viewvc?view=rev&revision=381783
102-
+1 sctemme, fielding, pquerna, jerenkrantz
103-
-1 niq: Why are we hacking a third-party package as bundled,
104-
rather than upstream? This has potential for chaos
105-
for modules (and we have a history of PCRE trouble)
106-
as well as a maintenance nightmare!
107-
jerenkrantz: I don't believe that's a valid reason to block this.
108-
We're bundling PCRE for the duration of the 2.2.x series,
109-
but we can re-evaluate for future major/minor revs.
110-
wrowe: nak niq, ack je; this is a silly debate, fix, push fixes upstream
111-
and adopt a newer PCRE at trunk/.
112-
niq: see http://mail-archives.apache.org/mod_mbox/httpd-dev/200611.mbox/raw/%3c20061108180201.6ad45937@grimnir%3e/
113-
11499
* PKCS#7: backport PCKS#7 patches from trunk.
115100
+1 ben
116101
jerenkrantz: What's the revision number to backport?

srclib/pcre/printint.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ else
107107

108108

109109

110+
#ifdef SUPPORT_UCP
110111
/*************************************************
111112
* Find Unicode property name *
112113
*************************************************/
@@ -121,6 +122,7 @@ for (i = sizeof(utt)/sizeof(ucp_type_table); i >= 0; i--)
121122
}
122123
return (i >= 0)? utt[i].name : "??";
123124
}
125+
#endif /* SUPPORT_UCP */
124126

125127

126128

@@ -255,11 +257,13 @@ for(;;)
255257
if (*code >= OP_TYPESTAR)
256258
{
257259
fprintf(f, "%s", OP_names[code[1]]);
260+
#ifdef SUPPORT_UCP
258261
if (code[1] == OP_PROP || code[1] == OP_NOTPROP)
259262
{
260263
fprintf(f, " %s ", get_ucpname(code[2]));
261264
extra = 1;
262265
}
266+
#endif
263267
}
264268
else extra = print_char(f, code+1, utf8);
265269
fprintf(f, "%s", OP_names[*code]);
@@ -280,11 +284,13 @@ for(;;)
280284
case OP_TYPEUPTO:
281285
case OP_TYPEMINUPTO:
282286
fprintf(f, " %s", OP_names[code[3]]);
287+
#ifdef SUPPORT_UCP
283288
if (code[3] == OP_PROP || code[3] == OP_NOTPROP)
284289
{
285290
fprintf(f, " %s ", get_ucpname(code[4]));
286291
extra = 1;
287292
}
293+
#endif
288294
fprintf(f, "{");
289295
if (*code != OP_TYPEEXACT) fprintf(f, "0,");
290296
fprintf(f, "%d}", GET2(code,1));
@@ -331,10 +337,12 @@ for(;;)
331337
GET(code, 2 + LINK_SIZE));
332338
break;
333339

340+
#ifdef SUPPORT_UCP
334341
case OP_PROP:
335342
case OP_NOTPROP:
336343
fprintf(f, " %s %s", OP_names[*code], get_ucpname(code[1]));
337344
break;
345+
#endif
338346

339347
/* OP_XCLASS can only occur in UTF-8 mode. However, there's no harm in
340348
having this code always here, and it makes it less messy without all those
@@ -394,6 +402,7 @@ for(;;)
394402
int ch;
395403
while ((ch = *ccode++) != XCL_END)
396404
{
405+
#ifdef SUPPORT_UCP
397406
if (ch == XCL_PROP)
398407
{
399408
fprintf(f, "\\p{%s}", get_ucpname(*ccode++));
@@ -403,6 +412,7 @@ for(;;)
403412
fprintf(f, "\\P{%s}", get_ucpname(*ccode++));
404413
}
405414
else
415+
#endif
406416
{
407417
ccode += 1 + print_char(f, ccode, TRUE);
408418
if (ch == XCL_RANGE)

0 commit comments

Comments
 (0)