Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/winspool/winspool.cpp

    r21629 r21916  
    2929#include <odinwrap.h>
    3030#include <heapstring.h>
    31 #include <win\winnls.h>
    32 #include <win\debugstr.h>
    33 #include <win\debugtools.h>
     31#include <win/winnls.h>
     32#include <win/debugstr.h>
     33#include <win/debugtools.h>
    3434
    3535#include <stdio.h>
     
    132132"System\\CurrentControlSet\\control\\Print\\Environments\\%s\\Drivers\\";
    133133
    134 WINAPI GDI_CallExtDeviceMode16 ( HWND hwnd, LPDEVMODEA lpdmOutput,
    135                                               LPSTR lpszDevice, LPSTR lpszPort,
    136                                               LPDEVMODEA lpdmInput, LPSTR lpszProfile,
    137                                               DWORD fwMode );
    138134#ifndef __WIN32OS2__
    139135static LPWSTR *printer_array;
     
    657653
    658654             case VER_PLATFORM_WIN32_NT:
    659                   p = "Windows NT x86";
     655                  p = (LPSTR)"Windows NT x86";
    660656                  break;
    661657             default:
    662                   p = "Windows 4.0";
     658                  p = (LPSTR)"Windows 4.0";
    663659                  break;
    664660        }
     
    825821                DM_DEFAULTSOURCE | DM_PRINTQUALITY |
    826822                DM_YRESOLUTION | DM_TTOPTION;
    827 
    828 #if (__IBMCPP__ == 360)
    829         dm.dmOrientation = DMORIENT_PORTRAIT;
    830         dm.dmPaperSize = DMPAPER_A4;
    831         dm.dmPaperLength = 2970;
    832         dm.dmPaperWidth = 2100;
    833 #else
    834         dm.s1.dmOrientation = DMORIENT_PORTRAIT;
    835         dm.s1.dmPaperSize = DMPAPER_A4;
    836         dm.s1.dmPaperLength = 2970;
    837         dm.s1.dmPaperWidth = 2100;
    838 #endif
    839 
     823        dm.DUMMYSTRUCTNAME1_DOT dmOrientation = DMORIENT_PORTRAIT;
     824        dm.DUMMYSTRUCTNAME1_DOT dmPaperSize = DMPAPER_A4;
     825        dm.DUMMYSTRUCTNAME1_DOT dmPaperLength = 2970;
     826        dm.DUMMYSTRUCTNAME1_DOT dmPaperWidth = 2100;
    840827        dm.dmScale = 100;
    841828        dm.dmCopies = 1;
     
    20612048     * FIXME:
    20622049     * Note that DocumentPropertiesW will briefly try to open the printer we
     2050
     2051
     2052
     2053
    20632054     * just create to find a DEVMODEA struct (it will use the WINEPS default
    20642055     * one in case it is not there, so we are ok).
     
    21752166        return FALSE;
    21762167    }
    2177     if(!di3.pDefaultDataType) di3.pDefaultDataType = "";
    2178     if(!di3.pDependentFiles) di3.pDependentFiles = "\0";
    2179     if(!di3.pHelpFile) di3.pHelpFile = "";
    2180     if(!di3.pMonitorName) di3.pMonitorName = "";
     2168    if(!di3.pDefaultDataType) di3.pDefaultDataType = (LPSTR)"";
     2169    if(!di3.pDependentFiles) di3.pDependentFiles = (LPSTR)"\0";
     2170    if(!di3.pHelpFile) di3.pHelpFile = (LPSTR)"";
     2171    if(!di3.pMonitorName) di3.pMonitorName = (LPSTR)"";
    21812172
    21822173    hkeyDrivers = WINSPOOL_OpenDriverReg(di3.pEnvironment, FALSE);
     
    32633254                {   /* bad printer driver name? try cover up. */
    32643255                    di3.pName          = paQueues[i].pszDriverName;
    3265                     di3.pDriverPath    = "WINSPOOL";   /* This is important! */
     3256                    di3.pDriverPath    = (LPSTR)"WINSPOOL";   /* This is important! */
    32663257                }
    32673258#else
     
    32703261#endif
    32713262                di3.pEnvironment       = NULL;         /* NULL means auto */
    3272                 di3.pDataFile          = "<datafile?>";
    3273                 di3.pConfigFile        = "winodin.drv";
    3274                 di3.pHelpFile          = "<helpfile?>";
    3275                 di3.pDependentFiles    = "<dependend files?>";
    3276                 di3.pMonitorName       = "<monitor name?>";
    3277                 di3.pDefaultDataType   = "RAW";
     3263                di3.pDataFile          = (LPSTR)"<datafile?>";
     3264                di3.pConfigFile        = (LPSTR)"winodin.drv";
     3265                di3.pHelpFile          = (LPSTR)"<helpfile?>";
     3266                di3.pDependentFiles    = (LPSTR)"<dependend files?>";
     3267                di3.pMonitorName       = (LPSTR)"<monitor name?>";
     3268                di3.pDefaultDataType   = (LPSTR)"RAW";
    32783269                if (!AddPrinterDriverA(NULL, 3, (LPBYTE)&di3))
    32793270                {
     
    32833274
    32843275                /* Make printer. */
    3285                 papi2[i].pDatatype    = "RAW";
    3286                 papi2[i].pPrintProcessor = "WinPrint";
     3276                papi2[i].pDatatype    = (LPSTR)"RAW";
     3277                papi2[i].pPrintProcessor = (LPSTR)"WinPrint";
    32873278#ifdef USE_OS2_DRIVERNAME
    32883279                papi2[i].pComment     = paQueues[i].pszName;    /* Queue name. Don't allow any changes of the comment! */
     
    32913282#endif
    32923283                papi2[i].pDriverName  = di3.pName;
    3293                 papi2[i].pParameters  = "<parameters?>";
    3294                 papi2[i].pShareName   = "<share name?>";
    3295                 papi2[i].pSepFile     = "<sep file?>";
     3284                papi2[i].pParameters  = (LPSTR)"<parameters?>";
     3285                papi2[i].pShareName   = (LPSTR)"<share name?>";
     3286                papi2[i].pSepFile     = (LPSTR)"<sep file?>";
    32963287#if 0 /* only 'local', remember */
    32973288                if (paPrinters[i].pszComputerName) /* this is currnetly not used as we only enum locals. */
     
    33183309                 *   the anyway.
    33193310                 */
    3320                 papi2[i].pLocation    = "";
    3321                 papi2[i].pPortName    = "";
     3311                papi2[i].pLocation    = (LPSTR)"";
     3312                papi2[i].pPortName    = (LPSTR)"";
    33223313                psz = strchr(paQueues[i].pszPrinters, ',');
    33233314                if (psz)
Note: See TracChangeset for help on using the changeset viewer.