Ignore:
Timestamp:
Mar 14, 2018, 10:28:10 PM (7 years ago)
Author:
bird
Message:

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk

  • trunk/src/kmk/vmsify.c

    r2591 r3140  
    11/* 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.
     2Copyright (C) 1996-2016 Free Software Foundation, Inc.
    43This file is part of GNU Make.
    54
     
    2322#include <string.h>
    2423#include <ctype.h>
     24
     25#include "makeint.h"
    2526
    2627#if VMS
     
    139140  reslt[resltlen] = '\0';
    140141
    141   s = malloc (resltlen+1);
    142   if (s == 0)
    143     return "";
     142  s = xmalloc (resltlen+1);
    144143  strcpy (s, reslt);
    145144  return s;
     
    223222   max 5 version
    224223*/
    225 #define MAXPATHLEN 512
     224/* todo: VMSMAXPATHLEN is defined for ODS2 names: it needs to be adjusted. */
     225#define VMSMAXPATHLEN 512
    226226
    227227  enum namestate nstate;
    228   static char vmsname[MAXPATHLEN+1];
     228  static char vmsname[VMSMAXPATHLEN+1];
    229229  const char *fptr;
    230230  const char *t;
     
    404404            if (*fptr == 0)             /* just // */
    405405              {
    406                 char cwdbuf[MAXPATHLEN+1];
    407 
    408                 s1 = getcwd(cwdbuf, MAXPATHLEN);
     406                char cwdbuf[VMSMAXPATHLEN+1];
     407
     408                s1 = getcwd(cwdbuf, VMSMAXPATHLEN);
    409409                if (s1 == 0)
    410410                  {
     
    798798            {                                   /* got '..' or '../' */
    799799              char *vp;
    800               char cwdbuf[MAXPATHLEN+1];
    801 
    802               vp = getcwd(cwdbuf, MAXPATHLEN);
     800              char cwdbuf[VMSMAXPATHLEN+1];
     801
     802              vp = getcwd(cwdbuf, VMSMAXPATHLEN);
    803803              if (vp == 0)
    804804                {
     
    858858            {
    859859              char *vp;
    860               char cwdbuf[MAXPATHLEN+1];
    861 
    862               vp = getcwd(cwdbuf, MAXPATHLEN);
     860              char cwdbuf[VMSMAXPATHLEN+1];
     861
     862              vp = getcwd(cwdbuf, VMSMAXPATHLEN);
    863863              if (vp == 0)
    864864                {
Note: See TracChangeset for help on using the changeset viewer.