This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch [ecj]: Use PATH_SEPARATOR in jcf_path_compute


This should probably go on the trunk too for good form.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/

2006-12-07  Mohan Embar  <gnustuff@thisiscool.com>

	* jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR.

Index: jcf-path.c
===================================================================
--- jcf-path.c	(revision 119567)
+++ jcf-path.c	(working copy)
@@ -457,6 +457,9 @@
   return (void *) ent->next;
 }
 
+static const char
+PATH_SEPARATOR_STR[] = {PATH_SEPARATOR, '\0'};
+
 char *
 jcf_path_compute (const char *prefix)
 {
@@ -474,7 +477,7 @@
   for (iter = sealed; iter != NULL; iter = iter->next)
     {
       if (! first)
-	strcat (result, ":");
+	strcat (result, PATH_SEPARATOR_STR);
       first = 0;
       strcat (result, iter->name);
       /* Ugly: we want to strip the '/' from zip entries when




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]