Difference for common/map.c from version 1.55 to 1.56


version 1.55 version 1.56
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_map_c =   * static char *rcsid_map_c =
  *   "$Id: map.c,v 1.55 2003/06/30 19:14:13 tchize Exp $";   *   "$Id: map.c,v 1.56 2003/08/02 16:25:23 tchize Exp $";
  */   */
   
 /*  /*
Line 179
 
Line 179
   
 int check_path (char *name, int prepend_dir)  int check_path (char *name, int prepend_dir)
 {  {
 #ifdef WIN32 /* ***win32: check this sucker in windows style. */  
  return(_access(name,0));  
 #else  
     char buf[MAX_BUF], *endbuf;      char buf[MAX_BUF], *endbuf;
     struct stat statbuf;      struct stat statbuf;
     int mode = 0, i;      int mode = 0, i;
Line 190
 
Line 187
  strcpy (buf, create_pathname(name));   strcpy (buf, create_pathname(name));
     else      else
  strcpy(buf, name);   strcpy(buf, name);
   #ifdef WIN32 /* ***win32: check this sucker in windows style. */
    return(_access(name,0));
   #else
   
     /* old method (strchr(buf, '\0')) seemd very odd to me -      /* old method (strchr(buf, '\0')) seemd very odd to me -
      * this method should be equivalant and is clearer.       * this method should be equivalant and is clearer.


Legend:
line(s) removed in v.1.55 
line(s) changed
 line(s) added in v.1.56

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:13