Changeset 5472 for trunk/src


Ignore:
Timestamp:
Apr 4, 2001, 11:05:50 AM (25 years ago)
Author:
sandervl
Message:

compile fix

Location:
trunk/src
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/crtdll/crtdll.cpp

    r4671 r5472  
    1 /* $Id: crtdll.cpp,v 1.28 2000-11-22 00:49:54 phaller Exp $ */
    2 
    31/*
    42 * The C RunTime DLL
     
    5755#include <sys\stat.h>
    5856#include "signal.h"
     57#include <time.h>
    5958
    6059#include <crtdll.h>
     
    6665ODINDEBUGCHANNEL(CRTDLL)
    6766
    68 
     67#undef dprintf2
    6968#define dprintf2 dprintf
    7069
  • trunk/src/ddraw/OS2CLIPPER.CPP

    r4146 r5472  
    1 /* $Id: OS2CLIPPER.CPP,v 1.10 2000-09-02 08:27:05 sandervl Exp $ */
     1/* $Id: OS2CLIPPER.CPP,v 1.11 2001-04-04 09:02:14 sandervl Exp $ */
    22
    33/*
     
    1111 */
    1212
     13#include <odin.h>
    1314#include <memory.h>
    1415
  • trunk/src/ddraw/OS2DDRAW.CPP

    r5392 r5472  
    1 /* $Id: OS2DDRAW.CPP,v 1.27 2001-03-28 16:21:06 sandervl Exp $ */
     1/* $Id: OS2DDRAW.CPP,v 1.28 2001-04-04 09:02:14 sandervl Exp $ */
    22
    33/*
     
    1313 */
    1414
     15#include <odin.h>
    1516#include <stdlib.h>
    1617#include <string.h>
  • trunk/src/ddraw/OS2SURFACE.CPP

    r5443 r5472  
    1 /* $Id: OS2SURFACE.CPP,v 1.31 2001-04-02 18:21:10 sandervl Exp $ */
     1/* $Id: OS2SURFACE.CPP,v 1.32 2001-04-04 09:02:14 sandervl Exp $ */
    22
    33/*
     
    1111 */
    1212
     13#include <odin.h>
    1314#include <stdlib.h>
    1415#include <string.h>
  • trunk/src/ddraw/bltFunc.cpp

    r5326 r5472  
    1 /* $Id: bltFunc.cpp,v 1.3 2001-03-18 21:44:44 mike Exp $ */
     1/* $Id: bltFunc.cpp,v 1.4 2001-04-04 09:02:14 sandervl Exp $ */
    22
    33/*
     
    1010 */
    1111
     12#define INCL_BASE
     13#include <os2wrap.h>
     14#include <win32type.h>
    1215#include <memory.h>
    1316#include <misc.h>
  • trunk/src/ddraw/colorconv.cpp

    r5326 r5472  
    1 /* $Id: colorconv.cpp,v 1.5 2001-03-18 21:44:44 mike Exp $ */
     1/* $Id: colorconv.cpp,v 1.6 2001-04-04 09:02:14 sandervl Exp $ */
    22
    33/*
     
    1010 */
    1111
     12#define INCL_BASE
     13#include <os2wrap.h>
     14#include <win32type.h>
    1215#include <memory.h>
    1316#include <misc.h>
  • trunk/src/ddraw/ddraw.CPP

    r5344 r5472  
    1 /* $Id: ddraw.CPP,v 1.18 2001-03-20 23:18:55 mike Exp $ */
     1/* $Id: ddraw.CPP,v 1.19 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    1414 */
    1515
     16#include <odin.h>
    1617#include <memory.h>
    1718#include <stdio.h>
  • trunk/src/ddraw/fillfunc.cpp

    r5326 r5472  
    1 /* $Id: fillfunc.cpp,v 1.3 2001-03-18 21:44:44 mike Exp $ */
     1/* $Id: fillfunc.cpp,v 1.4 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    1010 */
    1111
     12#define INCL_BASE
     13#include <os2wrap.h>
     14#include <win32type.h>
    1215#include <memory.h>
    1316#include <misc.h>
  • trunk/src/gdi32/metafile.cpp

    r5044 r5472  
    1 /* $Id: metafile.cpp,v 1.4 2001-02-01 18:01:52 sandervl Exp $ */
     1/* $Id: metafile.cpp,v 1.5 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    1414#include <stdarg.h>
    1515#include <string.h>
    16 #include "misc.h"
     16#include <misc.h>
     17#include <unicode.h>
    1718
    1819#define DBG_LOCALLOG    DBG_metafile
  • trunk/src/gdi32/objhandle.cpp

    r5390 r5472  
    1 /* $Id: objhandle.cpp,v 1.12 2001-03-27 20:47:53 sandervl Exp $ */
     1/* $Id: objhandle.cpp,v 1.13 2001-04-04 09:02:15 sandervl Exp $ */
    22/*
    33 * Win32 Handle Management Code for OS/2
     
    2424#include "dibsect.h"
    2525#include "region.h"
     26#include <unicode.h>
    2627
    2728#define DBG_LOCALLOG    DBG_objhandle
  • trunk/src/gdi32/text.cpp

    r4602 r5472  
    1 /* $Id: text.cpp,v 1.14 2000-11-16 16:34:49 sandervl Exp $ */
     1/* $Id: text.cpp,v 1.15 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    1919#include "oslibgpi.h"
    2020#include <dcdata.h>
     21#include <unicode.h>
    2122
    2223#define DBG_LOCALLOG    DBG_text
     
    450451INT SYSTEM EXPORT InternalDrawTextExW(HDC hdc,LPCWSTR lpchText,INT cchText,LPRECT lprc,UINT dwDTFormat,LPDRAWTEXTPARAMS lpDTParams,BOOL isDrawTextEx)
    451452{
    452   char *astring = (cchText == -1) ? UnicodeToAsciiString((LPWSTR)lpchText):UnicodeToAsciiStringN((LPWSTR)lpchText,cchText);
     453  char *astring;
    453454  INT  rc;
     455
     456  if(cchText == -1) {
     457     UnicodeToAsciiString((LPWSTR)lpchText);
     458  }
     459  else {
     460     astring = (char *)HEAP_malloc(cchText+1);
     461     UnicodeToAscii((LPWSTR)lpchText, astring);
     462     astring[cchText] = 0;
     463  }
    454464
    455465  dprintf(("InternalDrawTextExW %x %s %d %x", hdc, astring, cchText, dwDTFormat));
     
    508518DWORD SYSTEM EXPORT InternalGetTabbedTextExtentW(HDC hDC,LPCWSTR lpString,INT nCount,INT nTabPositions,LPINT lpnTabStopPositions)
    509519{
    510   char *astring = (nCount == -1) ? UnicodeToAsciiString((LPWSTR)lpString):UnicodeToAsciiStringN((LPWSTR)lpString,nCount);
     520  char *astring;
    511521  DWORD rc;
     522
     523  if(nCount == -1) {
     524     UnicodeToAsciiString((LPWSTR)lpString);
     525  }
     526  else {
     527     astring = (char *)HEAP_malloc(nCount+1);
     528     UnicodeToAscii((LPWSTR)lpString, astring);
     529     astring[nCount] = 0;
     530  }
    512531
    513532  rc = InternalGetTabbedTextExtentA(hDC,astring,nCount,nTabPositions,lpnTabStopPositions);
     
    587606LONG SYSTEM EXPORT InternalTabbedTextOutW(HDC hdc,INT x,INT y,LPCWSTR lpString,INT nCount,INT nTabPositions,LPINT lpnTabStopPositions,INT nTabOrigin)
    588607{
    589   char *astring = (nCount == -1) ? UnicodeToAsciiString((LPWSTR)lpString):UnicodeToAsciiStringN((LPWSTR)lpString,nCount);
     608  char *astring;
    590609  LONG rc;
     610
     611  if(nCount == -1) {
     612     UnicodeToAsciiString((LPWSTR)lpString);
     613  }
     614  else {
     615     astring = (char *)HEAP_malloc(nCount+1);
     616     UnicodeToAscii((LPWSTR)lpString, astring);
     617     astring[nCount] = 0;
     618  }
    591619
    592620  rc = InternalTabbedTextOutA(hdc,x,y,astring,nCount,nTabPositions,lpnTabStopPositions,nTabOrigin);
     
    749777BOOL InternalTextOutW(HDC hdc,int X,int Y,UINT fuOptions,CONST RECT *lprc,LPCWSTR lpszString,INT cbCount,CONST INT *lpDx,BOOL IsExtTextOut)
    750778{
    751   char *astring = (cbCount == -1) ? UnicodeToAsciiString((LPWSTR)lpszString):UnicodeToAsciiStringN((LPWSTR)lpszString,cbCount);
     779  char *astring;
    752780  BOOL  rc;
    753781
     782  if(cbCount == -1) {
     783     UnicodeToAsciiString((LPWSTR)lpszString);
     784  }
     785  else {
     786     astring = (char *)HEAP_malloc(cbCount+1);
     787     UnicodeToAscii((LPWSTR)lpszString, astring);
     788     astring[cbCount] = 0;
     789  }
    754790  rc = InternalTextOutA(hdc,X,Y,fuOptions,lprc,(LPCSTR)astring,cbCount,lpDx,IsExtTextOut);
    755791  FreeAsciiString(astring);
  • trunk/src/odincrt/initterm.cpp

    r5135 r5472  
    2525#define  INCL_DOSMODULEMGR
    2626#define  INCL_DOSPROCESS
     27#define  INCL_DOSERRORS
    2728#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    2829#include <stdlib.h>
  • trunk/src/ole32/ole32.h

    r5026 r5472  
    1 /* $Id: ole32.h,v 1.14 2001-01-25 20:17:23 sandervl Exp $ */
     1/* $Id: ole32.h,v 1.15 2001-04-04 09:02:15 sandervl Exp $ */
    22/*
    33 *
     
    5252
    5353#include "debugtools.h"
     54#include <unicode.h>
    5455
    5556#endif
  • trunk/src/oleaut32/oleaut32.h

    r4837 r5472  
    1 /* $Id: oleaut32.h,v 1.9 2000-12-24 14:39:54 sandervl Exp $ */
     1/* $Id: oleaut32.h,v 1.10 2001-04-04 09:02:15 sandervl Exp $ */
    22/*
    33 * Win32 OLE stubs for OS/2
     
    5151#include <heapstring.h>
    5252#include <misc.h>
     53#include <unicode.h>
    5354
    5455extern int      loadNr;
  • trunk/src/rpcrt4/rpcrt4.h

    r3307 r5472  
    1 /* $Id: rpcrt4.h,v 1.1 2000-04-02 22:02:56 davidr Exp $ */
     1/* $Id: rpcrt4.h,v 1.2 2001-04-04 09:02:15 sandervl Exp $ */
    22/* Definitions for the OLE RPCRT4
    33 *
     
    3737#include "wine/obj_cache.h"
    3838
    39 
    4039#include <rpcdce.h>
    4140
     41#include <unicode.h>
     42
    4243#endif /* __ODIN_RPCRT4_H */
  • trunk/src/shell32/misc.cpp

    r4121 r5472  
    1 /* $Id: misc.cpp,v 1.10 2000-08-30 13:50:53 sandervl Exp $ */
     1/* $Id: misc.cpp,v 1.11 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    3030#include "wine/undocshell.h"
    3131#include <misc.h>
     32#include <unicode.h>
    3233//#include <string.h>
    3334//#include "winbase.h"
  • trunk/src/shell32/unknown.cpp

    r3935 r5472  
    1 /* $Id: unknown.cpp,v 1.9 2000-08-02 17:53:34 bird Exp $ */
     1/* $Id: unknown.cpp,v 1.10 2001-04-04 09:02:15 sandervl Exp $ */
    22
    33/*
     
    1616#include <shellapi.h>
    1717#include <winreg.h>
     18#include <unicode.h>
     19
    1820//#include "shell32.h"
    1921
  • trunk/src/shlwapi/shlwapi.cpp

    r4371 r5472  
    1 /* $Id: shlwapi.cpp,v 1.9 2000-10-02 13:37:10 sandervl Exp $ */
     1/* $Id: shlwapi.cpp,v 1.10 2001-04-04 09:05:50 sandervl Exp $ */
    22
    33/*
     
    4040#include <heapstring.h>
    4141#include <misc.h>
     42#include <unicode.h>
    4243#include <win\shell.h>
    4344#include <win\winerror.h>
  • trunk/src/user32/clipboard.cpp

    r4599 r5472  
    1 /* $Id: clipboard.cpp,v 1.9 2000-11-15 20:30:45 sandervl Exp $ */
     1/* $Id: clipboard.cpp,v 1.10 2001-04-04 09:01:24 sandervl Exp $ */
    22
    33/*
     
    1717#include <os2win.h>
    1818#include "win32wbase.h"
     19#include <unicode.h>
    1920
    2021#define DBG_LOCALLOG    DBG_clipboard
  • trunk/src/user32/dde.cpp

    r5391 r5472  
    1 /* $Id: dde.cpp,v 1.11 2001-03-28 16:20:32 sandervl Exp $ */
     1/* $Id: dde.cpp,v 1.12 2001-04-04 09:01:24 sandervl Exp $ */
    22
    33/*
     
    1212#include <os2win.h>
    1313#include <misc.h>
     14#include <unicode.h>
     15
    1416#define DBG_LOCALLOG    DBG_dde
    1517#include "dbglocal.h"
  • trunk/src/user32/user32.h

    r2469 r5472  
    1 /* $Id: user32.h,v 1.8 2000-01-18 20:08:16 sandervl Exp $ */
     1/* $Id: user32.h,v 1.9 2001-04-04 09:01:25 sandervl Exp $ */
    22
    33/*****************************************************************************
     
    1414#include <stdlib.h>
    1515#include <string.h>
     16#include <unicode.h>
    1617
    1718inline void ConvertFontAW(LOGFONTA *fa, LOGFONTW *fw)
  • trunk/src/user32/win32class.cpp

    r5242 r5472  
    1 /* $Id: win32class.cpp,v 1.23 2001-02-22 10:37:30 sandervl Exp $ */
     1/* $Id: win32class.cpp,v 1.24 2001-04-04 09:01:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Managment Code for OS/2
     
    2424#include <win32wnd.h>
    2525#include <win\winproc.h>
     26#include <unicode.h>
    2627
    2728#define DBG_LOCALLOG    DBG_win32class
  • trunk/src/user32/windowclass.cpp

    r5429 r5472  
    1 /* $Id: windowclass.cpp,v 1.19 2001-04-01 22:13:28 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.20 2001-04-04 09:01:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    1717#include <assert.h>
    1818#include <misc.h>
     19#include <unicode.h>
    1920#include <win32class.h>
    2021#include <win32wbase.h>
  • trunk/src/version/info.c

    r2373 r5472  
    1 /* $Id: info.c,v 1.2 2000-01-08 14:27:33 sandervl Exp $ */
     1/* $Id: info.c,v 1.3 2001-04-04 09:02:15 sandervl Exp $ */
    22/*
    33 * Implementation of VERSION.DLL - Version Info access (Wine 991212)
     
    1919#include "debugtools.h"
    2020#include <misc.h>
     21#include <unicode.h>
    2122
    2223DEFAULT_DEBUG_CHANNEL(ver)
  • trunk/src/version/version.cpp

    r3993 r5472  
    1 /* $Id: version.cpp,v 1.10 2000-08-11 10:56:26 sandervl Exp $ */
     1/* $Id: version.cpp,v 1.11 2001-04-04 09:02:16 sandervl Exp $ */
    22
    33/*
     
    2323#include <version.h>
    2424#include <versionos2.h>
     25#include <unicode.h>
    2526
    2627ODINDEBUGCHANNEL(VERSION)
  • trunk/src/winmm/joy.cpp

    r3933 r5472  
    1 /* $Id: joy.cpp,v 1.8 2000-08-02 17:30:05 bird Exp $ */
     1/* $Id: joy.cpp,v 1.9 2001-04-04 09:02:16 sandervl Exp $ */
    22/*
    33 * Odin Joystick apis
     
    145145      lpCaps->wMid = MM_MICROSOFT;
    146146      lpCaps->wPid = MM_PC_JOYSTICK;
    147       AsciiToUnicode("OS/2 Joystick", lpCaps->szPname);
     147      lstrcpyW(lpCaps->szPname, (LPWSTR)L"OS/2 Joystick");
    148148      lpCaps->wXmin = 0;
    149149      lpCaps->wXmax = 0xffff;
     
    166166      lpCaps->wNumAxes = 2;
    167167      lpCaps->wMaxButtons = 2;
    168       AsciiToUnicode("",lpCaps->szRegKey);
    169       AsciiToUnicode("",lpCaps->szOEMVxD);
     168      lpCaps->szRegKey[0] = 0;
     169      lpCaps->szOEMVxD[0] = 0;
    170170      dprintf(("OK!!!\n"));
    171171      return JOYERR_NOERROR;
  • trunk/src/winmm/mci.cpp

    r4748 r5472  
    1 /* $Id: mci.cpp,v 1.6 2000-12-03 22:18:17 sandervl Exp $ */
     1/* $Id: mci.cpp,v 1.7 2001-04-04 09:02:16 sandervl Exp $ */
    22
    33/*
     
    357357#define SET_EIP(ptr) /* nothing */
    358358#endif  /* __GNUC__ */
    359 
    360 /***********************************************************************
    361  *           HEAP_strdupA
    362  */
    363 static LPSTR HEAP_strdupA( HANDLE heap, DWORD flags, LPCSTR str )
    364 {
    365     LPSTR p = (LPSTR) HeapAlloc( heap, flags, strlen(str) + 1 );
    366     if(p) {
    367       //SET_EIP(p);
    368       strcpy( p, str );
    369     }
    370     return p;
    371 }
    372359
    373360
  • trunk/src/winmm/waveoutdart.cpp

    r5421 r5472  
    1 /* $Id: waveoutdart.cpp,v 1.2 2001-04-01 12:31:01 sandervl Exp $ */
     1/* $Id: waveoutdart.cpp,v 1.3 2001-04-04 09:02:16 sandervl Exp $ */
    22
    33/*
     
    2323#define  INCL_BASE
    2424#define  INCL_OS2MM
     25#define  INCL_DOSPROCESS
    2526#include <os2wrap.h>   //Odin32 OS/2 api wrappers
    2627#include <os2mewrap.h> //Odin32 OS/2 MMPM/2 api wrappers
    2728#include <stdlib.h>
     29#include <stddef.h>
    2830#include <string.h>
    2931#define  OS2_ONLY
  • trunk/src/winspool/winspool.cpp

    r4594 r5472  
    1 /* $Id: winspool.cpp,v 1.5 2000-11-15 10:54:24 sandervl Exp $ */
     1/* $Id: winspool.cpp,v 1.6 2001-04-04 09:02:16 sandervl Exp $ */
    22
    33/*
     
    3434#include <stdio.h>
    3535#include <stdlib.h>
     36#include <stddef.h>
    3637#include <string.h>
    3738#include <misc.h>
  • trunk/src/wnetap32/wnetap32.cpp

    r4789 r5472  
    1 /* $Id: wnetap32.cpp,v 1.13 2000-12-12 02:43:26 phaller Exp $ */
     1/* $Id: wnetap32.cpp,v 1.14 2001-04-04 09:02:16 sandervl Exp $ */
    22
    33/*
     
    3333#include <os2win.h>
    3434#include <misc.h>
     35#include <unicode.h>
    3536#include <heapstring.h>
    3637#include <string.h>
Note: See TracChangeset for help on using the changeset viewer.