Changeset 1498 for trunk/dll/dircnrs.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/dircnrs.c

    r1497 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  16 Oct 02 SHL Handle large partitions
     
    7474                aren't user settable; realappname should be used for setting applicable to
    7575                one or more miniapp but not to FM/2
     76  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    7677
    7778***********************************************************************/
     
    867868      if (hwndStatus &&
    868869          dcd->hwndFrame == WinQueryActiveWindow(dcd->hwndParent)) {
    869         WinSetWindowText(hwndStatus, GetPString(IDS_PLEASEWAITSCANNINGTEXT));
     870        WinSetWindowText(hwndStatus, (CHAR *) GetPString(IDS_PLEASEWAITSCANNINGTEXT));
    870871        if (hwndMain)
    871872          WinSendMsg(hwndMain, UM_LOADFILE, MPVOID, MPVOID);
     
    29882989           */
    29892990          pDItem = DrgQueryDragitemPtr(pDInfo, 0);
    2990           if (DrgVerifyRMF(pDItem, DRM_OS2FILE, NULL) ||
     2991          if (DrgVerifyRMF(pDItem, (CHAR *) DRM_OS2FILE, NULL) ||
    29912992              ((!pci || (pci->attrFile & FILE_DIRECTORY)) &&
    2992                DrgVerifyRMF(pDItem, DRM_FM2ARCMEMBER, DRF_FM2ARCHIVE))) {
     2993               DrgVerifyRMF(pDItem, (CHAR *) DRM_FM2ARCMEMBER, (CHAR *) DRF_FM2ARCHIVE))) {
    29932994            DrgFreeDraginfo(pDInfo);
    29942995            if (driveflags[toupper(*dcd->directory) - 'A'] &
     
    30293030            if (hwndStatus2) {
    30303031              if (pci)
    3031                 WinSetWindowText(hwndStatus2,
    3032                                  GetPString(IDS_DRAGFILEOBJTEXT));
     3032                WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRAGFILEOBJTEXT));
    30333033              else
    3034                 WinSetWindowText(hwndStatus2, GetPString(IDS_DRAGDIRTEXT));
     3034                WinSetWindowText(hwndStatus2, (CHAR *) GetPString(IDS_DRAGDIRTEXT));
    30353035            }
    30363036            if (DoFileDrag(hwnd,
     
    34353435                if (hwndStatus)
    34363436                  WinSetWindowText(hwndStatus,
    3437                                    GetPString(IDS_RESCANSUGGESTEDTEXT));
     3437                                   (CHAR *) GetPString(IDS_RESCANSUGGESTEDTEXT));
    34383438              }
    34393439              else {
     
    37193719                                   WS_VISIBLE,
    37203720                                   &FrameFlags,
    3721                                    WC_DIRCONTAINER,
     3721                                   (CHAR *) WC_DIRCONTAINER,
    37223722                                   NULL,
    37233723                                   WS_VISIBLE | fwsAnimate,
Note: See TracChangeset for help on using the changeset viewer.