Changeset 1443 for trunk/dll/copyf.c
- Timestamp:
- Jul 16, 2009, 11:19:04 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/dll/copyf.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/copyf.c
r1439 r1443 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2001, 200 8Steven H.Levine9 Copyright (c) 2001, 2009 Steven H.Levine 10 10 11 11 14 Sep 02 SHL Drop obsolete debug code … … 23 23 28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code. 24 24 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 25 26 26 27 ***********************************************************************/ … … 77 78 APIRET rc; 78 79 char *p, *o; 79 80 80 81 81 if (strlen(buffer) > 3) // && buffer[strlen(buffer) - 1] != '\\') … … 380 380 } 381 381 382 #if 0 // JBS 11 Sep 08383 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 #endif392 393 #ifdef NEVER394 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 else426 // 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 else432 rc = ERROR_FILE_NOT_FOUND;433 return rc;434 }435 436 #endif437 438 382 APIRET docopyf(INT type, CHAR *oldname, CHAR *newname) 439 383 {
Note:
See TracChangeset
for help on using the changeset viewer.
