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

    r906 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  01 Dec 03 SHL Comments
     
    3232***********************************************************************/
    3333
     34#include <stdlib.h>
     35#include <string.h>
     36#include <process.h>
     37#include <limits.h>
     38#include <share.h>
     39
    3440#define INCL_DOS
    3541#define INCL_WIN
    3642#define INCL_GPI
    3743#define INCL_LONGLONG
    38 #include <os2.h>
    39 
    40 #include <stdlib.h>
    41 #include <stdio.h>
    42 #include <string.h>
    43 #include <ctype.h>
    44 #include <process.h>
    45 #include <limits.h>
    46 #include <share.h>
    47 
    48 #include "fm3dll.h"
     44
    4945#include "fm3dlg.h"
    5046#include "fm3str.h"
    5147#include "mle.h"
     48#include "makelist.h"                   // AddToList
     49#include "errutil.h"                    // Dos_Error...
     50#include "strutil.h"                    // GetPString
     51#include "fm3dll.h"
    5252
    5353#pragma data_seg(DATA2)
     
    357357  CHAR **list = NULL, s[SEARCHSTRINGLEN], a;
    358358  register CHAR *p, *e;
    359   INT numlines = 0, numalloc = 0;
     359  UINT numlines = 0, numalloc = 0;
    360360
    361361  if (ad && ad->selected) {
     
    396396            while (*e != '\r' && *e != '\n' && e < ad->text + ad->textsize)
    397397              e++;
    398 /*
    399    if((*e == '\r' || *e == '\n') && e > p)
    400    e--;
    401  */
     398            /* fixme to be gone?
     399               if((*e == '\r' || *e == '\n') && e > p)
     400               e--;
     401            */
    402402            width = e - p;
    403403          }
     
    434434  CHAR **list = NULL, s[SEARCHSTRINGLEN];
    435435  SHORT x, z;
    436   INT numlines = 0, numalloc = 0;
     436  UINT numlines = 0, numalloc = 0;
    437437
    438438  if (ad) {
Note: See TracChangeset for help on using the changeset viewer.