Changeset 907 for trunk/dll/seeall.c


Ignore:
Timestamp:
Jan 6, 2008, 8:26:17 AM (18 years ago)
Author:
Steven Levine
Message:

Avoid out of memory traps in Compare Directories
Rework Compare Directories progress display for 2 second update rate
Start refactoring to reduce dependence on fm3dll.h
Add timer services (IsITimerExpired etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/seeall.c

    r897 r907  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2007 Steven H. Levine
     9  Copyright (c) 2001, 2008 Steven H. Levine
    1010
    1111  16 Oct 02 SHL Handle large partitions
     
    3636***********************************************************************/
    3737
     38#include <stdlib.h>
     39#include <string.h>
     40#include <ctype.h>
     41#include <process.h>
     42
    3843#define INCL_DOS
    3944#define INCL_DOSERRORS
     
    4146#define INCL_GPI
    4247#define INCL_LONGLONG
    43 #include <os2.h>
    44 
    45 #include <stdlib.h>
    46 #include <stdio.h>
    47 #include <string.h>
    48 #include <ctype.h>
    49 #include <process.h>
    50 
    51 #include "fm3dll.h"
     48
    5249#include "fm3dlg.h"
    5350#include "fm3str.h"
     51#include "pathutil.h"                   // BldQuotedFullPathName...
     52#include "makelist.h"                   // AddToList
     53#include "errutil.h"                    // Dos_Error...
     54#include "strutil.h"                    // GetPString
     55#include "fm3dll.h"
    5456
    5557#pragma data_seg(DATA2)
     
    262264    {
    263265      CHAR **files = NULL, **list = (CHAR **) mp2, path[CCHMAXPATH];
    264       INT numfiles = 0, numalloc = 0, plen = 0;
     266      UINT numfiles = 0, numalloc = 0;
     267      INT plen = 0;
    265268      HWND hwndFrame = WinQueryWindowULong(hwnd, QWL_USER);
    266269      CHAR message[CCHMAXPATH * 2], wildname[CCHMAXPATH];
     
    13171320  ULONG z = 0;
    13181321  CHAR **list = NULL;
    1319   INT numfiles = 0;
    1320   INT numalloc = 0;
     1322  UINT numfiles = 0;
     1323  UINT numalloc = 0;
    13211324  INT error;
    13221325
     
    19241927  if (!rc) {
    19251928    do {
    1926 #if 0 // 13 Aug 07 SHL fixme to be gone
    1927       {
    1928         static ULONG ulMaxCnt = 1;
    1929         if (ulFindCnt > ulMaxCnt) {
    1930           ulMaxCnt = ulFindCnt;
    1931           DbgMsg(pszSrcFile, __LINE__, "ulMaxCnt %u/%u", ulMaxCnt, ulFindMax);
    1932         }
    1933       }
    1934 #endif // fixme to be gone
    19351929      priority_normal();
    19361930      pffbFile = pffbArray;
Note: See TracChangeset for help on using the changeset viewer.