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

    r1455 r1498  
    77
    88  Copyright (c) 1993, 1998 M. Kimes
    9   Copyright (c) 2001, 2008 Steven H. Levine
     9  Copyright (c) 2001, 2010 Steven H. Levine
    1010
    1111  13 Aug 05 SHL Renames
     
    3232                inappropriate menu context choices
    3333  14 Sep 09 SHL Blink thread LEDs while threads working
     34  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    3435
    3536***********************************************************************/
     
    235236      break;
    236237    }
    237     hwndTmp = WinCreateWindow(hwnd, class, s, attrs, 0, 0, 0, 0, hwnd,
     238    hwndTmp = WinCreateWindow(hwnd, (CHAR *) class, s, attrs, 0, 0, 0, 0, hwnd,
    238239                              HWND_TOP, ids[x], NULL, NULL);
    239240    if (!hwndTmp)
     
    437438  // Left status window
    438439  hwndStatus = WinCreateWindow(hwndFrame,
    439                                WC_STATUS,
     440                               (CHAR *) WC_STATUS,
    440441                               "Status",
    441442                               WS_VISIBLE | SS_TEXT | DT_LEFT |
     
    458459  // Right status window
    459460  hwndStatus2 = WinCreateWindow(hwndFrame,
    460                                 WC_STATUS,
     461                                (CHAR *) WC_STATUS,
    461462                                "Status2",
    462463                                WS_VISIBLE | SS_TEXT | DT_LEFT |
     
    479480
    480481  hwndAttr = WinCreateWindow(hwndFrame,
    481                              WC_STATUS,
     482                             (CHAR *) WC_STATUS,
    482483                             "Attr",
    483484                             WS_VISIBLE | SS_TEXT | DT_CENTER |
     
    498499
    499500  hwndDate = WinCreateWindow(hwndFrame,
    500                              WC_STATUS,
     501                             (CHAR *) WC_STATUS,
    501502                             "Date",
    502503                             WS_VISIBLE | SS_TEXT | DT_CENTER |
     
    517518
    518519  hwndName = WinCreateWindow(hwndFrame,
    519                              WC_STATUS,
     520                             (CHAR *) WC_STATUS,
    520521                             "Name",
    521522                             WS_VISIBLE | SS_TEXT | DT_LEFT |
     
    536537
    537538  hwndTmp = WinCreateWindow(hwndFrame,
    538                             WC_TOOLBACK,
     539                            (CHAR *) WC_TOOLBACK,
    539540                            NullStr,
    540541                            WS_VISIBLE | SS_TEXT | DT_CENTER | DT_VCENTER,
     
    554555
    555556  hwndBack = WinCreateWindow(hwndFrame,
    556                              WC_DRIVEBACK,
     557                             (CHAR *) WC_DRIVEBACK,
    557558                             NullStr,
    558559                             WS_VISIBLE | SS_TEXT | DT_RIGHT | DT_BOTTOM,
     
    575576
    576577  hwndLED = WinCreateWindow(hwndFrame,
    577                             WC_LED,
     578                            (CHAR *) WC_LED,
    578579                            "#920",     // LEDOFF_BMP
    579580                            WS_VISIBLE | SS_BITMAP,
     
    587588
    588589  hwndLEDHdr = WinCreateWindow(hwndFrame,
    589                                WC_LED,
     590                               (CHAR *) WC_LED,
    590591                               "0",
    591592                               WS_VISIBLE | SS_TEXT | DT_VCENTER |
     
    601602
    602603  hwndAutoview = WinCreateWindow(hwndFrame,
    603                                  WC_AUTOVIEW,
     604                                 (CHAR *) WC_AUTOVIEW,
    604605                                 NullStr,
    605606                                 WS_VISIBLE | SS_TEXT | DT_LEFT |
     
    623624  hwndAutoMLE = WinCreateWindow(hwndFrame,
    624625                                // GetPString(IDS_WCAUTOVIEW),
    625                                 WC_MLE,
     626                                (CHAR *) WC_MLE,
    626627                                NullStr,
    627628                                WS_VISIBLE | MLS_HSCROLL |
Note: See TracChangeset for help on using the changeset viewer.