Diff for /np2/macos9/dosio.cpp between versions 1.3 and 1.5

version 1.3, 2004/01/23 06:03:40 version 1.5, 2005/02/14 06:25:31
Line 274  short file_attr(const char *path) { Line 274  short file_attr(const char *path) {
         else {          else {
                 ret = FILEATTR_ARCHIVE;                  ret = FILEATTR_ARCHIVE;
         }          }
         if (pb.hFileInfo.ioFlAttrib & kioFlAttribLockedMask) {          if (pb.hFileInfo.ioFlAttrib & 0x01) {
                 ret |= FILEATTR_READONLY;                  ret |= FILEATTR_READONLY;
         }          }
         return(ret);          return(ret);
Line 561  BOOL file_listnext(FLISTH hdl, FLINFO *f Line 561  BOOL file_listnext(FLISTH hdl, FLINFO *f
                         fli->size = flhdl->pb.hFileInfo.ioFlLgLen;                          fli->size = flhdl->pb.hFileInfo.ioFlLgLen;
                         dt = flhdl->pb.hFileInfo.ioFlMdDat;                          dt = flhdl->pb.hFileInfo.ioFlMdDat;
                 }                  }
                 if (flhdl->pb.hFileInfo.ioFlAttrib & kioFlAttribLockedMask) {                  if (flhdl->pb.hFileInfo.ioFlAttrib & 0x01) {
                         fli->attr |= FILEATTR_READONLY;                          fli->attr |= FILEATTR_READONLY;
                 }                  }
                 cnvdatetime(dt, &fli->date, &fli->time);                  cnvdatetime(dt, &fli->date, &fli->time);
Line 612  void file_catname(char *path, const char Line 612  void file_catname(char *path, const char
         }          }
 }  }
   
 char *file_getname(char *path) {  char *file_getname(const char *path) {
   
         char    *ret;  const char      *ret;
   
         ret = path;          ret = path;
         while(*path != '\0') {          while(*path != '\0') {
Line 622  char *file_getname(char *path) { Line 622  char *file_getname(char *path) {
                         ret = path;                          ret = path;
                 }                  }
         }          }
         return(ret);          return((char *)ret);
 }  }
   
 void file_cutname(char *path) {  void file_cutname(char *path) {
Line 633  void file_cutname(char *path) { Line 633  void file_cutname(char *path) {
         p[0] = '\0';          p[0] = '\0';
 }  }
   
 char *file_getext(char *path) {  char *file_getext(const char *path) {
   
         char    *p;  const char      *p;
         char    *q;  const char      *q;
   
         p = file_getname(path);          p = file_getname(path);
         q = NULL;          q = NULL;
Line 649  char *file_getext(char *path) { Line 649  char *file_getext(char *path) {
         if (!q) {          if (!q) {
                 q = p;                  q = p;
         }          }
         return(q);          return((char *)q);
 }  }
   
 void file_cutext(char *path) {  void file_cutext(char *path) {

Removed from v.1.3  
changed lines
  Added in v.1.5


RetroPC.NET-CVS <cvs@retropc.net>