You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2009/07/20 21:32:59 UTC
svn commit: r795971 - in /httpd/httpd/branches/2.2.x: STATUS
server/gen_test_char.c
Author: jim
Date: Mon Jul 20 19:32:59 2009
New Revision: 795971
URL: http://svn.apache.org/viewvc?rev=795971&view=rev
Log:
Update
Modified:
httpd/httpd/branches/2.2.x/STATUS
httpd/httpd/branches/2.2.x/server/gen_test_char.c
Modified: httpd/httpd/branches/2.2.x/STATUS
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/STATUS?rev=795971&r1=795970&r2=795971&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/STATUS (original)
+++ httpd/httpd/branches/2.2.x/STATUS Mon Jul 20 19:32:59 2009
@@ -85,13 +85,6 @@
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * gen_test_char.c: enable building gen_test_char for running on build machine
- when cross-compiling. The patch doesnt introduce code changes for any
- platform unless CROSS_COMPILE is defined.
- Trunk patch: http://svn.apache.org/viewvc?view=rev&revision=795438
- 2.2.x patch: http://people.apache.org/~fuankg/diffs/gen_test_char.c.diff
- +1: fuankg, niq, jim
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
Modified: httpd/httpd/branches/2.2.x/server/gen_test_char.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/server/gen_test_char.c?rev=795971&r1=795970&r2=795971&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/server/gen_test_char.c (original)
+++ httpd/httpd/branches/2.2.x/server/gen_test_char.c Mon Jul 20 19:32:59 2009
@@ -14,9 +14,27 @@
* limitations under the License.
*/
+#ifdef CROSS_COMPILE
+
+#define apr_isalnum(c) (isalnum(((unsigned char)(c))))
+#define apr_isalpha(c) (isalpha(((unsigned char)(c))))
+#define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
+#define apr_isprint(c) (isprint(((unsigned char)(c))))
+#include <ctype.h>
+#define APR_HAVE_STDIO_H 1
+#define APR_HAVE_STRING_H 1
+
+#else
+
#include "apr.h"
#include "apr_lib.h"
+#if defined(WIN32) || defined(OS2)
+#define WANT_WIN32_OS2
+#endif
+
+#endif
+
#if APR_HAVE_STDIO_H
#include <stdio.h>
#endif
@@ -62,7 +80,7 @@
printf("\n ");
/* escape_shell_cmd */
-#if defined(WIN32) || defined(OS2)
+#if defined(WANT_WIN32_OS2)
/* Win32/OS2 have many of the same vulnerable characters
* as Unix sh, plus the carriage return and percent char.
* The proper escaping of these characters varies from unix