austern 03/02/05 16:12:15 Modified: live/gcc3/gcc cpplex.c cpplib.c toplev.c live/gcc3/gcc/pfe pfe-header.c Log: Reviewed by: Zem, Devang Replace MAXPATHLEN with PATH_MAX in APPLE LOCAL code Revision Changes Path 1.49 +1 -1 src/live/gcc3/gcc/cpplex.c Index: cpplex.c =================================================================== RCS file: /cvs/Darwin/src/live/gcc3/gcc/cpplex.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- cpplex.c 2003/02/05 20:21:13 1.48 +++ cpplex.c 2003/02/06 00:12:13 1.49 @@ -962,7 +962,7 @@ { /* Append current pwd. We need absolute path. */ char *apath; - int alen = MAXPATHLEN + strlen (saved_name) + 2; + int alen = PATH_MAX + strlen (saved_name) + 2; apath = (char *) xmalloc (sizeof (char) * alen); apath = getcwd (apath, alen); strcat (apath, "/"); 1.48 +1 -1 src/live/gcc3/gcc/cpplib.c Index: cpplib.c =================================================================== RCS file: /cvs/Darwin/src/live/gcc3/gcc/cpplib.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- cpplib.c 2003/02/05 20:21:14 1.47 +++ cpplib.c 2003/02/06 00:12:13 1.48 @@ -925,7 +925,7 @@ { /* Append current pwd. We need absolute path. */ char *apath; - int alen = MAXPATHLEN + strlen (new_file) + 2; + int alen = PATH_MAX + strlen (new_file) + 2; apath = (char *) xmalloc (sizeof (char) * alen); apath = getcwd (apath, alen); strcat (apath, "/"); 1.171 +1 -1 src/live/gcc3/gcc/toplev.c Index: toplev.c =================================================================== RCS file: /cvs/Darwin/src/live/gcc3/gcc/toplev.c,v retrieving revision 1.170 retrieving revision 1.171 diff -u -r1.170 -r1.171 --- toplev.c 2003/02/04 03:12:59 1.170 +++ toplev.c 2003/02/06 00:12:13 1.171 @@ -5768,7 +5768,7 @@ { /* Append current pwd. We need absolute path. */ char *apath; - int alen = MAXPATHLEN + strlen (name) + 2; + int alen = PATH_MAX + strlen (name) + 2; apath = (char *) xmalloc (sizeof (char) * alen); apath = getcwd(apath, alen); strcat (apath, "/"); 1.29 +1 -1 src/live/gcc3/gcc/pfe/pfe-header.c Index: pfe-header.c =================================================================== RCS file: /cvs/Darwin/src/live/gcc3/gcc/pfe/pfe-header.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- pfe-header.c 2002/10/24 23:49:25 1.28 +++ pfe-header.c 2003/02/06 00:12:15 1.29 @@ -202,7 +202,7 @@ if (input_name[0] != '/') { /* Append current pwd. We need absolute path. */ - int alen = MAXPATHLEN + strlen (input_name) + 2; + int alen = PATH_MAX + strlen (input_name) + 2; name = (char *) pfe_malloc (sizeof (char) * alen); name = getcwd(name, alen); strcat (name, "/");