Changeset 1498 for trunk/dll/grep.c


Ignore:
Timestamp:
Jan 18, 2010, 1:57:01 AM (16 years ago)
Author:
Gregg Young
Message:

Changes to get FM2 to compile with the latest watcom 1.9 beta (mostly type casts of CHAR CONSTANT * to CHAR *). Changes to get the environment settings working everywhere again (broken by the change that moved commands to the INI); Added an environment size variable (set to 2048 which was the largest I found hard coded). Still need to find everywhere the environment size is set and use this variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r1471 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2009 Steven H. Levine
     9  Copyright (c) 2001, 2010 Steven H. Levine
    1010
    1111  12 Feb 03 SHL InsertGrepFile: standardize EA math
     
    3333  08 Mar 09 GKY Additional strings move to String Table
    3434  28 Jun 09 GKY Added AddBackslashToPath() to remove repeatative code.
     35  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    3536
    3637***********************************************************************/
     
    312313      // hwndStatus does not exist for applet
    313314      WinSetWindowText(hwndStatus ? hwndStatus : grep.hwndCurFile,
    314                        GetPString(grep.finddupes ? IDS_GREPDUPETEXT :
     315                       (CHAR *) GetPString(grep.finddupes ? IDS_GREPDUPETEXT :
    315316                                                   IDS_GREPSCANTEXT));
    316317
     
    722723    if (grep->sayfiles) {
    723724      if (!hwndStatus)
    724         WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPINSERTINGTEXT));
     725        WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPINSERTINGTEXT));
    725726      else {
    726727        if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    727           WinSetWindowText(hwndStatus, GetPString(IDS_GREPINSERTINGTEXT));
     728          WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPINSERTINGTEXT));
    728729      }
    729730    }
     
    13291330  if (x) {
    13301331    if (!hwndStatus)
    1331       WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPESORTINGTEXT));
     1332      WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT));
    13321333    else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    1333       WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPESORTINGTEXT));
     1334      WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPESORTINGTEXT));
    13341335    // DosSleep(0);  //26 Aug 07 GKY 1  // 07 Feb 08 SHL
    13351336    grep->dupenames = xmalloc(sizeof(DUPES *) * (x + 1), pszSrcFile, __LINE__);
     
    13651366
    13661367      if (!hwndStatus)
    1367         WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT));
     1368        WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT));
    13681369      else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    1369         WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPECOMPARINGTEXT));
     1370        WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT));
    13701371
    13711372      InitITimer(pitdSleep, 0);         // Reset rate estimator
     
    15231524        DosBeep(50, 100);
    15241525      if (!hwndStatus)
    1525         WinSetWindowText(grep->hwndCurFile, GetPString(IDS_GREPDUPECOMPARINGTEXT));
     1526        WinSetWindowText(grep->hwndCurFile, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT));
    15261527      else if (WinQueryFocus(HWND_DESKTOP) == grep->hwndFiles)
    1527         WinSetWindowText(hwndStatus, GetPString(IDS_GREPDUPECOMPARINGTEXT));
     1528        WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_GREPDUPECOMPARINGTEXT));
    15281529      x = y = 0;
    15291530      xfree(grep->dupenames, pszSrcFile, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.