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

    r1398 r1498  
    66
    77  Copyright (c) 1993-98 M. Kimes
    8   Copyright (c) 2004, 2008 Steven H.Levine
     8  Copyright (c) 2004, 2010 Steven H.Levine
    99
    1010  01 Aug 04 SHL Rework lstrip/rstrip usage
     
    1515  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
    1616  07 Feb 09 GKY Allow user to turn off alert and/or error beeps in settings notebook.
     17  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    1718
    1819***********************************************************************/
     
    477478      else {
    478479        prnformat = WinQueryButtonCheckstate(hwnd, PRN_FORMAT);
    479         PrfWriteProfileData(fmprof, FM3Str, "Prnformat",
     480        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformat",
    480481                            (PVOID) & prnformat, sizeof(prnformat));
    481482        prnalt = WinQueryButtonCheckstate(hwnd, PRN_ALT);
    482         PrfWriteProfileData(fmprof, FM3Str, "Prnalt",
     483        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnalt",
    483484                            (PVOID) & prnalt, sizeof(prnalt));
    484485        prnpagenums = WinQueryButtonCheckstate(hwnd, PRN_PAGENUMS);
    485         PrfWriteProfileData(fmprof, FM3Str, "Prnpagenums",
     486        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnpagenums",
    486487                            (PVOID) & prnpagenums, sizeof(prnpagenums));
    487488        prnformfeedbefore = WinQueryButtonCheckstate(hwnd, PRN_FORMBEFORE);
    488         PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedbefore",
     489        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedbefore",
    489490                            (PVOID) & prnformfeedbefore,
    490491                            sizeof(prnformfeedbefore));
    491492        prnformfeedafter = WinQueryButtonCheckstate(hwnd, PRN_FORMAFTER);
    492         PrfWriteProfileData(fmprof, FM3Str, "Prnformfeedafter",
     493        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnformfeedafter",
    493494                            (PVOID) & prnformfeedafter,
    494495                            sizeof(prnformfeedafter));
     
    505506          }
    506507          prnwidth = atol(s);
    507           PrfWriteProfileData(fmprof, FM3Str, "Prnwidth",
     508          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnwidth",
    508509                              (PVOID) & prnwidth, sizeof(prnwidth));
    509510          *s = 0;
     
    516517          }
    517518          prnlength = atol(s);
    518           PrfWriteProfileData(fmprof, FM3Str, "Prnlength",
     519          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlength",
    519520                              (PVOID) & prnlength, sizeof(prnlength));
    520521          *s = 0;
     
    527528          }
    528529          prnlmargin = atol(s);
    529           PrfWriteProfileData(fmprof, FM3Str, "Prnlmargin",
     530          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnlmargin",
    530531                              (PVOID) & prnlmargin, sizeof(prnlmargin));
    531532          *s = 0;
     
    538539          }
    539540          prnrmargin = atol(s);
    540           PrfWriteProfileData(fmprof, FM3Str, "Prnrmargin",
     541          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnrmargin",
    541542                              (PVOID) & prnrmargin, sizeof(prnrmargin));
    542543          *s = 0;
     
    550551          }
    551552          prntabspaces = atol(s);
    552           PrfWriteProfileData(fmprof, FM3Str, "Prntabspaces",
     553          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntabspaces",
    553554                              (PVOID) & prntabspaces, sizeof(prntabspaces));
    554555          *s = 0;
     
    561562          }
    562563          prntmargin = atol(s);
    563           PrfWriteProfileData(fmprof, FM3Str, "Prntmargin",
     564          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prntmargin",
    564565                              (PVOID) & prntmargin, sizeof(prntmargin));
    565566          *s = 0;
     
    572573          }
    573574          prnbmargin = atol(s);
    574           PrfWriteProfileData(fmprof, FM3Str, "Prnbmargin",
     575          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnbmargin",
    575576                              (PVOID) & prnbmargin, sizeof(prnbmargin));
    576577          *s = 0;
     
    584585          }
    585586          prnspacing = atol(s);
    586           PrfWriteProfileData(fmprof, FM3Str, "Prnspacing",
     587          PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "Prnspacing",
    587588                              (PVOID) & prnspacing, sizeof(prnspacing));
    588589          WinQueryDlgItemText(hwnd, PRN_PRINTER, sizeof(printer), printer);
Note: See TracChangeset for help on using the changeset viewer.