Changeset 897 for trunk/dll/saveclip.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/saveclip.c

    r871 r897  
    2020  27 Sep 07 SHL Correct ULONGLONG size formatting
    2121  16 Nov 07 SHL Ensure fixup buffer sufficiently large
     22  30 Dec 07 GKY Use CommaFmtULL
    2223
    2324***********************************************************************/
     
    356357        PCNRITEM pci;
    357358        FILE *fp;
    358         CHAR *p, *pp, temp;
     359        CHAR *p, *pp, temp;
     360        CHAR szCmmaFmtFileSize[81];
    359361        INT attribute = CRA_CURSORED;
    360362        SHORT sSelect;
     
    453455                      break;
    454456                    case 'Z':
    455                       // 27 Sep 07 SHL fixme to use CommaFmtULL?
    456                       fprintf(fp, "%-13llu", pci->cbFile);
     457                      CommaFmtULL(szCmmaFmtFileSize,
     458                      sizeof(szCmmaFmtFileSize), pci->cbFile, ' ');
     459                      fprintf(fp, "%-13s", szCmmaFmtFileSize);
    457460                      break;
    458461                    case 'z':
    459                       // 27 Sep 07 SHL fixme to use CommaFmtULL?
    460                       fprintf(fp, "%llu", pci->cbFile);
     462                      CommaFmtULL(szCmmaFmtFileSize,
     463                      sizeof(szCmmaFmtFileSize), pci->cbFile, ' ');
     464                      fprintf(fp, "%s", szCmmaFmtFileSize);
    461465                      break;
    462466                    case 'E':
     
    848852                  PGEA2 pgea;
    849853                  PFEA2 pfea;
    850                   CHAR *value;
     854                  CHAR *value;
     855
    851856
    852857                  pgealist =
     
    887892                  if (*p == '%') {
    888893                    p++;
    889                     switch (*p) {
     894                    switch (*p) {
     895                      CHAR szCmmaFmtFileSize[81];
    890896                    case 's':
    891897                      fputs(subject, fp);
     
    895901                      break;
    896902                    case 'Z':
    897                       // 27 Sep 07 SHL fixme to use CommaFmtULL?
    898                       fprintf(fp, "%-13llu", ffb4.cbFile);
     903                      CommaFmtULL(szCmmaFmtFileSize,
     904                      sizeof(szCmmaFmtFileSize), ffb4.cbFile, ' ');
     905                      fprintf(fp, "%-13s", szCmmaFmtFileSize);
    899906                      break;
    900907                    case 'z':
    901                       // 27 Sep 07 SHL fixme to use CommaFmtULL?
    902                       fprintf(fp, "%llu", ffb4.cbFile);
     908                      CommaFmtULL(szCmmaFmtFileSize,
     909                      sizeof(szCmmaFmtFileSize), ffb4.cbFile, ' ');
     910                      fprintf(fp, "%s", szCmmaFmtFileSize);
    903911                      break;
    904912                    case 'E':
Note: See TracChangeset for help on using the changeset viewer.