Changeset 1673 for trunk/dll/update.c


Ignore:
Timestamp:
Dec 30, 2012, 7:51:01 PM (13 years ago)
Author:
Gregg Young
Message:

Update to Doxygen comment style Ticket 55. Also some minor code cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/update.c

    r1611 r1673  
    7373}
    7474
    75 /* Update/add CNRITEM record for filename
     75/**
     76 * Update/add CNRITEM record for filename
    7677 * Deletes existing CNRITEM if file has disappeared
    7778 * @returns pci pointer to CNRITEM record or NULL if not found or if stale CNRITEM deleted
     
    9293  if (IsFullName(filename)) {
    9394    if (driveflags[toupper(*filename) - 'A'] & DRIVE_NOTWRITEABLE)
    94       /* ignore non-writeable drives */
     95      // ignore non-writeable drives
    9596      return (PCNRITEM) NULL;
    9697  }
     
    102103                         &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL);
    103104  if (!status) {
    104     /* file exists */
     105    // file exists
    105106    DosFindClose(hDir);
    106107    if (!dcd)
    107108      dcd = INSTDATA(hwndCnr);
    108 /*
    109     if(dcd->type == TREE_FRAME &&
    110        !(ffb.attrFile & FILE_DIRECTORY))
    111       return (PCNRITEM)NULL;
    112 */
    113109    if (dcd->type == ARC_FRAME)
    114110      return (PCNRITEM) NULL;
     
    167163                     MPFROMP(pci), MPFROM2SHORT(TRUE, oldemphasis));
    168164      }
    169       else                              /* existed, unchanged, do nothing but return */
     165      else                              // existed, unchanged, do nothing but return
    170166        return pci;
    171167    }
     
    207203      else if (ffb.attrFile & FILE_DIRECTORY) {
    208204
    209         /* check all parts and insert as required */
     205        // check all parts and insert as required
    210206        CHAR *p, temp;
    211207        PCNRITEM pciParent = NULL, pciT;
     
    359355      if (IsFullName(filename[x])) {
    360356        if (driveflags[toupper(*filename[x]) - 'A'] & DRIVE_NOTWRITEABLE)
    361           /* ignore non-writeable drives */
     357          // ignore non-writeable drives
    362358          continue;
    363359      }
     
    370366                             &ffb, sizeof(ffb), &nm, FIL_QUERYEASIZEL);
    371367      if (!status) {
    372         /* file exists */
     368        // file exists
    373369        DosFindClose(hDir);
    374         //      if(dcd->type == TREE_FRAME && !(ffb.attrFile & FILE_DIRECTORY))
    375         //        continue;
    376370        if (dcd->type == DIR_FRAME && *dcd->directory) {
    377371
     
    398392                            (PCNRITEM) NULL, partial, FALSE, TRUE);
    399393        if (pci) {
    400           /* update record? */
     394          // update record?
    401395          if ((!fForceUpper && !fForceLower &&
    402396               strcmp(pci->pszFileName, filename[x])) ||
     
    415409              pci->latime.minutes != ffb.ftimeLastAccess.minutes ||
    416410              pci->latime.hours != ffb.ftimeLastAccess.hours) {
    417             /* changed; update */
     411            // changed; update
    418412            pciList[numlist++] = pci;
    419413            *ffb.achName = 0;
     
    430424        }
    431425        else {
    432           /* add record */
     426          // add record
    433427          if (dcd->type == DIR_FRAME) {
    434428            RECORDINSERT ri;
     
    470464          }
    471465          else if (ffb.attrFile & FILE_DIRECTORY) {
    472             /* check all parts and insert as required */
     466            // check all parts and insert as required
    473467            CHAR *p, temp;
    474468            PCNRITEM pciParent = NULL, pciT;
     
    577571                                    TRUE)) != NULL &&
    578572               (INT) pci != -1 && !IsRoot(pci->pszFileName)) {
    579         /* file doesn't exist; delete record */
     573        // file doesn't exist; delete record
    580574        if (pci->rc.flRecordAttr & CRA_SELECTED)
    581575          WinSendMsg(hwndCnr,
Note: See TracChangeset for help on using the changeset viewer.