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

    r1497 r1498  
    66
    77  Copyright (c) 1993-98 M. Kimes
    8   Copyright (c) 2003, 2009 Steven H. Levine
     8  Copyright (c) 2003, 2010 Steven H. Levine
    99
    1010  11 Jun 03 SHL Add JFS and FAT32 support
     
    6565  21 Dec 09 GKY Allow command menu reorder without changing the "ID" or hot key for a command.
    6666                Added load_inicommand to load the IDs from the ini file.
     67  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    6768
    6869***********************************************************************/
     
    10571058    *bool = *bool ? FALSE : TRUE;
    10581059    if (savename && *savename)
    1059       PrfWriteProfileData(fmprof, appname, savename, bool, sizeof(BOOL));
     1060      PrfWriteProfileData(fmprof, appname, (CHAR *) savename, bool, sizeof(BOOL));
    10601061  }
    10611062  WinSendMsg(hwndMenu, MM_SETITEMATTR,
     
    15491550
    15501551  strcpy(eos, "Pos");;
    1551   PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1552  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15521553  strcpy(eos, "Sort");
    1553   PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1554  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15541555  strcpy(eos, "Filter");
    1555   PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1556  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15561557  strcpy(eos, "View");
    1557   PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1558  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15581559  strcpy(eos, "Dir");
    1559   PrfWriteProfileString(fmprof, FM3Str, s, NULL);
     1560  PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL);
    15601561  if (statename && strstr(s, ".0.")) {
    15611562    strcpy(s, statename);
     
    15631564    eos = &s[strlen(s)];
    15641565    strcpy(eos, "LastTreePos");
    1565     PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1566    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15661567    strcpy(eos, "MySizeLastTime");
    1567     PrfWriteProfileData(fmprof, FM3Str, s, NULL, 0);
     1568    PrfWriteProfileData(fmprof, (CHAR *) FM3Str, s, NULL, 0);
    15681569    strcpy(eos, "Toolbar");
    1569     PrfWriteProfileString(fmprof, FM3Str, s, NULL);
     1570    PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL);
    15701571    strcpy(eos, "TargetDir");
    1571     PrfWriteProfileString(fmprof, FM3Str, s, NULL);
     1572    PrfWriteProfileString(fmprof, (CHAR *) FM3Str, s, NULL);
    15721573  }
    15731574
     
    15821583
    15831584  sprintf(szKey, "%sDirCnrPos.%lu", szPrefix, ulTemp);
    1584   PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);
     1585  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0);
    15851586  sprintf(szKey, "%sDirCnrSort.%lu", szPrefix, ulTemp);
    1586   PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);
     1587  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0);
    15871588  sprintf(szKey, "%sDirCnrFilter.%lu", szPrefix, ulTemp);
    1588   PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);
     1589  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0);
    15891590  sprintf(szKey, "%sDirCnrView.%lu", szPrefix, ulTemp);
    1590   PrfWriteProfileData(fmprof, FM3Str, szKey, NULL, 0);
     1591  PrfWriteProfileData(fmprof, (CHAR *) FM3Str, szKey, NULL, 0);
    15911592  sprintf(szKey, "%sDirCnrDir.%lu", szPrefix, ulTemp);
    1592   PrfWriteProfileString(fmprof, FM3Str, szKey, NULL);
     1593  PrfWriteProfileString(fmprof, (CHAR *) FM3Str, szKey, NULL);
    15931594  sprintf(szKey, "%sDirCnr.%lu.", szPrefix, ulTemp);
    15941595}
     
    21562157        if (!DosQueryProcAddr(hmod,
    21572158                              ORD_DOS32QUERYEXTLIBPATH,
    2158                               NULL, (PFN *) & DQELIBPATH)) {
     2159                              NULL, (PFN *) &DQELIBPATH)) {
    21592160          DQELIBPATH(beg, BEGIN_LIBPATH);
    21602161          DQELIBPATH(end, END_LIBPATH);
Note: See TracChangeset for help on using the changeset viewer.