Changeset 1443 for trunk/dll/copyf.c


Ignore:
Timestamp:
Jul 16, 2009, 11:19:04 PM (16 years ago)
Author:
Steven Levine
Message:

Drop obsolete code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r1439 r1443  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H.Levine
     9  Copyright (c) 2001, 2009 Steven H.Levine
    1010
    1111  14 Sep 02 SHL Drop obsolete debug code
     
    2323  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
    2424  12 Jul 09 GKY Add xDosQueryAppType and xDoxAlloc... to allow FM/2 to load in high memory
     25  13 Jul 09 SHL Drop obsolete code
    2526
    2627***********************************************************************/
     
    7778  APIRET rc;
    7879  char *p, *o;
    79 
    8080
    8181  if (strlen(buffer) > 3) // && buffer[strlen(buffer) - 1] != '\\')
     
    380380}
    381381
    382 #if 0   // JBS  11 Sep 08
    383 CHAR default_disk(VOID)
    384 {
    385   ULONG ulDriveNum, ulDriveMap;
    386 
    387   DosError(FERR_DISABLEHARDERR);
    388   DosQCurDisk(&ulDriveNum, &ulDriveMap);
    389   return (CHAR) toupper((INT) ulDriveNum) + '@';
    390 }
    391 #endif
    392 
    393 #ifdef NEVER
    394 
    395 APIRET docopyallf(INT type, CHAR * oldname, CHAR * newname, ...)
    396 {
    397   FILEFINDBUF3 fb;
    398   ULONG nm;
    399   HDIR hdir;
    400   APIRET rc = 0;
    401   CHAR *enddir, fullname[CCHMAXPATH];
    402 
    403   va_start(ap, newname);
    404   vsprintf(fullname, newname, ap);
    405   va_end(ap);
    406 
    407   DosError(FERR_DISABLEHARDERR);
    408   if (!DosFindFirst(oldname)) {
    409     do {
    410 
    411       /* build target name */
    412 
    413       if (fb.attrFile & FILE_DIRECTORY) {
    414         DosError(FERR_ENABLEHARDERR);
    415         rc = DosCreateDir();
    416         if (rc == ERROR_INVALID_NAME || rc == ERROR_FILENAME_EXCED_RANGE) {
    417 
    418           /* truncate directory name */
    419           /* create that directory */
    420           /* update containers for name used */
    421 
    422         }
    423         rc = docopyallf(type,, "%s",);  /* recurse */
    424       }
    425       else
    426        // docopyf changed this won't work rc = docopyf(type,, "%s",);     /* copy file */
    427       DosError(FERR_DISABLEHARDERR);
    428     } while (!rc && !DosFindNext());
    429     DosFindClose(hdir);
    430   }
    431   else
    432     rc = ERROR_FILE_NOT_FOUND;
    433   return rc;
    434 }
    435 
    436 #endif
    437 
    438382APIRET docopyf(INT type, CHAR *oldname, CHAR *newname)
    439383{
Note: See TracChangeset for help on using the changeset viewer.