Changeset 1395 for trunk/dll/comp.c


Ignore:
Timestamp:
Feb 8, 2009, 2:48:16 AM (17 years ago)
Author:
Gregg Young
Message:

Allow user to turn off alert and/or error beeps in settings notebook. Ticket 341 Move repeated strings to PCSZs. Ticket 6 Add *DateFormat functions to format dates based on locale Ticket 28 Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error Ticket 6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1394 r1395  
    6161  25 Dec 08 GKY Add code to allow write verify to be turned off on a per drive basis.
    6262  11 Jan 09 GKY Replace font names in the string file with global set at compile in init.c
     63  07 Feb 09 GKY Add *DateFormat functions to format dates based on locale
    6364
    6465***********************************************************************/
     
    142143  HDIR hdir = HDIR_CREATE;
    143144  ULONG ulFindCnt;
     145  CHAR  szCmmaFmtFileSize[81], szDate[11];
    144146
    145147  // 13 Aug 07 SHL fimxe to use FileToGet
     
    161163        do {
    162164          strcpy(enddir, pffb->achName);
    163           if (!(pffb->attrFile & FILE_DIRECTORY))
    164             // 27 Sep 07 SHL fixme to use CommaFmtULL
     165          if (!(pffb->attrFile & FILE_DIRECTORY)) {
     166            CommaFmtULL(szCmmaFmtFileSize,
     167                        sizeof(szCmmaFmtFileSize), pffb->cbFile, ' ');
     168            FDateFormat(szDate, pffb->fdateLastWrite);
    165169            fprintf(fp,
    166                     "\"%s\",%u,%llu,%04u/%02u/%02u,%02u:%02u:%02u,%lu,%lu,N\n",
     170                    "\"%s\",%u,%s,%s,%02u%s%02u%s%02u,%lu,%lu,N\n",
    167171                    mask,
    168172                    enddir - mask,
    169                     pffb->cbFile,
    170                     (pffb->fdateLastWrite.year + 1980),
    171                     pffb->fdateLastWrite.month,
    172                     pffb->fdateLastWrite.day,
    173                     pffb->ftimeLastWrite.hours,
    174                     pffb->ftimeLastWrite.minutes,
     173                    szCmmaFmtFileSize,
     174                    szDate,
     175                    pffb->ftimeLastWrite.hours,
     176                    TimeSeparator,
     177                    pffb->ftimeLastWrite.minutes,
     178                    TimeSeparator,
    175179                    pffb->ftimeLastWrite.twosecs,
    176180                    pffb->attrFile,
    177                     pffb->cbList > 4 ? pffb->cbList / 2 : 0);
     181                    pffb->cbList > 4 ? pffb->cbList / 2 : 0);
     182          }
    178183          // Skip . and ..
    179184          else if (recurse &&
Note: See TracChangeset for help on using the changeset viewer.