This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch [ecj]: Use PATH_SEPARATOR in jcf_path_compute
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 07 Dec 2006 01:04:51 -0600
- Subject: Patch [ecj]: Use PATH_SEPARATOR in jcf_path_compute
- Reply-to: gnustuff at thisiscool dot com
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