Changeset 165


Ignore:
Timestamp:
May 26, 2005, 4:43:02 AM (20 years ago)
Author:
root
Message:

Rework for FillInRecordFromFFB
Add CommaFmtULL CommaFmtUL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/fm3dll.h

    r145 r165  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2005 Steven H.Levine
     9  Copyright (c) 2001, 2005 Steven H. Levine
    1010
    1111  12 Feb 03 SHL Add CBLIST_TO_EASIZE
     
    1616  23 May 05 SHL Split datamin to datamin.h
    1717  24 May 05 SHL Rework Win_Error usage
     18  25 May 05 SHL Require VAC 3.65
     19  25 May 05 SHL Rename comnam to szCommonName
     20  25 May 05 SHL Rework for FillInRecordFromFFB
     21  25 May 05 SHL Add CommaFmtULL CommaFmtUL
    1822
    1923***********************************************************************/
     24
     25#if __IBMC__ != 430
     26#error VAC365 required for long long support
     27#endif
     28
     29#if !defined(_LONG_LONG)
     30#error Long long support not enabled
     31#endif
    2032
    2133#ifdef DEFINE_GLOBALS
     
    334346  MINIRECORDCORE rc;                  /* Base information */
    335347  HWND           hwndCnr;             /* The container holding this record */
    336   PSZ            pszFileName;         /* Pointer to file name */
    337   CHAR           szFileName[CCHMAXPATH]; /* File name */
    338   CHAR           subject[40];         /* subject string */
    339   CHAR          *pszSubject;          /* pointer to subject string */
    340   CHAR          *pszDispAttr;         /* Pointer to attrib string */
     348  PSZ            pszFileName;         // Points to szFileName  - required by CFA_STRING
     349  CHAR           szFileName[CCHMAXPATH]; // Path name - fixme to rename
     350  CHAR           szSubject[40];       /* Subject string */
     351  CHAR          *pszSubject;          // Points szSubject - required by CFA_STRING
     352  CHAR          *pszDispAttr;         // Points to szDispAttr - required by CFA_STRING
    341353  CDATE          date;                /* Last write date of file */
    342354  CTIME          time;                /* Last write time of file */
     
    346358  CTIME          crtime;              /* Creation time of file */
    347359  CHAR           szDispAttr[6];       /* Attrib string for details display */
    348   CHAR          *pszLongname;
    349   ULONG          cbFile;              /* File size */
    350   ULONG          easize;              /* Size of EAs */
     360  CHAR          *pszLongname;         // Points to szLongName - required by CFA_STRING
     361  ULONGLONG      cbFile;              /* File size */
     362  ULONGLONG      easize;              // Size of EAs - dirsize uses this - hack cough
    351363  ULONG          attrFile;            /* Attributes of this file */
    352364  ULONG          flags;
    353   CHAR           Longname[1];
     365  CHAR           szLongname[1];       // Holds .LONGNAME EA or root flag
    354366} CNRITEM, *PCNRITEM;
    355367
     
    450462  CHAR      font[CCHMAXPATH];
    451463  MASK      mask;
    452   ULONG     totalbytes,selectedbytes,selectedfiles,totalfiles;
     464  ULONGLONG ullTotalBytes;
     465  ULONGLONG selectedbytes;
     466  ULONG     selectedfiles;
     467  ULONG     totalfiles;
    453468  BOOL      cnremphasized;
    454469  BOOL      dontclose;
     
    472487  USHORT    shiftstate;
    473488  USHORT    suspendview;
    474   CHAR      comnam[CCHMAXPATH];
     489  CHAR      szCommonName[CCHMAXPATH];
    475490  ULONG     lasttime;
    476491  BOOL      arcfilled;
     
    527542
    528543/* filldir.c */
    529 ULONG FillDirCnr   (HWND hwndCnr,CHAR *directory,DIRCNRDATA *dcd);
    530 ULONG FillTreeCnr  (HWND hwndCnr,HWND hwndParent);
    531 ULONG ProcessDirectory (const HWND hwndCnr, const PCNRITEM pciParent,
    532                         const CHAR *szDirBase, const BOOL filestoo,
    533                         const BOOL recurse,const BOOL partial,
    534                         CHAR *stopflag,DIRCNRDATA *dcd,ULONG *foundany);
    535 ULONG FillInRecordFromFFB (HWND hwndCnr,PCNRITEM pci, const PSZ pszDirectory,
    536                            const PFILEFINDBUF4 pffb,const BOOL partial,
    537                            DIRCNRDATA *dcd);
    538 ULONG FillInRecordFromFSA (HWND hwndCnr,PCNRITEM pci,const PSZ pszFileName,
    539                                    const PFILESTATUS4 pfsa4,
    540                                    const BOOL partial,DIRCNRDATA *dcd);
    541 
     544VOID FillDirCnr(HWND hwndCnr,CHAR *pszDirectory,DIRCNRDATA *pdcd,
     545                PULONGLONG pullBytes);
     546VOID FillTreeCnr(HWND hwndCnr,HWND hwndParent);
     547VOID ProcessDirectory(const HWND hwndCnr, const PCNRITEM pciParent,
     548                      const CHAR *szDirBase, const BOOL filestoo,
     549                      const BOOL recurse,const BOOL partial,
     550                      CHAR *stopflag,DIRCNRDATA *pdcd,
     551                      PULONG pullTotalFiles,
     552                      PULONGLONG pullTotalBytes);
     553ULONGLONG FillInRecordFromFFB(HWND hwndCnr,PCNRITEM pci, const PSZ pszDirectory,
     554                              const PFILEFINDBUF4 pffb,const BOOL partial,
     555                              DIRCNRDATA *pdcd);
     556ULONGLONG FillInRecordFromFSA (HWND hwndCnr,PCNRITEM pci,const PSZ pszFileName,
     557                               const PFILESTATUS4 pfsa4,
     558                               const BOOL partial,DIRCNRDATA *pdcd);
    542559
    543560/* flesh.c */
     
    855872VOID Deselect (HWND hwndCnr);
    856873VOID HideAll (HWND hwndCnr);
    857 VOID RemoveAll (HWND hwndCnr,ULONG *totalbytes,ULONG *totalfiles);
     874VOID RemoveAll (HWND hwndCnr,ULONGLONG *ullTotalBytes,ULONG *totalfiles);
    858875VOID MarkAll (HWND hwndCnr,BOOL quitit,BOOL target,BOOL source);
    859876VOID SetMask (CHAR *str,MASK *mask);
     
    10751092
    10761093/* commafmt.c */
    1077 size_t commafmt(char *buf,int bufsize,long N);
     1094size_t commafmt(PSZ pszBuf,UINT cBufSize,LONG lNumber);
     1095size_t CommaFmtUL(char *pszBuf,UINT cBufSize,ULONG ullNumber,
     1096                  CHAR chPreferred);
     1097size_t CommaFmtULL(char *pszBuf,UINT cBufSize,ULONGLONG ullNumber,
     1098                   CHAR chPreferred);
    10781099
    10791100/* autoview.c */
Note: See TracChangeset for help on using the changeset viewer.