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

    r888 r907  
    77
    88  Copyright (c) 1993, 1998 M. Kimes
    9   Copyright (c) 2001, 2007 Steven H. Levine
     9  Copyright (c) 2001, 2008 Steven H. Levine
    1010
    1111  13 Aug 05 SHL Renames
     
    2323***********************************************************************/
    2424
     25#include <stdlib.h>
     26#include <string.h>
     27#include <ctype.h>
     28
    2529#define INCL_DOS
    2630#define INCL_DOSERRORS
    2731#define INCL_WIN
    2832#define INCL_GPI
    29 #define INCL_LONGLONG
    30 #include <os2.h>
    31 
    32 #include <stdarg.h>
    33 #include <stdio.h>
    34 #include <stdlib.h>
    35 #include <string.h>
    36 #include <ctype.h>
    37 #include <time.h>
    38 #include <direct.h>
    39 #include <share.h>
    40 #include <limits.h>
    41 
    42 #include "fm3dll.h"
     33#define INCL_LONGLONG                   // dircnrs.h
     34
    4335#include "fm3dlg.h"
    4436#include "fm3str.h"
    4537#include "mle.h"
     38#include "filldir.h"                    // RemoveCnrItems
     39#include "errutil.h"                    // Dos_Error...
     40#include "strutil.h"                    // GetPString
     41#include "fm3dll.h"
    4642
    4743#pragma data_seg(DATA1)
     
    244240  case IDM_CHKDSK:
    245241    runemf2(SEPARATE | WINDOWED,
    246             hwnd, pszSrcFile, __LINE__, NULL, NULL,
    247             "PMCHKDSK.EXE %c:", toupper(*dv));
     242            hwnd, pszSrcFile, __LINE__, NULL, NULL,
     243            "PMCHKDSK.EXE %c:", toupper(*dv));
    248244    break;
    249245  case IDM_OPTIMIZE:
     
    265261  case IDM_FORMAT:
    266262    runemf2(SEPARATE | WINDOWED,
    267             hwnd, pszSrcFile, __LINE__, NULL, NULL,
    268             "PMFORMAT.EXE %c:", toupper(*dv));
     263            hwnd, pszSrcFile, __LINE__, NULL, NULL,
     264            "PMFORMAT.EXE %c:", toupper(*dv));
    269265    break;
    270266
Note: See TracChangeset for help on using the changeset viewer.