Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
58d5a0a7
Commit
58d5a0a7
authored
Jul 29, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed some unnecessary inclusions of wingdi.h and winuser.h
parent
0aa6cc29
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
31 additions
and
82 deletions
+31
-82
winedbg.c
debugger/winedbg.c
+2
-1
crtdll.spec
dlls/crtdll/crtdll.spec
+2
-2
crtdll_main.c
dlls/crtdll/crtdll_main.c
+0
-25
painting.c
graphics/painting.c
+1
-3
xfont.c
graphics/x11drv/xfont.c
+3
-4
snoop.c
if1632/snoop.c
+0
-2
winbase.h
include/winbase.h
+18
-6
winuser.h
include/winuser.h
+0
-13
resource.c
loader/resource.c
+1
-4
atom.c
memory/atom.c
+0
-3
environ.c
memory/environ.c
+0
-2
comm.c
misc/comm.c
+0
-2
lstr.c
misc/lstr.c
+1
-1
gdiobj.c
objects/gdiobj.c
+1
-2
region.c
objects/region.c
+0
-1
text.c
objects/text.c
+0
-1
builtin32.c
relay32/builtin32.c
+0
-2
snoop.c
relay32/snoop.c
+2
-4
device.c
win32/device.c
+0
-2
except.c
win32/except.c
+0
-2
No files found.
debugger/winedbg.c
View file @
58d5a0a7
...
...
@@ -6,6 +6,7 @@
*/
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "debugger.h"
...
...
@@ -49,7 +50,7 @@ int DEBUG_Printf(int chn, const char* format, ...)
int
len
;
va_start
(
valist
,
format
);
len
=
w
vsnprintf
(
buf
,
sizeof
(
buf
),
format
,
valist
);
len
=
vsnprintf
(
buf
,
sizeof
(
buf
),
format
,
valist
);
va_end
(
valist
);
if
(
len
<=
-
1
)
{
...
...
dlls/crtdll/crtdll.spec
View file @
58d5a0a7
...
...
@@ -322,7 +322,7 @@ import ntdll
@ cdecl _unlink(str) CRTDLL__unlink
@ stub _unloaddll
@ stub _utime
@ cdecl _vsnprintf(ptr long ptr ptr)
CRTDLL__
vsnprintf
@ cdecl _vsnprintf(ptr long ptr ptr) vsnprintf
@ stub _vsnwprintf
@ cdecl _wcsdup(wstr) CRTDLL__wcsdup
@ forward _wcsicmp ntdll._wcsicmp
...
...
@@ -504,7 +504,7 @@ import ntdll
@ cdecl vfprintf(ptr str ptr) CRTDLL_vfprintf
@ stub vfwprintf
@ stub vprintf
@ cdecl vsprintf(ptr str ptr)
CRTDLL_
vsprintf
@ cdecl vsprintf(ptr str ptr) vsprintf
@ cdecl vswprintf(ptr wstr ptr) CRTDLL_vswprintf
@ stub vwprintf
@ forward wcscat ntdll.wcscat
...
...
dlls/crtdll/crtdll_main.c
View file @
58d5a0a7
...
...
@@ -932,22 +932,6 @@ int __cdecl CRTDLL__mbsicmp(unsigned char *x,unsigned char *y)
/*********************************************************************
* vsprintf (CRTDLL.500)
*/
INT
__cdecl
CRTDLL_vsprintf
(
LPSTR
buffer
,
LPCSTR
spec
,
va_list
args
)
{
return
wvsprintfA
(
buffer
,
spec
,
args
);
}
/*********************************************************************
* _vsnprintf (CRTDLL.@)
*/
INT
__cdecl
CRTDLL__vsnprintf
(
LPSTR
buffer
,
DWORD
size
,
LPCSTR
spec
,
va_list
args
)
{
return
wvsnprintfA
(
buffer
,
size
,
spec
,
args
);
}
/*********************************************************************
* vswprintf (CRTDLL.501)
*/
INT
__cdecl
CRTDLL_vswprintf
(
LPWSTR
buffer
,
LPCWSTR
spec
,
va_list
args
)
...
...
@@ -1639,15 +1623,6 @@ LPSTR __cdecl CRTDLL_tmpnam(LPSTR s)
}
/*********************************************************************
* _itoa (CRTDLL.165)
*/
LPSTR
__cdecl
CRTDLL__itoa
(
INT
x
,
LPSTR
buf
,
INT
buflen
)
{
wsnprintfA
(
buf
,
buflen
,
"%d"
,
x
);
return
buf
;
}
typedef
VOID
(
*
sig_handler_type
)(
VOID
);
...
...
graphics/painting.c
View file @
58d5a0a7
...
...
@@ -18,10 +18,8 @@
#include "winerror.h"
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winuser16.h"
DEFAULT_DEBUG_CHANNEL
(
gdi
)
DEFAULT_DEBUG_CHANNEL
(
gdi
)
;
/***********************************************************************
...
...
graphics/x11drv/xfont.c
View file @
58d5a0a7
...
...
@@ -26,7 +26,6 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "heap.h"
#include "options.h"
...
...
@@ -1307,7 +1306,7 @@ static void XFONT_WindowsNames(void)
}
lpch
=
fr
->
lfFaceName
;
wsnprintfA
(
fr
->
lfFaceName
,
sizeof
(
fr
->
lfFaceName
),
"%s %s"
,
snprintf
(
fr
->
lfFaceName
,
sizeof
(
fr
->
lfFaceName
),
"%s %s"
,
/* prepend vendor name */
(
pfr
==
fr
)
?
""
:
fr
->
resource
->
foundry
,
fr
->
resource
->
family
);
...
...
@@ -1570,7 +1569,7 @@ static void XFONT_LoadAliases(void)
{
BOOL
bHaveAlias
,
bSubst
;
char
subsection
[
32
];
wsnprintfA
(
subsection
,
sizeof
subsection
,
"%s%i"
,
INIAliasSection
,
i
++
);
snprintf
(
subsection
,
sizeof
subsection
,
"%s%i"
,
INIAliasSection
,
i
++
);
bHaveAlias
=
PROFILE_GetWineIniString
(
INIFontSection
,
subsection
,
""
,
buffer
,
sizeof
buffer
);
...
...
@@ -1700,7 +1699,7 @@ static void XFONT_LoadIgnores(void)
/* Others from INI file */
do
{
wsprintfA
(
subsection
,
"%s%i"
,
INIIgnoreSection
,
i
++
);
sprintf
(
subsection
,
"%s%i"
,
INIIgnoreSection
,
i
++
);
if
(
PROFILE_GetWineIniString
(
INIFontSection
,
subsection
,
""
,
buffer
,
sizeof
buffer
)
)
...
...
if1632/snoop.c
View file @
58d5a0a7
...
...
@@ -9,8 +9,6 @@
#include <stdio.h>
#include "winbase.h"
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnt.h"
#include "heap.h"
#include "global.h"
...
...
include/winbase.h
View file @
58d5a0a7
...
...
@@ -1711,6 +1711,7 @@ UINT WINAPI GetAtomNameW(ATOM,LPWSTR,INT);
UINT
WINAPI
GetCurrentDirectoryA
(
UINT
,
LPSTR
);
UINT
WINAPI
GetCurrentDirectoryW
(
UINT
,
LPWSTR
);
#define GetCurrentDirectory WINELIB_NAME_AW(GetCurrentDirectory)
#define GetCurrentTime() GetTickCount()
BOOL
WINAPI
GetDiskFreeSpaceA
(
LPCSTR
,
LPDWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
BOOL
WINAPI
GetDiskFreeSpaceW
(
LPCWSTR
,
LPDWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
);
#define GetDiskFreeSpace WINELIB_NAME_AW(GetDiskFreeSpace)
...
...
@@ -1720,6 +1721,7 @@ BOOL WINAPI GetDiskFreeSpaceExW(LPCWSTR,PULARGE_INTEGER,PULARGE_INTEGER,PUL
UINT
WINAPI
GetDriveTypeA
(
LPCSTR
);
UINT
WINAPI
GetDriveTypeW
(
LPCWSTR
);
#define GetDriveType WINELIB_NAME_AW(GetDriveType)
BOOL
WINAPI
GetExitCodeProcess
(
HANDLE
,
LPDWORD
);
DWORD
WINAPI
GetFileAttributesA
(
LPCSTR
);
DWORD
WINAPI
GetFileAttributesW
(
LPCWSTR
);
#define GetFileAttributes WINELIB_NAME_AW(GetFileAttributes)
...
...
@@ -1771,26 +1773,36 @@ BOOL WINAPI GetStringTypeW(DWORD,LPCWSTR,INT,LPWORD);
UINT
WINAPI
GetSystemDirectoryA
(
LPSTR
,
UINT
);
UINT
WINAPI
GetSystemDirectoryW
(
LPWSTR
,
UINT
);
#define GetSystemDirectory WINELIB_NAME_AW(GetSystemDirectory)
UINT
WINAPI
GetTempFileNameA
(
LPCSTR
,
LPCSTR
,
UINT
,
LPSTR
);
UINT
WINAPI
GetTempFileNameW
(
LPCWSTR
,
LPCWSTR
,
UINT
,
LPWSTR
);
DWORD
WINAPI
GetTickCount
(
void
);
UINT
WINAPI
GetTempFileNameA
(
LPCSTR
,
LPCSTR
,
UINT
,
LPSTR
);
UINT
WINAPI
GetTempFileNameW
(
LPCWSTR
,
LPCWSTR
,
UINT
,
LPWSTR
);
#define GetTempFileName WINELIB_NAME_AW(GetTempFileName)
UINT
WINAPI
GetTempPathA
(
UINT
,
LPSTR
);
UINT
WINAPI
GetTempPathW
(
UINT
,
LPWSTR
);
#define GetTempPath WINELIB_NAME_AW(GetTempPath)
LONG
WINAPI
GetVersion
(
void
);
BOOL
WINAPI
GetExitCodeProcess
(
HANDLE
,
LPDWORD
);
BOOL
WINAPI
GetVolumeInformationA
(
LPCSTR
,
LPSTR
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
,
LPSTR
,
DWORD
);
BOOL
WINAPI
GetVolumeInformationW
(
LPCWSTR
,
LPWSTR
,
DWORD
,
LPDWORD
,
LPDWORD
,
LPDWORD
,
LPWSTR
,
DWORD
);
#define GetVolumeInformation WINELIB_NAME_AW(GetVolumeInformation)
UINT
WINAPI
GetWindowsDirectoryA
(
LPSTR
,
UINT
);
UINT
WINAPI
GetWindowsDirectoryW
(
LPWSTR
,
UINT
);
#define GetWindowsDirectory WINELIB_NAME_AW(GetWindowsDirectory)
ATOM
WINAPI
GlobalAddAtomA
(
LPCSTR
);
ATOM
WINAPI
GlobalAddAtomW
(
LPCWSTR
);
#define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
HGLOBAL16
WINAPI
GlobalAlloc16
(
UINT16
,
DWORD
);
HGLOBAL
WINAPI
GlobalAlloc
(
UINT
,
DWORD
);
HGLOBAL
WINAPI
GlobalAlloc
(
UINT
,
DWORD
);
DWORD
WINAPI
GlobalCompact
(
DWORD
);
UINT
WINAPI
GlobalFlags
(
HGLOBAL
);
ATOM
WINAPI
GlobalDeleteAtom
(
ATOM
);
ATOM
WINAPI
GlobalFindAtomA
(
LPCSTR
);
ATOM
WINAPI
GlobalFindAtomW
(
LPCWSTR
);
#define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
UINT
WINAPI
GlobalFlags
(
HGLOBAL
);
HGLOBAL16
WINAPI
GlobalFree16
(
HGLOBAL16
);
HGLOBAL
WINAPI
GlobalFree
(
HGLOBAL
);
HGLOBAL
WINAPI
GlobalFree
(
HGLOBAL
);
UINT
WINAPI
GlobalGetAtomNameA
(
ATOM
,
LPSTR
,
INT
);
UINT
WINAPI
GlobalGetAtomNameW
(
ATOM
,
LPWSTR
,
INT
);
#define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
HGLOBAL
WINAPI
GlobalHandle
(
LPCVOID
);
WORD
WINAPI
GlobalFix16
(
HGLOBAL16
);
VOID
WINAPI
GlobalFix
(
HGLOBAL
);
...
...
include/winuser.h
View file @
58d5a0a7
...
...
@@ -3097,14 +3097,11 @@ DWORD WINAPI GetMenuCheckMarkDimensions(void);
LONG
WINAPI
GetMessageExtraInfo
(
void
);
DWORD
WINAPI
GetMessagePos
(
void
);
LONG
WINAPI
GetMessageTime
(
void
);
DWORD
WINAPI
GetTickCount
(
void
);
ATOM
WINAPI
GlobalDeleteAtom
(
ATOM
);
DWORD
WINAPI
OemKeyScan
(
WORD
);
BOOL
WINAPI
ReleaseCapture
(
void
);
BOOL
WINAPI
SetKeyboardState
(
LPBYTE
);
VOID
WINAPI
WaitMessage
(
void
);
/* Declarations for functions that change between Win16 and Win32 */
BOOL
WINAPI
AdjustWindowRect
(
LPRECT
,
DWORD
,
BOOL
);
...
...
@@ -3369,7 +3366,6 @@ INT WINAPI GetClipboardFormatNameW(UINT,LPWSTR,INT);
HWND
WINAPI
GetClipboardOwner
(
void
);
HWND
WINAPI
GetClipboardViewer
(
void
);
BOOL
WINAPI
GetClipCursor
(
LPRECT
);
#define GetCurrentTime() GetTickCount()
HCURSOR
WINAPI
GetCursor
(
void
);
BOOL
WINAPI
GetCursorPos
(
LPPOINT
);
HDC
WINAPI
GetDC
(
HWND
);
...
...
@@ -3453,15 +3449,6 @@ INT WINAPI GetWindowTextLengthA(HWND);
INT
WINAPI
GetWindowTextLengthW
(
HWND
);
#define GetWindowTextLength WINELIB_NAME_AW(GetWindowTextLength)
WORD
WINAPI
GetWindowWord
(
HWND
,
INT
);
ATOM
WINAPI
GlobalAddAtomA
(
LPCSTR
);
ATOM
WINAPI
GlobalAddAtomW
(
LPCWSTR
);
#define GlobalAddAtom WINELIB_NAME_AW(GlobalAddAtom)
ATOM
WINAPI
GlobalFindAtomA
(
LPCSTR
);
ATOM
WINAPI
GlobalFindAtomW
(
LPCWSTR
);
#define GlobalFindAtom WINELIB_NAME_AW(GlobalFindAtom)
UINT
WINAPI
GlobalGetAtomNameA
(
ATOM
,
LPSTR
,
INT
);
UINT
WINAPI
GlobalGetAtomNameW
(
ATOM
,
LPWSTR
,
INT
);
#define GlobalGetAtomName WINELIB_NAME_AW(GlobalGetAtomName)
BOOL
WINAPI
GrayStringA
(
HDC
,
HBRUSH
,
GRAYSTRINGPROC
,
LPARAM
,
INT
,
INT
,
INT
,
INT
,
INT
);
BOOL
WINAPI
GrayStringW
(
HDC
,
HBRUSH
,
GRAYSTRINGPROC
,
LPARAM
,
...
...
loader/resource.c
View file @
58d5a0a7
...
...
@@ -12,12 +12,9 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "winbase.h"
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "winbase.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/exception.h"
#include "ldt.h"
#include "global.h"
...
...
memory/atom.c
View file @
58d5a0a7
...
...
@@ -17,10 +17,7 @@
#include <ctype.h>
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "winerror.h"
#include "instance.h"
#include "ldt.h"
...
...
memory/environ.c
View file @
58d5a0a7
...
...
@@ -7,8 +7,6 @@
#include <stdlib.h>
#include <string.h>
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "process.h"
#include "heap.h"
...
...
misc/comm.c
View file @
58d5a0a7
...
...
@@ -52,8 +52,6 @@
#include <unistd.h>
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
#include "comm.h"
#ifdef HAVE_SYS_MODEM_H
# include <sys/modem.h>
...
...
misc/lstr.c
View file @
58d5a0a7
...
...
@@ -579,7 +579,7 @@ DWORD WINAPI FormatMessage16(
argliststart
=
args
+
insertnr
-
1
;
/* CMF - This makes a BIG assumption about va_list */
while
(
wvsnprintf16
(
b
,
sz
,
fmtstr
,
(
va_list
)
argliststart
)
<
0
)
{
while
(
vsnprintf
(
b
,
sz
,
fmtstr
,
(
va_list
)
argliststart
)
<
0
)
{
b
=
HeapReAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
b
,
sz
+=
100
);
}
for
(
x
=
b
;
*
x
;
x
++
)
ADD_TO_T
(
*
x
);
...
...
objects/gdiobj.c
View file @
58d5a0a7
...
...
@@ -23,9 +23,8 @@
#include "tweak.h"
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
DEFAULT_DEBUG_CHANNEL
(
gdi
)
DEFAULT_DEBUG_CHANNEL
(
gdi
)
;
/**********************************************************************/
...
...
objects/region.c
View file @
58d5a0a7
...
...
@@ -85,7 +85,6 @@ SOFTWARE.
#include <string.h>
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "debugtools.h"
#include "region.h"
#include "heap.h"
...
...
objects/text.c
View file @
58d5a0a7
...
...
@@ -11,7 +11,6 @@
#include "wingdi.h"
#include "wine/winuser16.h"
#include "winbase.h"
#include "winuser.h"
#include "winerror.h"
#include "dc.h"
#include "gdi.h"
...
...
relay32/builtin32.c
View file @
58d5a0a7
...
...
@@ -20,8 +20,6 @@
#include "windef.h"
#include "wine/winbase16.h"
#include "wingdi.h"
#include "winuser.h"
#include "builtin32.h"
#include "elfdll.h"
#include "file.h"
...
...
relay32/snoop.c
View file @
58d5a0a7
...
...
@@ -10,8 +10,6 @@
#include <stdio.h>
#include <string.h>
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnt.h"
#include "heap.h"
#include "builtin32.h"
...
...
@@ -231,7 +229,7 @@ SNOOP_PrintArg(DWORD x) {
}
if
(
!
nostring
)
{
if
(
i
>
5
)
{
wsnprintfA
(
buf
,
sizeof
(
buf
),
"%08lx %s"
,
x
,
debugstr_an
((
LPSTR
)
x
,
sizeof
(
buf
)
-
10
));
snprintf
(
buf
,
sizeof
(
buf
),
"%08lx %s"
,
x
,
debugstr_an
((
LPSTR
)
x
,
sizeof
(
buf
)
-
10
));
ret
=
buf
;
}
}
...
...
@@ -251,7 +249,7 @@ SNOOP_PrintArg(DWORD x) {
}
if
(
!
nostring
)
{
if
(
i
>
5
)
{
wsnprintfA
(
buf
,
sizeof
(
buf
),
"%08lx %s"
,
x
,
debugstr_wn
((
LPWSTR
)
x
,
sizeof
(
buf
)
-
10
));
snprintf
(
buf
,
sizeof
(
buf
),
"%08lx %s"
,
x
,
debugstr_wn
((
LPWSTR
)
x
,
sizeof
(
buf
)
-
10
));
ret
=
buf
;
}
}
...
...
win32/device.c
View file @
58d5a0a7
...
...
@@ -23,9 +23,7 @@
#include <stdarg.h>
#include <time.h>
#include "windef.h"
#include "wingdi.h"
#include "winbase.h"
#include "winuser.h"
#include "winreg.h"
#include "winerror.h"
#include "winversion.h"
...
...
win32/except.c
View file @
58d5a0a7
...
...
@@ -25,8 +25,6 @@
#include <assert.h>
#include <stdio.h>
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
#include "ntddk.h"
#include "wine/exception.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment