Changeset 897 for trunk/dll/select.c


Ignore:
Timestamp:
Dec 31, 2007, 12:34:00 AM (18 years ago)
Author:
Gregg Young
Message:

Use CommaFmtULL for additional file, EA etc sizes display; Modify/Create TestFDates & TestCDates for comparing/sorting files or CNRITEMS by date/time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/select.c

    r847 r897  
    585585  BOOL slow = FALSE;
    586586  UINT x, numD, numS;
     587  INT ret = 0;
    587588
    588589  if (!hwndCnrS || !hwndCnrD) {
     
    701702        pciDa[x]->flags |= CNRITEM_LARGER;
    702703      }
    703       if ((pciSa[x]->date.year > pciDa[x]->date.year) ? TRUE :
     704      ret = TestCDates(&pciDa[x]->date, &pciDa[x]->time,
     705                       &pciSa[x]->date, &pciSa[x]->time);
     706      if (ret == 1)
     707        /*((pciSa[x]->date.year > pciDa[x]->date.year) ? TRUE :
    704708          (pciSa[x]->date.year < pciDa[x]->date.year) ? FALSE :
    705709          (pciSa[x]->date.month > pciDa[x]->date.month) ? TRUE :
     
    712716          (pciSa[x]->time.minutes < pciDa[x]->time.minutes) ? FALSE :
    713717          (pciSa[x]->time.seconds > pciDa[x]->time.seconds) ? TRUE :
    714           (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? FALSE : FALSE) {
     718          (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? FALSE : FALSE)*/ {
    715719        pciSa[x]->flags |= CNRITEM_NEWER;
    716720        pciDa[x]->flags |= CNRITEM_OLDER;
    717721      }
    718       else if ((pciSa[x]->date.year < pciDa[x]->date.year) ? TRUE :
     722      else if (ret == -1)
     723        /*((pciSa[x]->date.year < pciDa[x]->date.year) ? TRUE :
    719724               (pciSa[x]->date.year > pciDa[x]->date.year) ? FALSE :
    720725               (pciSa[x]->date.month < pciDa[x]->date.month) ? TRUE :
     
    728733               (pciSa[x]->time.seconds < pciDa[x]->time.seconds) ? TRUE :
    729734               (pciSa[x]->time.seconds > pciDa[x]->time.seconds) ? FALSE :
    730                FALSE) {
     735               FALSE)*/ {
    731736        pciSa[x]->flags |= CNRITEM_OLDER;
    732737        pciDa[x]->flags |= CNRITEM_NEWER;
     
    11871192  HENUM henum;
    11881193  HWND hwnd;
    1189   register INT numwindows = 0, w, x, z, cmp;
     1194  INT numwindows = 0, w, x, z, cmp = 0;
    11901195  struct Cnr *Cnrs = NULL;
    11911196  struct SS *bsres;
     
    12771282                bsres->pci->cbFile + bsres->pci->easize)
    12781283              Cnrs[z].ss[x].largest = FALSE;
    1279             cmp =
    1280               (Cnrs[z].ss[x].pci->date.year >
     1284            cmp = TestCDates(&bsres->pci->date, &bsres->pci->time,
     1285                             &Cnrs[z].ss[x].pci->date, &Cnrs[z].ss[x].pci->time);
     1286              /*(Cnrs[z].ss[x].pci->date.year >
    12811287               bsres->pci->date.year) ? TRUE : (Cnrs[z].ss[x].pci->date.year <
    12821288                                                bsres->pci->date.
     
    13111317                                                     seconds <
    13121318                                                     bsres->pci->time.
    1313                                                      seconds) ? FALSE : FALSE;
    1314             if (!cmp)
     1319                                                     seconds) ? FALSE : FALSE;*/
     1320            if (cmp != 1)
    13151321              Cnrs[z].ss[x].newest = FALSE;
    1316             cmp =
     1322            /*cmp =
    13171323              (Cnrs[z].ss[x].pci->date.year <
    13181324               bsres->pci->date.year) ? TRUE : (Cnrs[z].ss[x].pci->date.year >
     
    13481354                                                     seconds >
    13491355                                                     bsres->pci->time.
    1350                                                      seconds) ? FALSE : FALSE;
    1351             if (!cmp)
     1356                                                     seconds) ? FALSE : FALSE;*/
     1357            if (cmp != -1)
    13521358              Cnrs[z].ss[x].oldest = FALSE;
    13531359            cmp = 0;
Note: See TracChangeset for help on using the changeset viewer.