commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r813903 - /commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
Date Fri, 11 Sep 2009 16:11:40 GMT
Author: mturk
Date: Fri Sep 11 16:11:40 2009
New Revision: 813903

URL: http://svn.apache.org/viewvc?rev=813903&view=rev
Log:
Don't use private functions on Windows.

Modified:
    commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c

Modified: commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c?rev=813903&r1=813902&r2=813903&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/test/testsuite.c Fri Sep 11 16:11:40 2009
@@ -68,7 +68,7 @@
 static int test_getenv(int argc, const char *const argv[])
 {
     int failed = 0;
-    const char *envval;
+    char *envval;
 
     envval = ACR_EnvGet("PATH");
     if (!envval)
@@ -105,7 +105,7 @@
     acr_pchar_t *fn;
     fprintf(stdout, "Using Temporary Directory : `" PRINT_PSTR "\'\n",
 #if defined(WIN32)
-            ACR_TempPathGet(NULL, "\\foo;.\\bar;;"));
+            ACR_TempPathGet(NULL, L"\\foo;.\\bar;;"));
 #else
             ACR_TempPathGet(NULL, "/foo:./bar::"));
 #endif
@@ -423,10 +423,11 @@
     i = ACR_StrMatchA(argv[0], argv[1], &mp, 0);
     printf("smatch returned  %d\n", i);
     printf("smatch ended on '%s'\n", argv[0] + mp);
-
+#if !defined(WIN32)
     printf("original string is %s.\n", argv[0]);
     shquote(argv[0], buf, 1024);
     printf("quoted   string is %s.\n", buf);
+#endif
     return 0;
 }
 



Mime
View raw message