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

    r1402 r1498  
    77
    88  Copyright (c) 1993-97 M. Kimes
    9   Copyright (c) 2005, 2009 Steven H. Levine
     9  Copyright (c) 2005, 2010 Steven H. Levine
    1010
    1111  23 May 05 SHL Use QWL_USER
     
    2020  07 Feb 09 GKY Eliminate Win_Error2 by moving function names to PCSZs used in Win_Error
    2121  08 Mar 09 GKY Additional strings move to String Table
     22  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    2223
    2324***********************************************************************/
     
    154155                                 0,
    155156                                 &flFrameFlags,
    156                                  WC_MLEEDITOR,
     157                                 (CHAR *) WC_MLEEDITOR,
    157158                                 NullStr,
    158159                                 fwsAnimate,
     
    439440          WinSetWindowText(hwndStatus2,
    440441                           (*vw->exportfilename) ?
    441                            vw->exportfilename : GetPString(IDS_UNTITLEDTEXT));
     442                           vw->exportfilename : (CHAR *) GetPString(IDS_UNTITLEDTEXT));
    442443        if (fMoreButtons) {
    443444          WinSetWindowText(hwndName,
    444445                           (*vw->exportfilename) ?
    445                            vw->exportfilename : GetPString(IDS_UNTITLEDTEXT));
     446                           vw->exportfilename : (CHAR *) GetPString(IDS_UNTITLEDTEXT));
    446447          WinSetWindowText(hwndDate, NullStr);
    447448          WinSetWindowText(hwndAttr, NullStr);
     
    449450        if (hwndStatus)
    450451          WinSetWindowText(hwndStatus,
    451                            GetPString(IDS_INTERNALVIEWEREDITORTITLETEXT));
     452                           (CHAR *) GetPString(IDS_INTERNALVIEWEREDITORTITLETEXT));
    452453      }
    453454    }
     
    477478        size = sizeof(BOOL);
    478479        PrfQueryProfileData(fmprof,
    479                             FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size);
     480                            (CHAR *) (CHAR *) FM3Str, "MLEWrap", (PVOID) & vw->fWrap, &size);
    480481        size = sizeof(BOOL);
    481482        PrfQueryProfileData(fmprof,
    482                             FM3Str,
     483                            (CHAR *) FM3Str,
    483484                            "MLEstriptrail",
    484485                            (PVOID) & vw->fStripTrail, &size);
    485486        size = sizeof(BOOL);
    486487        PrfQueryProfileData(fmprof,
    487                             FM3Str,
     488                            (CHAR *) FM3Str,
    488489                            "MLEstriptraillines",
    489490                            (PVOID) & vw->fStripTrailLines, &size);
    490491        size = sizeof(BOOL);
    491492        PrfQueryProfileData(fmprof,
    492                             FM3Str,
     493                            (CHAR *) FM3Str,
    493494                            "MLEInsensitve",
    494495                            (PVOID) & vw->srch.fInsensitive, &size);
    495496        size = sizeof(INT);
    496497        PrfQueryProfileData(fmprof,
    497                             FM3Str,
     498                            (CHAR *) FM3Str,
    498499                            "MLEExpandTabs", (PVOID) & vw->ExpandTabs, &size);
    499500        size = sizeof(INT);
    500501        PrfQueryProfileData(fmprof,
    501                             FM3Str,
     502                            (CHAR *) FM3Str,
    502503                            "MLETabStops", (PVOID) & vw->TabStops, &size);
    503504      }
     
    540541
    541542          if (!PrfQueryProfileData(fmprof,
    542                                    FM3Str,
     543                                   (CHAR *) FM3Str,
    543544                                   "MLEFont",
    544545                                   &vw->fattrs,
     
    571572          size = sizeof(ULONG);
    572573          PrfQueryProfileData(fmprof,
    573                               FM3Str,
     574                              (CHAR *) FM3Str,
    574575                              "MLEBackgroundcolor",
    575576                              &Colors[COLORS_BACKGROUND], &size);
    576577          size = sizeof(ULONG);
    577578          PrfQueryProfileData(fmprof,
    578                               FM3Str,
     579                              (CHAR *) FM3Str,
    579580                              "MLEForegroundcolor",
    580581                              &Colors[COLORS_FOREGROUND], &size);
     
    752753                     MPVOID);
    753754          PrfWriteProfileData(fmprof,
    754                               FM3Str,
     755                              (CHAR *) FM3Str,
    755756                              "MLEForegroundcolor",
    756757                              &Colors[COLORS_FOREGROUND], sizeof(LONG));
     
    760761                     MPVOID);
    761762          PrfWriteProfileData(fmprof,
    762                               FM3Str,
     763                              (CHAR *) FM3Str,
    763764                              "MLEBackgroundcolor",
    764765                              &Colors[COLORS_BACKGROUND], sizeof(LONG));
     
    778779      WinSendMsg(hwndMLE, MLM_SETFONT, MPFROMP(&vw->fattrs), MPVOID);
    779780      PrfWriteProfileData(fmprof,
    780                           FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));
     781                          (CHAR *) FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));
    781782      break;
    782783
     
    10061007                     MLM_SETTABSTOP, MPFROMLONG(vw->TabStops), MPVOID);
    10071008          PrfWriteProfileData(fmprof,
    1008                               FM3Str,
     1009                              (CHAR *) FM3Str,
    10091010                              "MLETabStops", &vw->TabStops, sizeof(INT));
    10101011        }
     
    10311032          SetMenuCheck(vw->hwndMenu, MLE_EXPANDTABS, &tempbool, FALSE, NULL);
    10321033          PrfWriteProfileData(fmprof,
    1033                               FM3Str,
     1034                              (CHAR *) FM3Str,
    10341035                              "MLEExpandTabs", &vw->ExpandTabs, sizeof(INT));
    10351036        }
     
    11431144      SetMLEFont(hwndMLE, &vw->fattrs, 0);
    11441145      PrfWriteProfileData(fmprof,
    1145                           FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));
     1146                          (CHAR *) FM3Str, "MLEFont", &vw->fattrs, sizeof(FATTRS));
    11461147      break;
    11471148
Note: See TracChangeset for help on using the changeset viewer.