Changeset 3140 for trunk/src/kmk/vmsify.c
- Timestamp:
- Mar 14, 2018, 10:28:10 PM (7 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
-
Property svn:mergeinfo
set to
/vendor/gnumake/current merged eligible
-
Property svn:mergeinfo
set to
-
trunk/src/kmk/vmsify.c
r2591 r3140 1 1 /* vmsify.c -- Module for vms <-> unix file name conversion 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 3 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 2 Copyright (C) 1996-2016 Free Software Foundation, Inc. 4 3 This file is part of GNU Make. 5 4 … … 23 22 #include <string.h> 24 23 #include <ctype.h> 24 25 #include "makeint.h" 25 26 26 27 #if VMS … … 139 140 reslt[resltlen] = '\0'; 140 141 141 s = malloc (resltlen+1); 142 if (s == 0) 143 return ""; 142 s = xmalloc (resltlen+1); 144 143 strcpy (s, reslt); 145 144 return s; … … 223 222 max 5 version 224 223 */ 225 #define MAXPATHLEN 512 224 /* todo: VMSMAXPATHLEN is defined for ODS2 names: it needs to be adjusted. */ 225 #define VMSMAXPATHLEN 512 226 226 227 227 enum namestate nstate; 228 static char vmsname[ MAXPATHLEN+1];228 static char vmsname[VMSMAXPATHLEN+1]; 229 229 const char *fptr; 230 230 const char *t; … … 404 404 if (*fptr == 0) /* just // */ 405 405 { 406 char cwdbuf[ MAXPATHLEN+1];407 408 s1 = getcwd(cwdbuf, MAXPATHLEN);406 char cwdbuf[VMSMAXPATHLEN+1]; 407 408 s1 = getcwd(cwdbuf, VMSMAXPATHLEN); 409 409 if (s1 == 0) 410 410 { … … 798 798 { /* got '..' or '../' */ 799 799 char *vp; 800 char cwdbuf[ MAXPATHLEN+1];801 802 vp = getcwd(cwdbuf, MAXPATHLEN);800 char cwdbuf[VMSMAXPATHLEN+1]; 801 802 vp = getcwd(cwdbuf, VMSMAXPATHLEN); 803 803 if (vp == 0) 804 804 { … … 858 858 { 859 859 char *vp; 860 char cwdbuf[ MAXPATHLEN+1];861 862 vp = getcwd(cwdbuf, MAXPATHLEN);860 char cwdbuf[VMSMAXPATHLEN+1]; 861 862 vp = getcwd(cwdbuf, VMSMAXPATHLEN); 863 863 if (vp == 0) 864 864 {
Note:
See TracChangeset
for help on using the changeset viewer.