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

    r1483 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2004, 2009 Steven H. Levine
     9  Copyright (c) 2004, 2010 Steven H. Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    5858  13 Dec 09 GKY Updated Quick page "Default" to match current defaults; added Gregg's way
    5959                option to Quick page.
     60  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    6061
    6162***********************************************************************/
     
    14361437                          &fShowDriveLabelInTree, sizeof(BOOL));
    14371438      fVTreeOpensWPS = WinQueryButtonCheckstate(hwnd, CFGT_VTREEOPENSWPS);
    1438       PrfWriteProfileData(fmprof, FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS,
     1439      PrfWriteProfileData(fmprof, (CHAR *) (CHAR *) FM3Str, "VTreeOpensWPS", &fVTreeOpensWPS,
    14391440                          sizeof(BOOL));
    14401441      fCollapseFirst = WinQueryButtonCheckstate(hwnd, CFGT_COLLAPSEFIRST);
     
    19441945      if (fOldSyncUpdates != fSyncUpdates) {
    19451946        fSyncUpdates = fOldSyncUpdates;
    1946         if (hwndMain && !strcmp(realappname, FM3Str)) {
     1947        if (hwndMain && !strcmp(realappname, (CHAR *) FM3Str)) {
    19471948          // Save state and restore to refresh windows with new settings
    19481949          if (SaveDirCnrState(hwndMain, PCSZ_FM2TEMPTEXT) > 0) {
     
    20992100
    21002101  case WM_CLOSE:
    2101     if (hwndMain && !strcmp(realappname, FM3Str)) {
     2102    if (hwndMain && !strcmp(realappname, (CHAR *) FM3Str)) {
    21022103      if (fFreeTree != WinQueryButtonCheckstate(hwnd, CFGM_FREETREE))
    21032104        PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_FREETREE, 0), MPVOID);
     
    21072108        fSplitStatus = (fSplitStatus) ? FALSE : TRUE;
    21082109        PostMsg(hwndMain, WM_COMMAND, MPFROM2SHORT(IDM_BLINK, 0), MPVOID);
    2109         PrfWriteProfileData(fmprof, FM3Str, "SplitStatus", &fSplitStatus,
     2110        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "SplitStatus", &fSplitStatus,
    21102111                            sizeof(BOOL));
    21112112      }
    21122113    }
    21132114    fUserListSwitches = WinQueryButtonCheckstate(hwnd, CFGM_USERLISTSWITCHES);
    2114     PrfWriteProfileData(fmprof, FM3Str, "UserListSwitches",
     2115    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "UserListSwitches",
    21152116                        (PVOID) & fUserListSwitches, sizeof(BOOL));
    21162117    fExternalINIs = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALINIS);
    2117     PrfWriteProfileData(fmprof, FM3Str, "ExternalINIs",
     2118    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalINIs",
    21182119                        (PVOID) & fExternalINIs, sizeof(BOOL));
    21192120    fExternalArcboxes = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALARCBOXES);
    2120     PrfWriteProfileData(fmprof, FM3Str, "ExternalArcboxes",
     2121    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalArcboxes",
    21212122                        (PVOID) & fExternalArcboxes, sizeof(BOOL));
    21222123    fExternalCollector =
    21232124      WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALCOLLECTOR);
    2124     PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector",
     2125    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalCollector",
    21252126                        (PVOID) & fExternalCollector, sizeof(BOOL));
    21262127    fExternalViewer = WinQueryButtonCheckstate(hwnd, CFGM_EXTERNALVIEWER);
    2127     PrfWriteProfileData(fmprof, FM3Str, "ExternalViewer",
     2128    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalViewer",
    21282129                        (PVOID) & fExternalViewer, sizeof(BOOL));
    21292130    {
     
    21492150    fSaveState = WinQueryButtonCheckstate(hwnd, CFGM_SAVESTATE);
    21502151    PrfWriteProfileData(fmprof,
    2151                         FM3Str,
     2152                        (CHAR *) FM3Str,
    21522153                        "SaveState", (PVOID) & fSaveState, sizeof(BOOL));
    21532154    fStartMinimized = WinQueryButtonCheckstate(hwnd, CFGM_STARTMIN);
     
    21662167    fTileBackwards = WinQueryButtonCheckstate(hwnd, CFGM_TILEBACKWARDS);
    21672168    PrfWriteProfileData(fmprof,
    2168                         FM3Str,
     2169                        (CHAR *) FM3Str,
    21692170                        "TileBackwards",
    21702171                        (PVOID) & fTileBackwards, sizeof(BOOL));
     
    26942695    fExternalCollector = WinQueryButtonCheckstate(hwnd,
    26952696                                                  CFG5_EXTERNALCOLLECTOR);
    2696     PrfWriteProfileData(fmprof, FM3Str, "ExternalCollector",
     2697    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "ExternalCollector",
    26972698                        &fExternalCollector, sizeof(BOOL));
    26982699    {
     
    40994100        Runtime_Error(pszSrcFile, __LINE__, "bad menu id %lu", ulPageId);
    41004101      else {
    4101         PrfWriteProfileData(fmprof, FM3Str, pszIK_LastSettingsPage,
     4102        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, pszIK_LastSettingsPage,
    41024103                            (PVOID)&x, sizeof(x));
    41034104        hwndMenu = WinWindowFromID(hwndOwner, FID_MENU);
Note: See TracChangeset for help on using the changeset viewer.