Changeset 907 for trunk/dll/grep.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/grep.c

    r850 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  12 Feb 03 SHL insert_grepfile: standardize EA math
     
    3030***********************************************************************/
    3131
    32 #define INCL_DOS
    33 #define INCL_WIN
    34 #define INCL_DOSERRORS
    35 #define INCL_LONGLONG
    36 #include <os2.h>
    37 
    3832#include <stdlib.h>
    3933#include <string.h>
    4034#include <ctype.h>
    41 #include <stdio.h>
    4235#include <share.h>
    4336
    44 #include "fm3dll.h"
     37#define INCL_DOS
     38#define INCL_DOSERRORS
     39#define INCL_WIN
     40#define INCL_LONGLONG
     41
    4542#include "fm3str.h"
    4643#include "grep.h"
     44#include "pathutil.h"                   // BldFullPathName
     45#include "filldir.h"                    // FillInRecordFromFFB
     46#include "makelist.h"                   // AddToList
     47#include "errutil.h"                    // Dos_Error...
     48#include "strutil.h"                    // GetPString
     49#include "fm3dll.h"
    4750
    4851#pragma data_seg(DATA2)
     
    588591                   MPFROMLONG(EXTRA_RECORD_BYTES),
    589592                   MPFROMLONG(grep->toinsert));
     593  // 04 Jan 08 SHL fixme to complain if CM_ALLOCRECORD fails
    590594  if (pci) {
     595    // 04 Jan 08 SHL fixme like comp.c to handle less than ulSelCnt records
    591596    if (grep->sayfiles)
    592597      WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPINSERTINGTEXT));
     
    11251130  register CHAR *pc, *pi;
    11261131  CHAR **list = NULL;
    1127   INT numfiles = 0, numalloced = 0, error;
     1132  UINT numfiles = 0, numalloced = 0;
     1133  INT error;
    11281134  register ULONG x = 0, y = 0;
    11291135  ULONG cntr = 1000;
Note: See TracChangeset for help on using the changeset viewer.