apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saxon Druce" <sa...@blocksoftware.com>
Subject [PATCH] filepath.c with Borland C++ Builder
Date Wed, 25 Jun 2003 06:27:43 GMT
Hi,

This is a repost of the patch below, which I posted on the 3rd of June and
13th of May, and actually first posted back in March 2002.

Under Borland C++ Builder 6.0 (bcc32 5.6) the existing code produces an
error, because the compiler can't handle the initializer. The patch makes it
possible to compile the file.

Is there something wrong with the patch, or is the person responsible for
reviewing it just busy? Should I keep posting it every so often?

Thanks,
Saxon Druce (saxon@blocksoftware.com)

---------------------------------------------------------------

--- apr/file_io/win32/filepath.c.old    Tue May 13 14:35:32 2003
+++ apr/file_io/win32/filepath.c        Tue May 13 14:38:31 2003
@@ -156,9 +156,11 @@

 #else /* ndef(NETWARE) */

-    char seperator[2] = { (flags & APR_FILEPATH_NATIVE) ? '\\' : '/', 0};
+    char seperator[2] = {0, 0};
     const char *delim1;
     const char *delim2;
+
+    seperator[0] = (flags & APR_FILEPATH_NATIVE) ? '\\' : '/';

     if (testpath[0] == '/' || testpath[0] == '\\') {
         if (testpath[1] == '/' || testpath[1] == '\\') {


Mime
View raw message