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

    r1463 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H.Levine
     9  Copyright (c) 2001, 2010 Steven H.Levine
    1010
    1111  16 Oct 02 SHL DoFileDrag: don't free stack
     
    2525  12 Sep 09 GKY Fix (probably spurrious) error message generated on drag of
    2626                items from a pmmail mail message (PMERR_INVALID_PARAMETER)
     27  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    2728
    2829***********************************************************************/
     
    183184      DItem.ulItemID = 1;
    184185      DItem.hstrType = DrgAddStrHandle(DRT_UNKNOWN);
    185       DItem.hstrRMF = DrgAddStrHandle(DRMDRFLIST);
     186      DItem.hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST);
    186187      DItem.hstrContainerName = DrgAddStrHandle(szDir);
    187188      DItem.hstrSourceName = DrgAddStrHandle(szFile);
     
    364365      pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN);
    365366      ok = pDItem->hstrType;
    366       pDItem->hstrRMF = DrgAddStrHandle(DRMDRFLIST);
     367      pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST);
    367368      ok = ok && pDItem->hstrRMF;
    368369      pDItem->hstrContainerName = DrgAddStrHandle(szBuffer);
     
    440441      pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN);
    441442      ok = pDItem->hstrType;
    442       pDItem->hstrRMF = DrgAddStrHandle(DRMDRFOS2FILE);
     443      pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFOS2FILE);
    443444      ok = ok && pDItem->hstrRMF;
    444445      pDItem->hstrContainerName = DrgAddStrHandle(arcfile);
     
    479480        pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN);
    480481        ok = ok && pDItem->hstrType;
    481         pDItem->hstrRMF = DrgAddStrHandle(DRMDRFFM2ARC);
     482        pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFFM2ARC);
    482483        ok = ok && pDItem->hstrRMF;
    483484        pDItem->hstrContainerName = DrgAddStrHandle(arcfile);
     
    691692      pDItem->hstrType = DrgAddStrHandle(DRT_UNKNOWN);
    692693      ok = pDItem->hstrType;
    693       pDItem->hstrRMF = DrgAddStrHandle(DRMDRFLIST);
     694      pDItem->hstrRMF = DrgAddStrHandle((CHAR *) DRMDRFLIST);
    694695      ok = ok && pDItem->hstrRMF;
    695696      pDItem->hstrContainerName = DrgAddStrHandle(szBuffer);
Note: See TracChangeset for help on using the changeset viewer.