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

    r1486 r1498  
    77
    88  Copyright (c) 1994-97 M. Kimes
    9   Copyright (c) 2004, 2008 Steven H.Levine
     9  Copyright (c) 2004, 2010 Steven H.Levine
    1010
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    2424  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
    2525  08 Mar 09 GKY Removed variable aurguments from docopyf and unlinkf (not used)
     26  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    2627
    2728***********************************************************************/
     
    233234  if (toolhead && filename && *filename) {
    234235    strcpy(lasttoolbar, filename);
    235     PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", filename);
     236    PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", filename);
    236237  }
    237238  if (!toolhead) {
     
    424425    if (!toolhead || !toolhead->next)
    425426      WinDismissDlg(hwnd, 0);
    426     WinSetWindowText(hwnd, GetPString(IDS_RETOOLTEXT));
     427    WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_RETOOLTEXT));
    427428    {
    428429      TOOL *tool;
     
    612613    WinSetWindowPtr(hwnd, QWL_USER, mp2);
    613614    if (mp2) {
    614       WinSetWindowText(hwnd, GetPString(IDS_EDITTOOLTEXT));
     615      WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_EDITTOOLTEXT));
    615616      WinSendDlgItemMsg(hwnd, ADDBTN_ID, EM_SETREADONLY,
    616617                        MPFROM2SHORT(TRUE, 0), MPVOID);
     
    700701      if (SHORT2FROMMP(mp1) == EN_SETFOCUS)
    701702        WinSetDlgItemText(hwnd, ADDBTN_HELPME,
    702                           GetPString(IDS_ADDTOOLQUICKHELPTEXT));
     703                          (CHAR *) GetPString(IDS_ADDTOOLQUICKHELPTEXT));
    703704      break;
    704705
     
    708709      if (SHORT2FROMMP(mp1) == EN_SETFOCUS)
    709710        WinSetDlgItemText(hwnd, ADDBTN_HELPME,
    710                           GetPString(IDS_ADDTOOLBUTTONTEXT));
     711                          (CHAR *) GetPString(IDS_ADDTOOLBUTTONTEXT));
    711712      break;
    712713
     
    718719      if (SHORT2FROMMP(mp1) == EN_SETFOCUS)
    719720        WinSetDlgItemText(hwnd,
    720                           ADDBTN_HELPME, GetPString(IDS_ADDTOOLBUTTONIDTEXT));
     721                          ADDBTN_HELPME, (CHAR *) GetPString(IDS_ADDTOOLBUTTONIDTEXT));
    721722      break;
    722723
     
    942943    else {
    943944      WinSetWindowULong(hwnd, QWL_USER, FALSE);
    944       WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLBARTITLETEXT));
     945      WinSetWindowText(hwnd, (CHAR *) GetPString(IDS_LOADTOOLBARTITLETEXT));
    945946    }
    946947    WinSendDlgItemMsg(hwnd,
     
    991992    WinSetDlgItemText(hwnd,
    992993                      SVBTN_CURRENT,
    993                       (*lasttoolbar) ? lasttoolbar : PCSZ_FM3TOOLSDAT);
     994                      (*lasttoolbar) ? lasttoolbar : (CHAR *) PCSZ_FM3TOOLSDAT);
    994995    break;
    995996
     
    10691070          }
    10701071        }
    1071         PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar);
     1072        PrfWriteProfileString(fmprof, (CHAR *) FM3Str, "LastToolbar", lasttoolbar);
    10721073      }
    10731074      WinDismissDlg(hwnd, 1);
Note: See TracChangeset for help on using the changeset viewer.