ANSI C fixes.

Removed warnings.
Made the include files self-sufficient.
Some Solaris fixes.
This commit is contained in:
Patrik Stridvall 1999-06-26 14:58:24 +00:00 committed by Alexandre Julliard
parent d37b0192c9
commit 1ed4ecffa8
109 changed files with 461 additions and 324 deletions

View file

@ -22,7 +22,7 @@ DESKTOP_DRIVER *DESKTOP_Driver = NULL;
/*********************************************************************** /***********************************************************************
* DESKTOP_IsSingleWindow * DESKTOP_IsSingleWindow
*/ */
BOOL DESKTOP_IsSingleWindow() BOOL DESKTOP_IsSingleWindow(void)
{ {
BOOL retvalue; BOOL retvalue;
DESKTOP *pDesktop = (DESKTOP *) WIN_GetDesktop()->wExtra; DESKTOP *pDesktop = (DESKTOP *) WIN_GetDesktop()->wExtra;

View file

@ -154,11 +154,7 @@ static inline BOOL EDIT_EM_CanUndo(WND *wnd, EDITSTATE *es);
static inline void EDIT_EM_EmptyUndoBuffer(WND *wnd, EDITSTATE *es); static inline void EDIT_EM_EmptyUndoBuffer(WND *wnd, EDITSTATE *es);
static inline void EDIT_WM_Clear(WND *wnd, EDITSTATE *es); static inline void EDIT_WM_Clear(WND *wnd, EDITSTATE *es);
static inline void EDIT_WM_Cut(WND *wnd, EDITSTATE *es); static inline void EDIT_WM_Cut(WND *wnd, EDITSTATE *es);
/*
* This is the only exported function
*/
LRESULT WINAPI EditWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
/* /*
* Helper functions only valid for one type of control * Helper functions only valid for one type of control
*/ */

View file

@ -295,7 +295,7 @@ static HMENU MENU_CopySysPopup(void)
* *
* Return the locked pointer pTopPopupWnd. * Return the locked pointer pTopPopupWnd.
*/ */
WND *MENU_GetTopPopupWnd() static WND *MENU_GetTopPopupWnd()
{ {
return WIN_LockWndPtr(pTopPopupWnd); return WIN_LockWndPtr(pTopPopupWnd);
} }
@ -304,7 +304,7 @@ WND *MENU_GetTopPopupWnd()
* *
* Realease the locked pointer pTopPopupWnd. * Realease the locked pointer pTopPopupWnd.
*/ */
void MENU_ReleaseTopPopupWnd() static void MENU_ReleaseTopPopupWnd()
{ {
WIN_ReleaseWndPtr(pTopPopupWnd); WIN_ReleaseWndPtr(pTopPopupWnd);
} }
@ -313,7 +313,7 @@ void MENU_ReleaseTopPopupWnd()
* *
* Destroy the locked pointer pTopPopupWnd. * Destroy the locked pointer pTopPopupWnd.
*/ */
void MENU_DestroyTopPopupWnd() static void MENU_DestroyTopPopupWnd()
{ {
WND *tmpWnd = pTopPopupWnd; WND *tmpWnd = pTopPopupWnd;
pTopPopupWnd = NULL; pTopPopupWnd = NULL;

View file

@ -5,6 +5,7 @@
* Copyright 1997 Bertho A. Stultiens * Copyright 1997 Bertho A. Stultiens
*/ */
#include "wine/winuser16.h"
#include "winuser.h" #include "winuser.h"
#include "debugtools.h" #include "debugtools.h"

View file

@ -4,33 +4,20 @@
* Copyright 1993 Alexandre Julliard * Copyright 1993 Alexandre Julliard
*/ */
#include <string.h>
#include <assert.h> #include <assert.h>
#include <string.h>
#include "win.h" #include "win.h"
#include "button.h" #include "button.h"
#include "static.h" #include "combo.h"
#include "scroll.h"
#include "desktop.h" #include "desktop.h"
#include "mdi.h"
#include "gdi.h" #include "gdi.h"
#include "module.h"
#include "heap.h" #include "heap.h"
#include "mdi.h"
/* Window procedures */ #include "menu.h"
#include "module.h"
extern LRESULT WINAPI EditWndProc( HWND hwnd, UINT msg, #include "scroll.h"
WPARAM wParam, LPARAM lParam ); #include "static.h"
extern LRESULT WINAPI ComboWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
extern LRESULT WINAPI ComboLBWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
extern LRESULT WINAPI ListBoxWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
extern LRESULT WINAPI PopupMenuWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
extern LRESULT WINAPI IconTitleWndProc( HWND hwnd, UINT msg,
WPARAM wParam, LPARAM lParam );
/* Built-in classes */ /* Built-in classes */

View file

@ -23,7 +23,7 @@
if ( (result = dbg_read((char *) buf, max_size )) < 0 ) \ if ( (result = dbg_read((char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" ); YY_FATAL_ERROR( "read() in flex scanner failed" );
extern char * readline(char *); extern char * readline(const char *);
extern void add_history(char *); extern void add_history(char *);
static int dbg_read(char * buf, int size); static int dbg_read(char * buf, int size);
static char * make_symbol(char *); static char * make_symbol(char *);

View file

@ -27,11 +27,13 @@
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h>
#include "windef.h" #include "windef.h"
#include "debugger.h" #include "debugger.h"
@ -151,8 +153,7 @@ extern int tgetent();
#include <termios.h> #include <termios.h>
static void static void
rl_ttyset(Reset) rl_ttyset(int Reset)
int Reset;
{ {
static struct termios old; static struct termios old;
struct termios new; struct termios new;
@ -181,8 +182,7 @@ rl_ttyset(Reset)
#else /* HAVE_TCGETATTR */ #else /* HAVE_TCGETATTR */
static void static void
rl_ttyset(Reset) rl_ttyset(int Reset)
int Reset;
{ {
static struct sgttyb old_sgttyb; static struct sgttyb old_sgttyb;
static struct tchars old_tchars; static struct tchars old_tchars;
@ -221,7 +221,7 @@ rl_ttyset(Reset)
#endif /* HAVE_TCGETATTR */ #endif /* HAVE_TCGETATTR */
static void static void
TTYflush() TTYflush(void)
{ {
if (ScreenCount) { if (ScreenCount) {
(void)write(1, Screen, ScreenCount); (void)write(1, Screen, ScreenCount);
@ -230,8 +230,7 @@ TTYflush()
} }
static void static void
TTYput(c) TTYput(CHAR c)
CHAR c;
{ {
Screen[ScreenCount] = c; Screen[ScreenCount] = c;
if (++ScreenCount >= ScreenSize - 1) { if (++ScreenCount >= ScreenSize - 1) {
@ -241,16 +240,14 @@ TTYput(c)
} }
static void static void
TTYputs(p) TTYputs(CHAR *p)
CHAR *p;
{ {
while (*p) while (*p)
TTYput(*p++); TTYput(*p++);
} }
static void static void
TTYshow(c) TTYshow(CHAR c)
CHAR c;
{ {
if (c == DEL) { if (c == DEL) {
TTYput('^'); TTYput('^');
@ -270,15 +267,14 @@ TTYshow(c)
} }
static void static void
TTYstring(p) TTYstring(CHAR *p)
CHAR *p;
{ {
while (*p) while (*p)
TTYshow(*p++); TTYshow(*p++);
} }
static unsigned int static unsigned int
TTYget() TTYget(void)
{ {
CHAR c; CHAR c;
int retv; int retv;
@ -306,15 +302,14 @@ TTYget()
#define TTYback() (backspace ? TTYputs((CHAR *)backspace) : TTYput('\b')) #define TTYback() (backspace ? TTYputs((CHAR *)backspace) : TTYput('\b'))
static void static void
TTYbackn(n) TTYbackn(int n)
int n;
{ {
while (--n >= 0) while (--n >= 0)
TTYback(); TTYback();
} }
static void static void
TTYinfo() TTYinfo(void)
{ {
static int init; static int init;
#if defined(USE_TERMCAP) #if defined(USE_TERMCAP)
@ -370,7 +365,7 @@ TTYinfo()
static void static void
reposition() reposition(void)
{ {
int i; int i;
CHAR *p; CHAR *p;
@ -382,8 +377,7 @@ reposition()
} }
static void static void
left(Change) left(STATUS Change)
STATUS Change;
{ {
TTYback(); TTYback();
if (Point) { if (Point) {
@ -399,8 +393,7 @@ left(Change)
} }
static void static void
right(Change) right(STATUS Change)
STATUS Change;
{ {
TTYshow(Line[Point]); TTYshow(Line[Point]);
if (Change == CSmove) if (Change == CSmove)
@ -408,7 +401,7 @@ right(Change)
} }
static STATUS static STATUS
ring_bell() ring_bell(void)
{ {
TTYput('\07'); TTYput('\07');
TTYflush(); TTYflush();
@ -416,8 +409,7 @@ ring_bell()
} }
static STATUS static STATUS
do_macro(c) do_macro(unsigned int c)
unsigned int c;
{ {
CHAR name[4]; CHAR name[4];
@ -434,8 +426,7 @@ do_macro(c)
} }
static STATUS static STATUS
do_forward(move) do_forward(STATUS move)
STATUS move;
{ {
int i; int i;
CHAR *p; CHAR *p;
@ -459,8 +450,7 @@ do_forward(move)
} }
static STATUS static STATUS
do_case(type) do_case(CASE type)
CASE type;
{ {
int i; int i;
int end; int end;
@ -488,19 +478,19 @@ do_case(type)
} }
static STATUS static STATUS
case_down_word() case_down_word(void)
{ {
return do_case(TOlower); return do_case(TOlower);
} }
static STATUS static STATUS
case_up_word() case_up_word(void)
{ {
return do_case(TOupper); return do_case(TOupper);
} }
static void static void
ceol() ceol(void)
{ {
int extras; int extras;
int i; int i;
@ -524,7 +514,7 @@ ceol()
} }
static void static void
clear_line() clear_line(void)
{ {
Point = -strlen(Prompt); Point = -strlen(Prompt);
TTYput('\r'); TTYput('\r');
@ -535,8 +525,7 @@ clear_line()
} }
static STATUS static STATUS
insert_string(p) insert_string(CHAR *p)
CHAR *p;
{ {
size_t len; size_t len;
int i; int i;
@ -568,7 +557,7 @@ insert_string(p)
static CHAR * static CHAR *
next_hist() next_hist(void)
{ {
return H.Pos >= H.Size - 1 ? NULL : H.Lines[++H.Pos]; return H.Pos >= H.Size - 1 ? NULL : H.Lines[++H.Pos];
} }
@ -580,8 +569,7 @@ prev_hist()
} }
static STATUS static STATUS
do_insert_hist(p) do_insert_hist(CHAR *p)
CHAR *p;
{ {
if (p == NULL) if (p == NULL)
return ring_bell(); return ring_bell();
@ -593,8 +581,7 @@ do_insert_hist(p)
} }
static STATUS static STATUS
do_hist(move) do_hist(CHAR *(*move)(void))
CHAR *(*move)();
{ {
CHAR *p; CHAR *p;
int i; int i;
@ -608,25 +595,25 @@ do_hist(move)
} }
static STATUS static STATUS
h_next() h_next(void)
{ {
return do_hist(next_hist); return do_hist(next_hist);
} }
static STATUS static STATUS
h_prev() h_prev(void)
{ {
return do_hist(prev_hist); return do_hist(prev_hist);
} }
static STATUS static STATUS
h_first() h_first(void)
{ {
return do_insert_hist(H.Lines[H.Pos = 0]); return do_insert_hist(H.Lines[H.Pos = 0]);
} }
static STATUS static STATUS
h_last() h_last(void)
{ {
return do_insert_hist(H.Lines[H.Pos = H.Size - 1]); return do_insert_hist(H.Lines[H.Pos = H.Size - 1]);
} }
@ -635,10 +622,7 @@ h_last()
** Return zero if pat appears as a substring in text. ** Return zero if pat appears as a substring in text.
*/ */
static int static int
substrcmp(text, pat, len) substrcmp(char *text, char *pat, int len)
char *text;
char *pat;
int len;
{ {
CHAR c; CHAR c;
@ -651,9 +635,7 @@ substrcmp(text, pat, len)
} }
static CHAR * static CHAR *
search_hist(search, move) search_hist(CHAR *search, CHAR *(*move)(void))
CHAR *search;
CHAR *(*move)();
{ {
static CHAR *old_search; static CHAR *old_search;
int len; int len;
@ -692,7 +674,7 @@ search_hist(search, move)
} }
static STATUS static STATUS
h_search() h_search(void)
{ {
static int Searching; static int Searching;
const char *old_prompt; const char *old_prompt;
@ -718,7 +700,7 @@ h_search()
} }
static STATUS static STATUS
fd_char() fd_char(void)
{ {
int i; int i;
@ -732,9 +714,7 @@ fd_char()
} }
static void static void
save_yank(begin, i) save_yank(int begin, int i)
int begin;
int i;
{ {
if (Yanked) { if (Yanked) {
DISPOSE(Yanked); DISPOSE(Yanked);
@ -751,8 +731,7 @@ save_yank(begin, i)
} }
static STATUS static STATUS
delete_string(count) delete_string(int count)
int count;
{ {
int i; int i;
CHAR *p; CHAR *p;
@ -794,7 +773,7 @@ delete_string(count)
} }
static STATUS static STATUS
bk_char() bk_char(void)
{ {
int i; int i;
@ -809,7 +788,7 @@ bk_char()
} }
static STATUS static STATUS
bk_del_char() bk_del_char(void)
{ {
int i; int i;
@ -824,7 +803,7 @@ bk_del_char()
} }
static STATUS static STATUS
redisplay() redisplay(void)
{ {
TTYputs((CHAR *)NEWLINE); TTYputs((CHAR *)NEWLINE);
TTYputs((CHAR *)Prompt); TTYputs((CHAR *)Prompt);
@ -833,7 +812,7 @@ redisplay()
} }
static STATUS static STATUS
kill_line() kill_line(void)
{ {
int i; int i;
@ -859,8 +838,7 @@ kill_line()
} }
static STATUS static STATUS
insert_char(c) insert_char(int c)
int c;
{ {
STATUS s; STATUS s;
CHAR buff[2]; CHAR buff[2];
@ -886,7 +864,7 @@ insert_char(c)
} }
static STATUS static STATUS
meta() meta(void)
{ {
unsigned int c; unsigned int c;
KEYMAP *kp; KEYMAP *kp;
@ -922,8 +900,7 @@ meta()
} }
static STATUS static STATUS
emacs(c) emacs(unsigned int c)
unsigned int c;
{ {
STATUS s; STATUS s;
KEYMAP *kp; KEYMAP *kp;
@ -944,8 +921,7 @@ emacs(c)
} }
static STATUS static STATUS
TTYspecial(c) TTYspecial(unsigned int c)
unsigned int c;
{ {
if (ISMETA(c)) if (ISMETA(c))
return CSdispatch; return CSdispatch;
@ -972,7 +948,7 @@ TTYspecial(c)
} }
static CHAR * static CHAR *
editinput() editinput(void)
{ {
unsigned int c; unsigned int c;
@ -1010,8 +986,7 @@ editinput()
} }
static void static void
hist_add(p) hist_add(CHAR *p)
CHAR *p;
{ {
int i; int i;
@ -1029,8 +1004,7 @@ hist_add(p)
} }
char * char *
readline(prompt) readline(const char *prompt)
const char *prompt;
{ {
CHAR *line; CHAR *line;
@ -1059,8 +1033,7 @@ readline(prompt)
} }
void void
add_history(p) add_history(char *p)
char *p;
{ {
if (p == NULL || *p == '\0') if (p == NULL || *p == '\0')
return; return;
@ -1074,7 +1047,7 @@ add_history(p)
static STATUS static STATUS
beg_line() beg_line(void)
{ {
if (Point) { if (Point) {
Point = 0; Point = 0;
@ -1084,13 +1057,13 @@ beg_line()
} }
static STATUS static STATUS
del_char() del_char(void)
{ {
return delete_string(Repeat == NO_ARG ? 1 : Repeat); return delete_string(Repeat == NO_ARG ? 1 : Repeat);
} }
static STATUS static STATUS
end_line() end_line(void)
{ {
if (Point != End) { if (Point != End) {
Point = End; Point = End;
@ -1100,14 +1073,14 @@ end_line()
} }
static STATUS static STATUS
accept_line() accept_line(void)
{ {
Line[End] = '\0'; Line[End] = '\0';
return CSdone; return CSdone;
} }
static STATUS static STATUS
transpose() transpose(void)
{ {
CHAR c; CHAR c;
@ -1125,7 +1098,7 @@ transpose()
} }
static STATUS static STATUS
quote() quote(void)
{ {
unsigned int c; unsigned int c;
@ -1133,7 +1106,7 @@ quote()
} }
static STATUS static STATUS
wipe() wipe(void)
{ {
int i; int i;
@ -1151,14 +1124,14 @@ wipe()
} }
static STATUS static STATUS
mk_set() mk_set(void)
{ {
Mark = Point; Mark = Point;
return CSstay; return CSstay;
} }
static STATUS static STATUS
exchange() exchange(void)
{ {
unsigned int c; unsigned int c;
@ -1174,7 +1147,7 @@ exchange()
} }
static STATUS static STATUS
yank() yank(void)
{ {
if (Yanked && *Yanked) if (Yanked && *Yanked)
return insert_string(Yanked); return insert_string(Yanked);
@ -1182,7 +1155,7 @@ yank()
} }
static STATUS static STATUS
copy_region() copy_region(void)
{ {
if (Mark > End) if (Mark > End)
return ring_bell(); return ring_bell();
@ -1196,7 +1169,7 @@ copy_region()
} }
static STATUS static STATUS
move_to_char() move_to_char(void)
{ {
unsigned int c; unsigned int c;
int i; int i;
@ -1213,13 +1186,13 @@ move_to_char()
} }
static STATUS static STATUS
fd_word() fd_word(void)
{ {
return do_forward(CSmove); return do_forward(CSmove);
} }
static STATUS static STATUS
fd_kill_word() fd_kill_word(void)
{ {
int i; int i;
@ -1233,7 +1206,7 @@ fd_kill_word()
} }
static STATUS static STATUS
bk_word() bk_word(void)
{ {
int i; int i;
CHAR *p; CHAR *p;
@ -1254,7 +1227,7 @@ bk_word()
} }
static STATUS static STATUS
bk_kill_word() bk_kill_word(void)
{ {
(void)bk_word(); (void)bk_word();
if (OldPoint != Point) if (OldPoint != Point)
@ -1263,9 +1236,7 @@ bk_kill_word()
} }
static int static int
argify(line, avp) argify(CHAR *line, CHAR ***avp)
CHAR *line;
CHAR ***avp;
{ {
CHAR *c; CHAR *c;
CHAR **p; CHAR **p;
@ -1309,7 +1280,7 @@ argify(line, avp)
} }
static STATUS static STATUS
last_argument() last_argument(void)
{ {
CHAR **av; CHAR **av;
CHAR *p; CHAR *p;

View file

@ -93,7 +93,7 @@ struct known_typedef
struct known_typedef * next; struct known_typedef * next;
char * name; char * name;
int ndefs; int ndefs;
struct datatype * types[0]; struct datatype * types[1];
}; };
#define NR_STAB_HASH 521 #define NR_STAB_HASH 521
@ -221,7 +221,7 @@ DEBUG_RegisterTypedef(const char * name, struct datatype ** types, int ndef)
return TRUE; return TRUE;
ktd = (struct known_typedef *) DBG_alloc(sizeof(struct known_typedef) ktd = (struct known_typedef *) DBG_alloc(sizeof(struct known_typedef)
+ ndef * sizeof(struct datatype *)); + (ndef - 1) * sizeof(struct datatype *));
hash = stab_hash(name); hash = stab_hash(name);

View file

@ -93,7 +93,7 @@ ANIMATE_Free (ANIMATE_INFO *infoPtr)
static VOID static VOID
ANIMATE_GetAviInfo (infoPtr) ANIMATE_GetAviInfo (ANIMATE_INFO *infoPtr)
{ {
@ -305,7 +305,7 @@ ANIMATE_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID VOID
ANIMATE_Register (VOID) ANIMATE_Register (void)
{ {
WNDCLASSA wndClass; WNDCLASSA wndClass;
@ -325,7 +325,7 @@ ANIMATE_Register (VOID)
VOID VOID
ANIMATE_Unregister (VOID) ANIMATE_Unregister (void)
{ {
if (GlobalFindAtomA (ANIMATE_CLASSA)) if (GlobalFindAtomA (ANIMATE_CLASSA))
UnregisterClassA (ANIMATE_CLASSA, (HINSTANCE)NULL); UnregisterClassA (ANIMATE_CLASSA, (HINSTANCE)NULL);

View file

@ -2040,7 +2040,7 @@ static INT LISTVIEW_GetCountPerColumn(HWND hwnd)
* RETURN: * RETURN:
* Number of columns. * Number of columns.
*/ */
static INT LISTVIEW_GetColumnCount(hwnd) static INT LISTVIEW_GetColumnCount(HWND hwnd)
{ {
LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0); LISTVIEW_INFO *infoPtr = (LISTVIEW_INFO *)GetWindowLongA(hwnd, 0);
LONG lStyle = GetWindowLongA(hwnd, GWL_STYLE); LONG lStyle = GetWindowLongA(hwnd, GWL_STYLE);
@ -6767,7 +6767,7 @@ LRESULT WINAPI LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
* RETURN: * RETURN:
* None * None
*/ */
VOID LISTVIEW_Register(VOID) VOID LISTVIEW_Register(void)
{ {
WNDCLASSA wndClass; WNDCLASSA wndClass;
@ -6795,7 +6795,7 @@ VOID LISTVIEW_Register(VOID)
* RETURN: * RETURN:
* None * None
*/ */
VOID LISTVIEW_Unregister(VOID) VOID LISTVIEW_Unregister(void)
{ {
if (GlobalFindAtomA(WC_LISTVIEWA)) if (GlobalFindAtomA(WC_LISTVIEWA))
{ {

View file

@ -3227,7 +3227,7 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID VOID
TOOLBAR_Register (VOID) TOOLBAR_Register (void)
{ {
WNDCLASSA wndClass; WNDCLASSA wndClass;
@ -3247,7 +3247,7 @@ TOOLBAR_Register (VOID)
VOID VOID
TOOLBAR_Unregister (VOID) TOOLBAR_Unregister (void)
{ {
if (GlobalFindAtomA (TOOLBARCLASSNAMEA)) if (GlobalFindAtomA (TOOLBARCLASSNAMEA))
UnregisterClassA (TOOLBARCLASSNAMEA, (HINSTANCE)NULL); UnregisterClassA (TOOLBARCLASSNAMEA, (HINSTANCE)NULL);

View file

@ -85,7 +85,7 @@ void TRACKBAR_RecalculateTics (TRACKBAR_INFO *infoPtr)
/* converts from physical (mouse) position to logical position /* converts from physical (mouse) position to logical position
(in range of trackbar) */ (in range of trackbar) */
static __inline__ DOUBLE static inline DOUBLE
TRACKBAR_ConvertPlaceToPosition (TRACKBAR_INFO *infoPtr, int place, TRACKBAR_ConvertPlaceToPosition (TRACKBAR_INFO *infoPtr, int place,
int vertical) int vertical)
{ {

View file

@ -3570,7 +3570,7 @@ TREEVIEW_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID VOID
TREEVIEW_Register (VOID) TREEVIEW_Register (void)
{ {
WNDCLASSA wndClass; WNDCLASSA wndClass;
@ -3592,7 +3592,7 @@ TREEVIEW_Register (VOID)
VOID VOID
TREEVIEW_Unregister (VOID) TREEVIEW_Unregister (void)
{ {
if (GlobalFindAtomA (WC_TREEVIEWA)) if (GlobalFindAtomA (WC_TREEVIEWA))
UnregisterClassA (WC_TREEVIEWA, (HINSTANCE)NULL); UnregisterClassA (WC_TREEVIEWA, (HINSTANCE)NULL);

View file

@ -49,7 +49,7 @@ static UINT HelpMessage;
* RETURNS * RETURNS
* Current state of check and radio buttons * Current state of check and radio buttons
*/ */
DWORD COMDLG32_FR_GetFlags(HWND hDlgWnd) static DWORD COMDLG32_FR_GetFlags(HWND hDlgWnd)
{ {
DWORD flags = 0; DWORD flags = 0;
if(IsDlgButtonChecked(hDlgWnd, rad2) == BST_CHECKED) if(IsDlgButtonChecked(hDlgWnd, rad2) == BST_CHECKED)
@ -65,7 +65,7 @@ DWORD COMDLG32_FR_GetFlags(HWND hDlgWnd)
* COMDLG32_FR_HandleWMCommand [internal] * COMDLG32_FR_HandleWMCommand [internal]
* Handle WM_COMMAND messages... * Handle WM_COMMAND messages...
*/ */
void COMDLG32_FR_HandleWMCommand(HWND hDlgWnd, COMDLG32_FR_Data *pData, int Id, int NotifyCode) static void COMDLG32_FR_HandleWMCommand(HWND hDlgWnd, COMDLG32_FR_Data *pData, int Id, int NotifyCode)
{ {
DWORD flag; DWORD flag;
@ -148,7 +148,7 @@ Replace:
* COMDLG32_FindReplaceDlgProc [internal] * COMDLG32_FindReplaceDlgProc [internal]
* [Find/Replace]Text32[A/W] window procedure. * [Find/Replace]Text32[A/W] window procedure.
*/ */
BOOL CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) static BOOL CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
{ {
COMDLG32_FR_Data *pdata = (COMDLG32_FR_Data *)GetPropA(hDlgWnd, (LPSTR)COMDLG32_Atom); COMDLG32_FR_Data *pdata = (COMDLG32_FR_Data *)GetPropA(hDlgWnd, (LPSTR)COMDLG32_Atom);
BOOL retval = TRUE;; BOOL retval = TRUE;;
@ -272,7 +272,7 @@ BOOL CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM wParam
* TRUE: Succes * TRUE: Succes
* FALSE: Failure * FALSE: Failure
*/ */
BOOL COMDLG32_FR_CheckPartial( static BOOL COMDLG32_FR_CheckPartial(
LPFINDREPLACEA pfr, /* [in] Find structure */ LPFINDREPLACEA pfr, /* [in] Find structure */
BOOL Replace /* [in] True if called as replace */ BOOL Replace /* [in] True if called as replace */
) { ) {
@ -340,7 +340,7 @@ BOOL COMDLG32_FR_CheckPartial(
* Window handle to created dialog:Succes * Window handle to created dialog:Succes
* NULL:Failure * NULL:Failure
*/ */
HWND COMDLG32_FR_DoFindReplace( static HWND COMDLG32_FR_DoFindReplace(
COMDLG32_FR_Data *pdata /* [in] Internal data structure */ COMDLG32_FR_Data *pdata /* [in] Internal data structure */
) { ) {
HWND hdlgwnd = 0; HWND hdlgwnd = 0;

View file

@ -286,7 +286,7 @@ typedef struct
/************************************************************************* /*************************************************************************
* FontFamilyEnumProc32 [internal] * FontFamilyEnumProc32 [internal]
*/ */
INT WINAPI FontFamilyEnumProc(LPENUMLOGFONTA lpEnumLogFont, static INT WINAPI FontFamilyEnumProc(LPENUMLOGFONTA lpEnumLogFont,
LPNEWTEXTMETRICA metrics, UINT nFontType, LPARAM lParam) LPNEWTEXTMETRICA metrics, UINT nFontType, LPARAM lParam)
{ {
LPCFn_ENUMSTRUCT e; LPCFn_ENUMSTRUCT e;
@ -393,7 +393,7 @@ static int SetFontSizesToCombo3(HWND hwnd, LPCHOOSEFONTA lpcf)
/*********************************************************************** /***********************************************************************
* AddFontStyle [internal] * AddFontStyle [internal]
*/ */
INT AddFontStyle(LPLOGFONTA lplf, UINT nFontType, static INT AddFontStyle(LPLOGFONTA lplf, UINT nFontType,
LPCHOOSEFONTA lpcf, HWND hcmb2, HWND hcmb3, HWND hDlg) LPCHOOSEFONTA lpcf, HWND hcmb2, HWND hcmb3, HWND hDlg)
{ {
int i; int i;
@ -444,7 +444,7 @@ INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics,
/*********************************************************************** /***********************************************************************
* FontStyleEnumProc32 [internal] * FontStyleEnumProc32 [internal]
*/ */
INT WINAPI FontStyleEnumProc( LPENUMLOGFONTA lpFont, static INT WINAPI FontStyleEnumProc( LPENUMLOGFONTA lpFont,
LPNEWTEXTMETRICA metrics, UINT nFontType, LPARAM lParam ) LPNEWTEXTMETRICA metrics, UINT nFontType, LPARAM lParam )
{ {
LPCFn_ENUMSTRUCT s=(LPCFn_ENUMSTRUCT)lParam; LPCFn_ENUMSTRUCT s=(LPCFn_ENUMSTRUCT)lParam;
@ -458,7 +458,7 @@ INT WINAPI FontStyleEnumProc( LPENUMLOGFONTA lpFont,
/*********************************************************************** /***********************************************************************
* CFn_WMInitDialog [internal] * CFn_WMInitDialog [internal]
*/ */
LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, static LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
LPCHOOSEFONTA lpcf) LPCHOOSEFONTA lpcf)
{ {
HDC hdc; HDC hdc;
@ -579,7 +579,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
/*********************************************************************** /***********************************************************************
* CFn_WMMeasureItem [internal] * CFn_WMMeasureItem [internal]
*/ */
LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam) static LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
{ {
BITMAP bm; BITMAP bm;
LPMEASUREITEMSTRUCT lpmi=(LPMEASUREITEMSTRUCT)lParam; LPMEASUREITEMSTRUCT lpmi=(LPMEASUREITEMSTRUCT)lParam;
@ -595,7 +595,7 @@ LRESULT CFn_WMMeasureItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
/*********************************************************************** /***********************************************************************
* CFn_WMDrawItem [internal] * CFn_WMDrawItem [internal]
*/ */
LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam) static LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
{ {
HBRUSH hBrush; HBRUSH hBrush;
char buffer[40]; char buffer[40];
@ -697,7 +697,7 @@ LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
/*********************************************************************** /***********************************************************************
* CFn_WMCtlColor [internal] * CFn_WMCtlColor [internal]
*/ */
LRESULT CFn_WMCtlColorStatic(HWND hDlg, WPARAM wParam, LPARAM lParam, static LRESULT CFn_WMCtlColorStatic(HWND hDlg, WPARAM wParam, LPARAM lParam,
LPCHOOSEFONTA lpcf) LPCHOOSEFONTA lpcf)
{ {
if (lpcf->Flags & CF_EFFECTS) if (lpcf->Flags & CF_EFFECTS)
@ -712,7 +712,7 @@ LRESULT CFn_WMCtlColorStatic(HWND hDlg, WPARAM wParam, LPARAM lParam,
/*********************************************************************** /***********************************************************************
* CFn_WMCommand [internal] * CFn_WMCommand [internal]
*/ */
LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, static LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
LPCHOOSEFONTA lpcf) LPCHOOSEFONTA lpcf)
{ {
HFONT hFont; HFONT hFont;

View file

@ -242,7 +242,7 @@ BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg )
/*********************************************************************** /***********************************************************************
* PRINTDLG_UpdatePrinterInfoTexts [internal] * PRINTDLG_UpdatePrinterInfoTexts [internal]
*/ */
void PRINTDLG_UpdatePrinterInfoTexts(HWND hDlg, PRINT_PTRA* PrintStructures) static void PRINTDLG_UpdatePrinterInfoTexts(HWND hDlg, PRINT_PTRA* PrintStructures)
{ {
char PrinterName[256]; char PrinterName[256];
char StatusMsg[256]; char StatusMsg[256];
@ -272,8 +272,8 @@ void PRINTDLG_UpdatePrinterInfoTexts(HWND hDlg, PRINT_PTRA* PrintStructures)
/*********************************************************************** /***********************************************************************
* PRINTDLG_WMInitDialog [internal] * PRINTDLG_WMInitDialog [internal]
*/ */
LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, static LRESULT PRINTDLG_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
PRINT_PTRA* PrintStructures) PRINT_PTRA* PrintStructures)
{ {
int i; int i;
LPPRINTDLGA lppd = PrintStructures->lpPrintDlg; LPPRINTDLGA lppd = PrintStructures->lpPrintDlg;
@ -377,8 +377,8 @@ TRACE("succesful!\n");
* FALSE if user is not allowed to close (i.e. wrong nTo or nFrom values) * FALSE if user is not allowed to close (i.e. wrong nTo or nFrom values)
* TRUE if succesful. * TRUE if succesful.
*/ */
BOOL PRINTDLG_ValidateAndDuplicateSettings(HWND hDlg, static BOOL PRINTDLG_ValidateAndDuplicateSettings(HWND hDlg,
PRINT_PTRA* PrintStructures) PRINT_PTRA* PrintStructures)
{ {
LPPRINTDLGA lppd = PrintStructures->lpPrintDlg; LPPRINTDLGA lppd = PrintStructures->lpPrintDlg;

View file

@ -398,7 +398,7 @@ INT WINAPI RtlExtendedLargeIntegerDivide(
*rest = x1 % divisor; *rest = x1 % divisor;
return x1/divisor; return x1/divisor;
#else #else
FIXME("((%d<<32)+%d,%d,%p), implement this using normal integer arithmetic!\n",dividend.HighPart,dividend.LowPart,divisor,rest); FIXME("((%ld<<32)+%ld,%ld,%p), implement this using normal integer arithmetic!\n",dividend.HighPart,dividend.LowPart,divisor,rest);
return 0; return 0;
#endif #endif
} }
@ -415,7 +415,7 @@ long long WINAPI RtlExtendedIntegerMultiply(
#if SIZEOF_LONG_LONG==8 #if SIZEOF_LONG_LONG==8
return (*(long long*)&factor1) * factor2; return (*(long long*)&factor1) * factor2;
#else #else
FIXME("((%d<<32)+%d,%ld), implement this using normal integer arithmetic!\n",factor1.HighPart,factor1.LowPart,factor2); FIXME("((%ld<<32)+%ld,%d), implement this using normal integer arithmetic!\n",factor1.HighPart,factor1.LowPart,factor2);
return 0; return 0;
#endif #endif
} }

View file

@ -28,6 +28,8 @@ DEFAULT_DEBUG_CHANNEL(aspi)
#ifdef linux #ifdef linux
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
static FARPROC16 ASPIChainFunc = NULL; static FARPROC16 ASPIChainFunc = NULL;
static WORD HA_Count = 1; /* host adapter count; FIXME: detect it */ static WORD HA_Count = 1; /* host adapter count; FIXME: detect it */

View file

@ -25,6 +25,9 @@ DEFAULT_DEBUG_CHANNEL(aspi)
*/ */
#ifdef linux #ifdef linux
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
static int static int
ASPI_OpenDevice(SRB_ExecSCSICmd *prb) ASPI_OpenDevice(SRB_ExecSCSICmd *prb)
{ {

View file

@ -16,6 +16,7 @@
#include "winbase.h" #include "winbase.h"
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winestring.h" #include "wine/winestring.h"
#include "wine/winuser16.h"
#include "winerror.h" #include "winerror.h"
#include "process.h" #include "process.h"
#include "drive.h" #include "drive.h"

View file

@ -96,14 +96,23 @@ static GUID XLIB_DirectDraw_GUID = { /* 1574a740-dc61-11d1-8407-f7875a7d1879 */
{0x84, 0x07, 0xf7, 0x87, 0x5a, 0x7d, 0x18, 0x79} {0x84, 0x07, 0xf7, 0x87, 0x5a, 0x7d, 0x18, 0x79}
}; };
static struct ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt, xlib_dds4vt; #ifdef HAVE_LIBXXF86DGA
static struct ICOM_VTABLE(IDirectDraw) dga_ddvt, xlib_ddvt; static struct ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt;
static struct ICOM_VTABLE(IDirectDraw2) dga_dd2vt, xlib_dd2vt; static struct ICOM_VTABLE(IDirectDraw) dga_ddvt;
static struct ICOM_VTABLE(IDirectDraw4) dga_dd4vt, xlib_dd4vt; static struct ICOM_VTABLE(IDirectDraw2) dga_dd2vt;
static struct ICOM_VTABLE(IDirectDraw4) dga_dd4vt;
static struct ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt;
#endif /* defined(HAVE_LIBXXF86DGA) */
static struct ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt;
static struct ICOM_VTABLE(IDirectDraw) xlib_ddvt;
static struct ICOM_VTABLE(IDirectDraw2) xlib_dd2vt;
static struct ICOM_VTABLE(IDirectDraw4) xlib_dd4vt;
static struct ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt;
static struct ICOM_VTABLE(IDirectDrawClipper) ddclipvt; static struct ICOM_VTABLE(IDirectDrawClipper) ddclipvt;
static struct ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt, xlib_ddpalvt; static struct ICOM_VTABLE(IDirect3D) d3dvt;
static struct ICOM_VTABLE(IDirect3D) d3dvt; static struct ICOM_VTABLE(IDirect3D2) d3d2vt;
static struct ICOM_VTABLE(IDirect3D2) d3d2vt;
#ifdef HAVE_LIBXXF86VM #ifdef HAVE_LIBXXF86VM
static XF86VidModeModeInfo *orig_mode = NULL; static XF86VidModeModeInfo *orig_mode = NULL;
@ -629,6 +638,7 @@ static HRESULT WINAPI IDirectDrawSurface4Impl_Lock(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Unlock( static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Unlock(
LPDIRECTDRAWSURFACE4 iface,LPVOID surface LPDIRECTDRAWSURFACE4 iface,LPVOID surface
) { ) {
@ -636,6 +646,7 @@ static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Unlock(
TRACE(ddraw,"(%p)->Unlock(%p)\n",This,surface); TRACE(ddraw,"(%p)->Unlock(%p)\n",This,surface);
return DD_OK; return DD_OK;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static void Xlib_copy_surface_on_screen(IDirectDrawSurface4Impl* This) { static void Xlib_copy_surface_on_screen(IDirectDrawSurface4Impl* This) {
if (This->s.ddraw->d.pixel_convert != NULL) if (This->s.ddraw->d.pixel_convert != NULL)
@ -688,12 +699,12 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_Unlock(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Flip( static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Flip(
LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWSURFACE4 flipto,DWORD dwFlags LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWSURFACE4 flipto,DWORD dwFlags
) { ) {
ICOM_THIS(IDirectDrawSurface4Impl,iface); ICOM_THIS(IDirectDrawSurface4Impl,iface);
IDirectDrawSurface4Impl* iflipto=(IDirectDrawSurface4Impl*)flipto; IDirectDrawSurface4Impl* iflipto=(IDirectDrawSurface4Impl*)flipto;
#ifdef HAVE_LIBXXF86DGA
TRACE(ddraw,"(%p)->Flip(%p,%08lx)\n",This,iflipto,dwFlags); TRACE(ddraw,"(%p)->Flip(%p,%08lx)\n",This,iflipto,dwFlags);
if (!iflipto) { if (!iflipto) {
if (This->s.backbuffer) if (This->s.backbuffer)
@ -721,10 +732,8 @@ static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_Flip(
iflipto->s.surface_desc.y.lpSurface = ptmp; iflipto->s.surface_desc.y.lpSurface = ptmp;
} }
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_Flip( static HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_Flip(
LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWSURFACE4 flipto,DWORD dwFlags LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWSURFACE4 flipto,DWORD dwFlags
@ -841,13 +850,14 @@ static HRESULT WINAPI Xlib_IDirectDrawSurface4Impl_SetPalette(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_SetPalette( static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_SetPalette(
LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWPALETTE pal LPDIRECTDRAWSURFACE4 iface,LPDIRECTDRAWPALETTE pal
) { ) {
ICOM_THIS(IDirectDrawSurface4Impl,iface); ICOM_THIS(IDirectDrawSurface4Impl,iface);
IDirectDrawPaletteImpl* ipal=(IDirectDrawPaletteImpl*)pal; IDirectDrawPaletteImpl* ipal=(IDirectDrawPaletteImpl*)pal;
TRACE(ddraw,"(%p)->(%p)\n",This,ipal); TRACE(ddraw,"(%p)->(%p)\n",This,ipal);
#ifdef HAVE_LIBXXF86DGA
/* According to spec, we are only supposed to /* According to spec, we are only supposed to
* AddRef if this is not the same palette. * AddRef if this is not the same palette.
*/ */
@ -870,12 +880,8 @@ static HRESULT WINAPI DGA_IDirectDrawSurface4Impl_SetPalette(
TSXF86DGAInstallColormap(display,DefaultScreen(display),This->s.palette->cm); TSXF86DGAInstallColormap(display,DefaultScreen(display),This->s.palette->cm);
} }
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT _Blt_ColorFill(LPBYTE buf, int width, int height, int bpp, LONG lPitch, DWORD color) static HRESULT _Blt_ColorFill(LPBYTE buf, int width, int height, int bpp, LONG lPitch, DWORD color)
{ {
@ -1275,11 +1281,11 @@ static ULONG WINAPI IDirectDrawSurface4Impl_AddRef(LPDIRECTDRAWSURFACE4 iface) {
return ++(This->ref); return ++(This->ref);
} }
#ifdef HAVE_LIBXXF86DGA
static ULONG WINAPI DGA_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 iface) { static ULONG WINAPI DGA_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 iface) {
ICOM_THIS(IDirectDrawSurface4Impl,iface); ICOM_THIS(IDirectDrawSurface4Impl,iface);
TRACE( ddraw, "(%p)->() decrementing from %lu.\n", This, This->ref ); TRACE( ddraw, "(%p)->() decrementing from %lu.\n", This, This->ref );
#ifdef HAVE_LIBXXF86DGA
if (!--(This->ref)) { if (!--(This->ref)) {
IDirectDraw2_Release((IDirectDraw2*)This->s.ddraw); IDirectDraw2_Release((IDirectDraw2*)This->s.ddraw);
/* clear out of surface list */ /* clear out of surface list */
@ -1303,9 +1309,9 @@ static ULONG WINAPI DGA_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 ifa
HeapFree(GetProcessHeap(),0,This); HeapFree(GetProcessHeap(),0,This);
return 0; return 0;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
return This->ref; return This->ref;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static ULONG WINAPI Xlib_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 iface) { static ULONG WINAPI Xlib_IDirectDrawSurface4Impl_Release(LPDIRECTDRAWSURFACE4 iface) {
ICOM_THIS(IDirectDrawSurface4Impl,iface); ICOM_THIS(IDirectDrawSurface4Impl,iface);
@ -1982,6 +1988,7 @@ static HRESULT WINAPI IDirectDrawSurface4Impl_ChangeUniquenessValue(LPDIRECTDRAW
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt = static ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@ -2031,6 +2038,7 @@ static ICOM_VTABLE(IDirectDrawSurface4) dga_dds4vt =
IDirectDrawSurface4Impl_GetUniquenessValue, IDirectDrawSurface4Impl_GetUniquenessValue,
IDirectDrawSurface4Impl_ChangeUniquenessValue IDirectDrawSurface4Impl_ChangeUniquenessValue
}; };
#endif /* defined(HAVE_LIBXXF86DGA) */
static ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt = static ICOM_VTABLE(IDirectDrawSurface4) xlib_dds4vt =
{ {
@ -2261,10 +2269,10 @@ static HRESULT WINAPI Xlib_IDirectDrawPaletteImpl_SetEntries(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDrawPaletteImpl_SetEntries( static HRESULT WINAPI DGA_IDirectDrawPaletteImpl_SetEntries(
LPDIRECTDRAWPALETTE iface,DWORD x,DWORD start,DWORD count,LPPALETTEENTRY palent LPDIRECTDRAWPALETTE iface,DWORD x,DWORD start,DWORD count,LPPALETTEENTRY palent
) { ) {
#ifdef HAVE_LIBXXF86DGA
ICOM_THIS(IDirectDrawPaletteImpl,iface); ICOM_THIS(IDirectDrawPaletteImpl,iface);
XColor xc; XColor xc;
Colormap cm; Colormap cm;
@ -2298,10 +2306,8 @@ static HRESULT WINAPI DGA_IDirectDrawPaletteImpl_SetEntries(
} }
TSXF86DGAInstallColormap(display,DefaultScreen(display),This->cm); TSXF86DGAInstallColormap(display,DefaultScreen(display),This->cm);
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static ULONG WINAPI IDirectDrawPaletteImpl_Release(LPDIRECTDRAWPALETTE iface) { static ULONG WINAPI IDirectDrawPaletteImpl_Release(LPDIRECTDRAWPALETTE iface) {
ICOM_THIS(IDirectDrawPaletteImpl,iface); ICOM_THIS(IDirectDrawPaletteImpl,iface);
@ -2353,6 +2359,7 @@ static HRESULT WINAPI IDirectDrawPaletteImpl_QueryInterface(
return S_OK; return S_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt = static ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@ -2364,6 +2371,7 @@ static ICOM_VTABLE(IDirectDrawPalette) dga_ddpalvt =
IDirectDrawPaletteImpl_Initialize, IDirectDrawPaletteImpl_Initialize,
DGA_IDirectDrawPaletteImpl_SetEntries DGA_IDirectDrawPaletteImpl_SetEntries
}; };
#endif /* defined(HAVE_LIBXXF86DGA) */
static ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt = static ICOM_VTABLE(IDirectDrawPalette) xlib_ddpalvt =
{ {
@ -2743,10 +2751,10 @@ static HRESULT common_off_screen_CreateSurface(IDirectDraw2Impl* This,
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface( static HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface(
LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsd,LPDIRECTDRAWSURFACE *lpdsf,IUnknown *lpunk LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsd,LPDIRECTDRAWSURFACE *lpdsf,IUnknown *lpunk
) { ) {
#ifdef HAVE_LIBXXF86DGA
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
IDirectDrawSurfaceImpl** ilpdsf=(IDirectDrawSurfaceImpl**)lpdsf; IDirectDrawSurfaceImpl** ilpdsf=(IDirectDrawSurfaceImpl**)lpdsf;
int i; int i;
@ -2847,10 +2855,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_CreateSurface(
} }
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
#ifdef HAVE_LIBXXSHM #ifdef HAVE_LIBXXSHM
/* Error handlers for Image creation */ /* Error handlers for Image creation */
@ -3300,10 +3306,10 @@ static int _common_depth_to_pixelformat(DWORD depth, DDPIXELFORMAT *pixelformat,
return match; return match;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDrawImpl_SetDisplayMode( static HRESULT WINAPI DGA_IDirectDrawImpl_SetDisplayMode(
LPDIRECTDRAW iface,DWORD width,DWORD height,DWORD depth LPDIRECTDRAW iface,DWORD width,DWORD height,DWORD depth
) { ) {
#ifdef HAVE_LIBXXF86DGA
ICOM_THIS(IDirectDrawImpl,iface); ICOM_THIS(IDirectDrawImpl,iface);
int i,mode_count; int i,mode_count;
@ -3387,10 +3393,8 @@ static HRESULT WINAPI DGA_IDirectDrawImpl_SetDisplayMode(
EXC_InitHandlers(); EXC_InitHandlers();
#endif #endif
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
/* ************************************* /* *************************************
16 / 15 bpp to palettized 8 bpp 16 / 15 bpp to palettized 8 bpp
@ -3637,10 +3641,10 @@ static HRESULT WINAPI Xlib_IDirectDrawImpl_SetDisplayMode(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_GetCaps( static HRESULT WINAPI DGA_IDirectDraw2Impl_GetCaps(
LPDIRECTDRAW2 iface,LPDDCAPS caps1,LPDDCAPS caps2 LPDIRECTDRAW2 iface,LPDDCAPS caps1,LPDDCAPS caps2
) { ) {
#ifdef HAVE_LIBXXF86DGA
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
TRACE(ddraw,"(%p)->GetCaps(%p,%p)\n",This,caps1,caps2); TRACE(ddraw,"(%p)->GetCaps(%p,%p)\n",This,caps1,caps2);
if (!caps1 && !caps2) if (!caps1 && !caps2)
@ -3656,10 +3660,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_GetCaps(
caps2->ddsCaps.dwCaps = 0xffffffff; /* we can do anything */ caps2->ddsCaps.dwCaps = 0xffffffff; /* we can do anything */
} }
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static void fill_caps(LPDDCAPS caps) { static void fill_caps(LPDDCAPS caps) {
/* This function tries to fill the capabilities of Wine's DDraw implementation. /* This function tries to fill the capabilities of Wine's DDraw implementation.
@ -3763,6 +3765,7 @@ static HRESULT WINAPI common_IDirectDraw2Impl_CreatePalette(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_CreatePalette( static HRESULT WINAPI DGA_IDirectDraw2Impl_CreatePalette(
LPDIRECTDRAW2 iface,DWORD dwFlags,LPPALETTEENTRY palent,LPDIRECTDRAWPALETTE *lpddpal,LPUNKNOWN lpunk LPDIRECTDRAW2 iface,DWORD dwFlags,LPPALETTEENTRY palent,LPDIRECTDRAWPALETTE *lpddpal,LPUNKNOWN lpunk
) { ) {
@ -3795,6 +3798,7 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_CreatePalette(
} }
return DD_OK; return DD_OK;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_CreatePalette( static HRESULT WINAPI Xlib_IDirectDraw2Impl_CreatePalette(
LPDIRECTDRAW2 iface,DWORD dwFlags,LPPALETTEENTRY palent,LPDIRECTDRAWPALETTE *lpddpal,LPUNKNOWN lpunk LPDIRECTDRAW2 iface,DWORD dwFlags,LPPALETTEENTRY palent,LPDIRECTDRAWPALETTE *lpddpal,LPUNKNOWN lpunk
@ -3811,8 +3815,8 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_CreatePalette(
return DD_OK; return DD_OK;
} }
static HRESULT WINAPI DGA_IDirectDraw2Impl_RestoreDisplayMode(LPDIRECTDRAW2 iface) {
#ifdef HAVE_LIBXXF86DGA #ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_RestoreDisplayMode(LPDIRECTDRAW2 iface) {
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
TRACE(ddraw, "(%p)->()\n",This); TRACE(ddraw, "(%p)->()\n",This);
Sleep(1000); Sleep(1000);
@ -3821,10 +3825,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_RestoreDisplayMode(LPDIRECTDRAW2 ifac
EXC_InitHandlers(); EXC_InitHandlers();
#endif #endif
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_RestoreDisplayMode(LPDIRECTDRAW2 iface) { static HRESULT WINAPI Xlib_IDirectDraw2Impl_RestoreDisplayMode(LPDIRECTDRAW2 iface) {
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
@ -3848,11 +3850,11 @@ static ULONG WINAPI IDirectDraw2Impl_AddRef(LPDIRECTDRAW2 iface) {
return ++(This->ref); return ++(This->ref);
} }
#ifdef HAVE_LIBXXF86DGA
static ULONG WINAPI DGA_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) { static ULONG WINAPI DGA_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) {
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
TRACE( ddraw, "(%p)->() decrementing from %lu.\n", This, This->ref ); TRACE( ddraw, "(%p)->() decrementing from %lu.\n", This, This->ref );
#ifdef HAVE_LIBXXF86DGA
if (!--(This->ref)) { if (!--(This->ref)) {
TSXF86DGADirectVideo(display,DefaultScreen(display),0); TSXF86DGADirectVideo(display,DefaultScreen(display),0);
if (This->d.window && (This->d.mainWindow != This->d.window)) if (This->d.window && (This->d.mainWindow != This->d.window))
@ -3876,9 +3878,9 @@ static ULONG WINAPI DGA_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) {
HeapFree(GetProcessHeap(),0,This); HeapFree(GetProcessHeap(),0,This);
return 0; return 0;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
return This->ref; return This->ref;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static ULONG WINAPI Xlib_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) { static ULONG WINAPI Xlib_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) {
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
@ -3894,6 +3896,7 @@ static ULONG WINAPI Xlib_IDirectDraw2Impl_Release(LPDIRECTDRAW2 iface) {
return This->ref; return This->ref;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_QueryInterface( static HRESULT WINAPI DGA_IDirectDraw2Impl_QueryInterface(
LPDIRECTDRAW2 iface,REFIID refiid,LPVOID *obj LPDIRECTDRAW2 iface,REFIID refiid,LPVOID *obj
) { ) {
@ -3968,6 +3971,7 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_QueryInterface(
WARN(ddraw,"(%p):interface for IID %s _NOT_ found!\n",This,xrefiid); WARN(ddraw,"(%p):interface for IID %s _NOT_ found!\n",This,xrefiid);
return OLE_E_ENUM_NOMORE; return OLE_E_ENUM_NOMORE;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_QueryInterface( static HRESULT WINAPI Xlib_IDirectDraw2Impl_QueryInterface(
LPDIRECTDRAW2 iface,REFIID refiid,LPVOID *obj LPDIRECTDRAW2 iface,REFIID refiid,LPVOID *obj
@ -4053,6 +4057,7 @@ static HRESULT WINAPI IDirectDraw2Impl_GetVerticalBlankStatus(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_EnumDisplayModes( static HRESULT WINAPI DGA_IDirectDraw2Impl_EnumDisplayModes(
LPDIRECTDRAW2 iface,DWORD dwFlags,LPDDSURFACEDESC lpddsfd,LPVOID context,LPDDENUMMODESCALLBACK modescb LPDIRECTDRAW2 iface,DWORD dwFlags,LPDDSURFACEDESC lpddsfd,LPVOID context,LPDDENUMMODESCALLBACK modescb
) { ) {
@ -4137,6 +4142,7 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_EnumDisplayModes(
} }
return DD_OK; return DD_OK;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes( static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes(
LPDIRECTDRAW2 iface,DWORD dwFlags,LPDDSURFACEDESC lpddsfd,LPVOID context,LPDDENUMMODESCALLBACK modescb LPDIRECTDRAW2 iface,DWORD dwFlags,LPDDSURFACEDESC lpddsfd,LPVOID context,LPDDENUMMODESCALLBACK modescb
@ -4266,10 +4272,10 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_EnumDisplayModes(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_GetDisplayMode( static HRESULT WINAPI DGA_IDirectDraw2Impl_GetDisplayMode(
LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsfd LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsfd
) { ) {
#ifdef HAVE_LIBXXF86DGA
ICOM_THIS(IDirectDraw2Impl,iface); ICOM_THIS(IDirectDraw2Impl,iface);
TRACE(ddraw,"(%p)->(%p)\n",This,lpddsfd); TRACE(ddraw,"(%p)->(%p)\n",This,lpddsfd);
lpddsfd->dwFlags = DDSD_HEIGHT|DDSD_WIDTH|DDSD_PITCH|DDSD_BACKBUFFERCOUNT|DDSD_PIXELFORMAT|DDSD_CAPS; lpddsfd->dwFlags = DDSD_HEIGHT|DDSD_WIDTH|DDSD_PITCH|DDSD_BACKBUFFERCOUNT|DDSD_PIXELFORMAT|DDSD_CAPS;
@ -4281,10 +4287,8 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_GetDisplayMode(
lpddsfd->ddsCaps.dwCaps = DDSCAPS_PALETTE; lpddsfd->ddsCaps.dwCaps = DDSCAPS_PALETTE;
lpddsfd->ddpfPixelFormat = This->d.directdraw_pixelformat; lpddsfd->ddpfPixelFormat = This->d.directdraw_pixelformat;
return DD_OK; return DD_OK;
#else /* defined(HAVE_LIBXXF86DGA) */
return E_UNEXPECTED;
#endif /* defined(HAVE_LIBXXF86DGA) */
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetDisplayMode( static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetDisplayMode(
LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsfd LPDIRECTDRAW2 iface,LPDDSURFACEDESC lpddsfd
@ -4367,6 +4371,8 @@ static HRESULT WINAPI IDirectDraw2Impl_Initialize(LPDIRECTDRAW2 iface,
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
/* Note: Hack so we can reuse the old functions without compiler warnings */ /* Note: Hack so we can reuse the old functions without compiler warnings */
#if !defined(__STRICT_ANSI__) && defined(__GNUC__) #if !defined(__STRICT_ANSI__) && defined(__GNUC__)
# define XCAST(fun) (typeof(dga_ddvt.fn##fun)) # define XCAST(fun) (typeof(dga_ddvt.fn##fun))
@ -4402,6 +4408,17 @@ static ICOM_VTABLE(IDirectDraw) dga_ddvt =
XCAST(WaitForVerticalBlank)IDirectDraw2Impl_WaitForVerticalBlank, XCAST(WaitForVerticalBlank)IDirectDraw2Impl_WaitForVerticalBlank,
}; };
#undef XCAST
#endif /* defined(HAVE_LIBXXF86DGA) */
/* Note: Hack so we can reuse the old functions without compiler warnings */
#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
# define XCAST(fun) (typeof(xlib_ddvt.fn##fun))
#else
# define XCAST(fun) (void *)
#endif
static ICOM_VTABLE(IDirectDraw) xlib_ddvt = static ICOM_VTABLE(IDirectDraw) xlib_ddvt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@ -4438,11 +4455,13 @@ static ICOM_VTABLE(IDirectDraw) xlib_ddvt =
*/ */
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_SetDisplayMode( static HRESULT WINAPI DGA_IDirectDraw2Impl_SetDisplayMode(
LPDIRECTDRAW2 iface,DWORD width,DWORD height,DWORD depth,DWORD xx,DWORD yy LPDIRECTDRAW2 iface,DWORD width,DWORD height,DWORD depth,DWORD xx,DWORD yy
) { ) {
return DGA_IDirectDrawImpl_SetDisplayMode((LPDIRECTDRAW)iface,width,height,depth); return DGA_IDirectDrawImpl_SetDisplayMode((LPDIRECTDRAW)iface,width,height,depth);
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_SetDisplayMode( static HRESULT WINAPI Xlib_IDirectDraw2Impl_SetDisplayMode(
LPDIRECTDRAW2 iface,DWORD width,DWORD height,DWORD depth,DWORD xx,DWORD yy LPDIRECTDRAW2 iface,DWORD width,DWORD height,DWORD depth,DWORD xx,DWORD yy
@ -4450,6 +4469,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_SetDisplayMode(
return Xlib_IDirectDrawImpl_SetDisplayMode((LPDIRECTDRAW)iface,width,height,depth); return Xlib_IDirectDrawImpl_SetDisplayMode((LPDIRECTDRAW)iface,width,height,depth);
} }
#ifdef HAVE_LIBXXF86DGA
static HRESULT WINAPI DGA_IDirectDraw2Impl_GetAvailableVidMem( static HRESULT WINAPI DGA_IDirectDraw2Impl_GetAvailableVidMem(
LPDIRECTDRAW2 iface,LPDDSCAPS ddscaps,LPDWORD total,LPDWORD free LPDIRECTDRAW2 iface,LPDDSCAPS ddscaps,LPDWORD total,LPDWORD free
) { ) {
@ -4461,6 +4481,7 @@ static HRESULT WINAPI DGA_IDirectDraw2Impl_GetAvailableVidMem(
if (free) *free = This->e.dga.fb_memsize * 1024; if (free) *free = This->e.dga.fb_memsize * 1024;
return DD_OK; return DD_OK;
} }
#endif /* defined(HAVE_LIBXXF86DGA) */
static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetAvailableVidMem( static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetAvailableVidMem(
LPDIRECTDRAW2 iface,LPDDSCAPS ddscaps,LPDWORD total,LPDWORD free LPDIRECTDRAW2 iface,LPDDSCAPS ddscaps,LPDWORD total,LPDWORD free
@ -4474,6 +4495,7 @@ static HRESULT WINAPI Xlib_IDirectDraw2Impl_GetAvailableVidMem(
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
static ICOM_VTABLE(IDirectDraw2) dga_dd2vt = static ICOM_VTABLE(IDirectDraw2) dga_dd2vt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@ -4502,6 +4524,7 @@ static ICOM_VTABLE(IDirectDraw2) dga_dd2vt =
IDirectDraw2Impl_WaitForVerticalBlank, IDirectDraw2Impl_WaitForVerticalBlank,
DGA_IDirectDraw2Impl_GetAvailableVidMem DGA_IDirectDraw2Impl_GetAvailableVidMem
}; };
#endif /* defined(HAVE_LIBXXF86DGA) */
static ICOM_VTABLE(IDirectDraw2) xlib_dd2vt = static ICOM_VTABLE(IDirectDraw2) xlib_dd2vt =
{ {
@ -4569,13 +4592,14 @@ static HRESULT WINAPI IDirectDraw4Impl_GetDeviceIdentifier(LPDIRECTDRAW4 iface,
return DD_OK; return DD_OK;
} }
#ifdef HAVE_LIBXXF86DGA
#if !defined(__STRICT_ANSI__) && defined(__GNUC__) #if !defined(__STRICT_ANSI__) && defined(__GNUC__)
# define XCAST(fun) (typeof(dga_dd4vt.fn##fun)) # define XCAST(fun) (typeof(dga_dd4vt.fn##fun))
#else #else
# define XCAST(fun) (void*) # define XCAST(fun) (void*)
#endif #endif
static ICOM_VTABLE(IDirectDraw4) dga_dd4vt = static ICOM_VTABLE(IDirectDraw4) dga_dd4vt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
@ -4609,6 +4633,16 @@ static ICOM_VTABLE(IDirectDraw4) dga_dd4vt =
IDirectDraw4Impl_GetDeviceIdentifier IDirectDraw4Impl_GetDeviceIdentifier
}; };
#undef XCAST
#endif /* defined(HAVE_LIBXXF86DGA) */
#if !defined(__STRICT_ANSI__) && defined(__GNUC__)
# define XCAST(fun) (typeof(xlib_dd4vt.fn##fun))
#else
# define XCAST(fun) (void*)
#endif
static ICOM_VTABLE(IDirectDraw4) xlib_dd4vt = static ICOM_VTABLE(IDirectDraw4) xlib_dd4vt =
{ {
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE

View file

@ -7,6 +7,7 @@
#ifndef __WINE_ANIMATE_H #ifndef __WINE_ANIMATE_H
#define __WINE_ANIMATE_H #define __WINE_ANIMATE_H
#include "windef.h"
typedef struct tagANIMATE_INFO typedef struct tagANIMATE_INFO
{ {

View file

@ -115,7 +115,6 @@ struct ASPI_DEVICE_INFO {
}; };
typedef struct ASPI_DEVICE_INFO ASPI_DEVICE_INFO; typedef struct ASPI_DEVICE_INFO ASPI_DEVICE_INFO;
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
#include "poppack.h" #include "poppack.h"

View file

@ -5,6 +5,10 @@
#ifndef __WINE_COMBO_H #ifndef __WINE_COMBO_H
#define __WINE_COMBO_H #define __WINE_COMBO_H
#include "windef.h"
struct tagWND;
#define ID_CB_LISTBOX 1000 #define ID_CB_LISTBOX 1000
#define ID_CB_EDIT 1001 #define ID_CB_EDIT 1001
@ -28,7 +32,7 @@
typedef struct typedef struct
{ {
WND* self; struct tagWND *self;
HWND owner; HWND owner;
UINT dwStyle; UINT dwStyle;
HWND hWndEdit; HWND hWndEdit;
@ -54,8 +58,10 @@ typedef struct
#define CB_HASSTRINGS( lphc ) ((lphc)->dwStyle & CBS_HASSTRINGS) #define CB_HASSTRINGS( lphc ) ((lphc)->dwStyle & CBS_HASSTRINGS)
#define CB_HWND( lphc ) ((lphc)->self->hwndSelf) #define CB_HWND( lphc ) ((lphc)->self->hwndSelf)
LRESULT WINAPI ComboWndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
BOOL COMBO_FlipListbox( LPHEADCOMBO, BOOL ); BOOL COMBO_FlipListbox( LPHEADCOMBO, BOOL );
HWND COMBO_GetLBWindow( WND* ); HWND COMBO_GetLBWindow( struct tagWND * );
LRESULT COMBO_Directory( LPHEADCOMBO, UINT, LPSTR, BOOL ); LRESULT COMBO_Directory( LPHEADCOMBO, UINT, LPSTR, BOOL );
#endif /* __WINE_COMBO_H */ #endif /* __WINE_COMBO_H */

View file

@ -7,6 +7,8 @@
#ifndef __WINE_COMBOEX_H #ifndef __WINE_COMBOEX_H
#define __WINE_COMBOEX_H #define __WINE_COMBOEX_H
#include "commctrl.h"
#include "windef.h"
typedef struct tagCOMBOEX_INFO typedef struct tagCOMBOEX_INFO
{ {

View file

@ -591,6 +591,7 @@ BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol); BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
#define ChooseColor WINELIB_NAME_AW(ChooseColor) #define ChooseColor WINELIB_NAME_AW(ChooseColor)
DWORD WINAPI CommDlgExtendedError(void); DWORD WINAPI CommDlgExtendedError(void);
DWORD WINAPI CommDlgExtendedError16(void);
HWND16 WINAPI FindText16( SEGPTR find); HWND16 WINAPI FindText16( SEGPTR find);
HWND WINAPI FindTextA(LPFINDREPLACEA lpFind); HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
HWND WINAPI FindTextW(LPFINDREPLACEW lpFind); HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
@ -641,8 +642,11 @@ LRESULT WINAPI FormatCharDlgProc16(HWND16,UINT16,WPARAM16,LPARAM);
LRESULT WINAPI FormatCharDlgProcA(HWND,UINT,WPARAM,LPARAM); LRESULT WINAPI FormatCharDlgProcA(HWND,UINT,WPARAM,LPARAM);
LRESULT WINAPI FormatCharDlgProcW(HWND,UINT,WPARAM,LPARAM); LRESULT WINAPI FormatCharDlgProcW(HWND,UINT,WPARAM,LPARAM);
#define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc) #define FormatCharDlgProc WINELIB_NAME_AW(FormatCharDlgProc)
INT16 WINAPI FontFamilyEnumProc16( SEGPTR logfont, SEGPTR metrics, UINT16 nFontType, LPARAM lParam);
INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics, UINT16 nFontType, LPARAM lParam);
void COMDLG32_SetCommDlgExtendedError(DWORD err); BOOL WINAPI COMMDLG_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD HeapSize, DWORD res1, WORD res2);
BOOL WINAPI COMDLG32_DllEntryPoint(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved);
#include "poppack.h" #include "poppack.h"

View file

@ -70,7 +70,7 @@ extern CONSOLE_device driver; /* Global driver struct */
/* Generic defines */ /* Generic defines */
int CONSOLE_Init(char *drivers); int CONSOLE_Init(char *drivers);
void CONSOLE_Close(); void CONSOLE_Close(void);
void CONSOLE_Write(char out, int fg_color, int bg_color, int attribute); void CONSOLE_Write(char out, int fg_color, int bg_color, int attribute);
void CONSOLE_MoveCursor(char row, char col); void CONSOLE_MoveCursor(char row, char col);
void CONSOLE_ClearWindow(char, char, char, char, int, int); void CONSOLE_ClearWindow(char, char, char, char, int, int);

View file

@ -1,6 +1,8 @@
#ifndef __WINE_CRTDLL_H #ifndef __WINE_CRTDLL_H
#define __WINE_CRTDLL_H #define __WINE_CRTDLL_H
#include "windef.h"
#define CRTDLL_LC_ALL 0 #define CRTDLL_LC_ALL 0
#define CRTDLL_LC_COLLATE 1 #define CRTDLL_LC_COLLATE 1
#define CRTDLL_LC_CTYPE 2 #define CRTDLL_LC_CTYPE 2

View file

@ -7,6 +7,8 @@
#ifndef __WINE_DATETIME_H #ifndef __WINE_DATETIME_H
#define __WINE_DATETIME_H #define __WINE_DATETIME_H
#include "windef.h"
typedef struct tagDATETIME_INFO typedef struct tagDATETIME_INFO
{ {
DWORD dwDummy; /* just to keep the compiler happy ;-) */ DWORD dwDummy; /* just to keep the compiler happy ;-) */

View file

@ -30,7 +30,7 @@ typedef struct tagDESKTOP_DRIVER {
extern DESKTOP_DRIVER *DESKTOP_Driver; extern DESKTOP_DRIVER *DESKTOP_Driver;
extern BOOL DESKTOP_IsSingleWindow(); extern BOOL DESKTOP_IsSingleWindow(void);
extern int DESKTOP_GetScreenWidth(void); extern int DESKTOP_GetScreenWidth(void);
extern int DESKTOP_GetScreenHeight(void); extern int DESKTOP_GetScreenHeight(void);
extern int DESKTOP_GetScreenDepth(void); extern int DESKTOP_GetScreenDepth(void);

View file

@ -1,5 +1,8 @@
#ifndef __WINE_DEVICE_H #ifndef __WINE_DEVICE_H
#define __WINE_DEVICE_H #define __WINE_DEVICE_H
#include "winbase.h"
extern HANDLE DEVICE_Open( LPCSTR filename, DWORD access, extern HANDLE DEVICE_Open( LPCSTR filename, DWORD access,
LPSECURITY_ATTRIBUTES sa ); LPSECURITY_ATTRIBUTES sa );
#endif #endif

View file

@ -832,5 +832,10 @@ ICOM_DEFINE(IDirectInputA,IUnknown)
#define IDirectInputA_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b) #define IDirectInputA_Initialize(p,a,b) ICOM_CALL2(Initialize,p,a,b)
#endif #endif
/* Export functions */
HRESULT WINAPI DirectInputCreateA(HINSTANCE,DWORD,LPDIRECTINPUTA *,LPUNKNOWN);
HRESULT WINAPI DirectInputCreateW(HINSTANCE,DWORD,LPDIRECTINPUTA *,LPUNKNOWN);
#define DirectInputCreate WINELIB_NAME_AW(DirectInputCreate)
#endif /* __WINE_DINPUT_H */ #endif /* __WINE_DINPUT_H */

View file

@ -22,7 +22,7 @@ typedef struct tagCURSORINFO
WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo); WORD WINAPI DISPLAY_Inquire(LPCURSORINFO lpCursorInfo);
VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor ); VOID WINAPI DISPLAY_SetCursor( struct tagCURSORICONINFO *lpCursor );
VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY ); VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY );
VOID WINAPI DISPLAY_CheckCursor(); VOID WINAPI DISPLAY_CheckCursor( void );
VOID WINAPI UserRepaintDisable16( BOOL16 bDisable ); VOID WINAPI UserRepaintDisable16( BOOL16 bDisable );
#endif /* __WINE_DISPLAY_H */ #endif /* __WINE_DISPLAY_H */

View file

@ -1,6 +1,9 @@
#ifndef __WINE_ELFDLL_H #ifndef __WINE_ELFDLL_H
#define __WINE_ELFDLL_H #define __WINE_ELFDLL_H
#include "module.h"
#include "windef.h"
WINE_MODREF *ELFDLL_LoadLibraryExA(LPCSTR libname, DWORD flags, DWORD *err); WINE_MODREF *ELFDLL_LoadLibraryExA(LPCSTR libname, DWORD flags, DWORD *err);
HINSTANCE16 ELFDLL_LoadModule16(LPCSTR libname, BOOL implicit); HINSTANCE16 ELFDLL_LoadModule16(LPCSTR libname, BOOL implicit);
void ELFDLL_UnloadLibrary(WINE_MODREF *wm); void ELFDLL_UnloadLibrary(WINE_MODREF *wm);

View file

@ -8,6 +8,8 @@
#ifndef __WINE_FLATSB_H #ifndef __WINE_FLATSB_H
#define __WINE_FLATSB_H #define __WINE_FLATSB_H
#include "windef.h"
typedef struct tagFLATSB_INFO typedef struct tagFLATSB_INFO
{ {
DWORD dwDummy; /* just to keep the compiler happy ;-) */ DWORD dwDummy; /* just to keep the compiler happy ;-) */

View file

@ -7,6 +7,10 @@
#ifndef __WINE_FLATTHUNK_H #ifndef __WINE_FLATTHUNK_H
#define __WINE_FLATTHUNK_H #define __WINE_FLATTHUNK_H
#include "windef.h"
struct _PDB;
struct ThunkDataCommon struct ThunkDataCommon
{ {
char magic[4]; /* 00 */ char magic[4]; /* 00 */
@ -96,7 +100,7 @@ struct ThunkDataSL
struct SLTargetDB struct SLTargetDB
{ {
struct SLTargetDB * next; struct SLTargetDB * next;
PDB * process; struct _PDB * process;
DWORD * targetTable; DWORD * targetTable;
}; };

View file

@ -8,6 +8,9 @@
#ifndef __WINE_HEADER_H_ #ifndef __WINE_HEADER_H_
#define __WINE_HEADER_H_ #define __WINE_HEADER_H_
#include "commctrl.h"
#include "windef.h"
typedef struct typedef struct
{ {
INT cxy; INT cxy;

View file

@ -7,6 +7,8 @@
#ifndef __WINE_HOTKEY_H #ifndef __WINE_HOTKEY_H
#define __WINE_HOTKEY_H #define __WINE_HOTKEY_H
#include "windef.h"
typedef struct tagHOTKEY_INFO typedef struct tagHOTKEY_INFO
{ {
HFONT hFont; HFONT hFont;

View file

@ -7,6 +7,8 @@
#ifndef __WINE_INPUT_H #ifndef __WINE_INPUT_H
#define __WINE_INPUT_H #define __WINE_INPUT_H
#include "windef.h"
extern BOOL MouseButtonsStates[3]; extern BOOL MouseButtonsStates[3];
extern BOOL AsyncMouseButtonsStates[3]; extern BOOL AsyncMouseButtonsStates[3];
extern BYTE InputKeyStateTable[256]; extern BYTE InputKeyStateTable[256];

View file

@ -8,6 +8,8 @@
#ifndef __WINE_IPADDRESS_H #ifndef __WINE_IPADDRESS_H
#define __WINE_IPADDRESS_H #define __WINE_IPADDRESS_H
#include "windef.h"
typedef struct tagIPADDRESS_INFO typedef struct tagIPADDRESS_INFO
{ {
BYTE LowerLimit[4]; BYTE LowerLimit[4];

View file

@ -7,6 +7,10 @@
#ifndef __WINE_LISTVIEW_H #ifndef __WINE_LISTVIEW_H
#define __WINE_LISTVIEW_H #define __WINE_LISTVIEW_H
#include "commctrl.h"
#include "windef.h"
#include "wingdi.h"
typedef struct tagLISTVIEW_SUBITEM typedef struct tagLISTVIEW_SUBITEM
{ {
LPSTR pszText; LPSTR pszText;

View file

@ -7,6 +7,8 @@
#ifndef __WINE_LOADORDER_H #ifndef __WINE_LOADORDER_H
#define __WINE_LOADORDER_H #define __WINE_LOADORDER_H
#include "windef.h"
#define MODULE_LOADORDER_INVALID 0 /* Must be 0 */ #define MODULE_LOADORDER_INVALID 0 /* Must be 0 */
#define MODULE_LOADORDER_DLL 1 /* Native DLLs */ #define MODULE_LOADORDER_DLL 1 /* Native DLLs */
#define MODULE_LOADORDER_ELFDLL 2 /* Elf-dlls */ #define MODULE_LOADORDER_ELFDLL 2 /* Elf-dlls */

View file

@ -5,6 +5,8 @@
#ifndef __WINE_MAIN_H #ifndef __WINE_MAIN_H
#define __WINE_MAIN_H #define __WINE_MAIN_H
#include "windef.h"
extern void MAIN_Usage(char*); extern void MAIN_Usage(char*);
extern BOOL MAIN_MainInit(void); extern BOOL MAIN_MainInit(void);
extern BOOL MAIN_WineInit( int *argc, char *argv[] ); extern BOOL MAIN_WineInit( int *argc, char *argv[] );

View file

@ -7,6 +7,9 @@
#include "win.h" #include "win.h"
LRESULT WINAPI PopupMenuWndProc( HWND hwnd, UINT message, WPARAM wParam,
LPARAM lParam );
extern BOOL MENU_Init(void); extern BOOL MENU_Init(void);
extern HMENU MENU_GetSysMenu(HWND hWndOwner, HMENU hSysPopup); extern HMENU MENU_GetSysMenu(HWND hWndOwner, HMENU hSysPopup);
extern UINT MENU_GetMenuBarHeight( HWND hwnd, UINT menubarWidth, extern UINT MENU_GetMenuBarHeight( HWND hwnd, UINT menubarWidth,

View file

@ -7,6 +7,8 @@
#ifndef __WINE_MONTHCAL_H #ifndef __WINE_MONTHCAL_H
#define __WINE_MONTHCAL_H #define __WINE_MONTHCAL_H
#include "windef.h"
typedef struct tagMONTHCAL_INFO typedef struct tagMONTHCAL_INFO
{ {
DWORD dwDummy; /* just to keep the compiler happy ;-) */ DWORD dwDummy; /* just to keep the compiler happy ;-) */

View file

@ -7,6 +7,8 @@
#ifndef __WINE_NATIVEFONT_H #ifndef __WINE_NATIVEFONT_H
#define __WINE_NATIVEFONT_H #define __WINE_NATIVEFONT_H
#include "windef.h"
typedef struct tagNATIVEFONT_INFO typedef struct tagNATIVEFONT_INFO
{ {
DWORD dwDummy; /* just to keep the compiler happy ;-) */ DWORD dwDummy; /* just to keep the compiler happy ;-) */

View file

@ -7,6 +7,8 @@
#ifndef __WINE_PAGER_H #ifndef __WINE_PAGER_H
#define __WINE_PAGER_H #define __WINE_PAGER_H
#include "windef.h"
#include "wingdi.h"
typedef struct tagPAGER_INFO typedef struct tagPAGER_INFO
{ {

View file

@ -8,6 +8,7 @@
#define __WINE_PROGRESS_H #define __WINE_PROGRESS_H
#include "windef.h" #include "windef.h"
#include "wingdi.h"
typedef struct typedef struct
{ {

View file

@ -5,6 +5,8 @@
#ifndef __WINE_PSAPI_H #ifndef __WINE_PSAPI_H
#define __WINE_PSAPI_H #define __WINE_PSAPI_H
#include "windef.h"
typedef struct _MODULEINFO { typedef struct _MODULEINFO {
LPVOID lpBaseOfDll; LPVOID lpBaseOfDll;
DWORD SizeOfImage; DWORD SizeOfImage;

View file

@ -7,6 +7,10 @@
#ifndef __WINE_REBAR_H #ifndef __WINE_REBAR_H
#define __WINE_REBAR_H #define __WINE_REBAR_H
#include "commctrl.h"
#include "windef.h"
#include "wingdi.h"
typedef struct tagREBAR_BAND typedef struct tagREBAR_BAND
{ {
UINT fStyle; UINT fStyle;

View file

@ -30,7 +30,7 @@ typedef enum
{ {
SYSRES_MENU_SYSMENU, SYSRES_MENU_SYSMENU,
SYSRES_MENU_EDITMENU, SYSRES_MENU_EDITMENU,
SYSRES_DIALOG_MSGBOX, SYSRES_DIALOG_MSGBOX
} SYSTEM_RESOURCE; } SYSTEM_RESOURCE;
extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res); extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);

View file

@ -10,6 +10,8 @@
#include "windef.h" #include "windef.h"
struct tagWND;
typedef struct typedef struct
{ {
INT CurVal; /* Current scroll-bar value */ INT CurVal; /* Current scroll-bar value */
@ -21,9 +23,13 @@ typedef struct
extern LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT uMsg, extern LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT uMsg,
WPARAM wParam, LPARAM lParam ); WPARAM wParam, LPARAM lParam );
extern void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar, extern void SCROLL_DrawScrollBar( HWND hwnd, HDC hdc, INT nBar,
BOOL arrows, BOOL interior ); BOOL arrows, BOOL interior );
extern void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, extern void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar,
UINT msg, POINT pt ); UINT msg, POINT pt );
extern INT SCROLL_SetNCSbState( struct tagWND *wndPtr, int vMin, int vMax, int vPos,
int hMin, int hMax, int hPos );
#endif /* __WINE_SCROLL_H */ #endif /* __WINE_SCROLL_H */

View file

@ -88,7 +88,10 @@ typedef struct sigcontext SIGCONTEXT;
#ifdef _SCO_DS #ifdef _SCO_DS
#include <sys/regset.h> #include <sys/regset.h>
#endif #endif
/* Solaris kludge */
#undef ERR
#include <sys/ucontext.h> #include <sys/ucontext.h>
#undef ERR
typedef struct ucontext SIGCONTEXT; typedef struct ucontext SIGCONTEXT;
#define __HAVE_SIGCONTEXT #define __HAVE_SIGCONTEXT

View file

@ -7,6 +7,9 @@
#ifndef __WINE_STATUS_H #ifndef __WINE_STATUS_H
#define __WINE_STATUS_H #define __WINE_STATUS_H
#include "windef.h"
#include "wingdi.h"
typedef struct typedef struct
{ {
INT x; INT x;

View file

@ -20,10 +20,10 @@ extern WORD SYSLEVEL_Win16CurrentTeb;
extern WORD SYSLEVEL_EmergencyTeb; extern WORD SYSLEVEL_EmergencyTeb;
void SYSLEVEL_Init(void); void SYSLEVEL_Init(void);
VOID WINAPI SYSLEVEL_EnterWin16Lock(VOID); VOID WINAPI SYSLEVEL_EnterWin16Lock(void);
VOID WINAPI SYSLEVEL_LeaveWin16Lock(VOID); VOID WINAPI SYSLEVEL_LeaveWin16Lock(void);
VOID SYSLEVEL_ReleaseWin16Lock(VOID); VOID SYSLEVEL_ReleaseWin16Lock(void);
VOID SYSLEVEL_RestoreWin16Lock(VOID); VOID SYSLEVEL_RestoreWin16Lock(void);
VOID SYSLEVEL_CheckNotLevel( INT level ); VOID SYSLEVEL_CheckNotLevel( INT level );
VOID WINAPI GetpWin16Lock(SYSLEVEL **lock); VOID WINAPI GetpWin16Lock(SYSLEVEL **lock);

View file

@ -7,6 +7,9 @@
#ifndef __WINE_TAB_H #ifndef __WINE_TAB_H
#define __WINE_TAB_H #define __WINE_TAB_H
#include "commctrl.h"
#include "windef.h"
typedef struct tagTAB_ITEM typedef struct tagTAB_ITEM
{ {
UINT mask; UINT mask;

View file

@ -23,7 +23,7 @@ extern "C" {
#define TH32CS_INHERIT 0x80000000 #define TH32CS_INHERIT 0x80000000
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { } /* extern "C" */
#endif #endif
#endif /* __WINE_TLHELP32_H */ #endif /* __WINE_TLHELP32_H */

View file

@ -7,6 +7,8 @@
#ifndef __WINE_TOOLBAR_H #ifndef __WINE_TOOLBAR_H
#define __WINE_TOOLBAR_H #define __WINE_TOOLBAR_H
#include "commctrl.h"
#include "windef.h"
typedef struct tagTBUTTON_INFO typedef struct tagTBUTTON_INFO
{ {

View file

@ -7,6 +7,9 @@
#ifndef __WINE_TOOLTIPS_H #ifndef __WINE_TOOLTIPS_H
#define __WINE_TOOLTIPS_H #define __WINE_TOOLTIPS_H
#include "commctrl.h"
#include "windef.h"
#include "wingdi.h"
typedef struct tagTT_SUBCLASS_INFO typedef struct tagTT_SUBCLASS_INFO
{ {

View file

@ -7,6 +7,9 @@
#ifndef __WINE_TRACKBAR_H #ifndef __WINE_TRACKBAR_H
#define __WINE_TRACKBAR_H #define __WINE_TRACKBAR_H
#include "windef.h"
#include "wingdi.h"
typedef struct tagTRACKBAR_INFO typedef struct tagTRACKBAR_INFO
{ {
INT nRangeMin; INT nRangeMin;

View file

@ -165,9 +165,9 @@ typedef struct
/* Window functions */ /* Window functions */
extern void WIN_Init( void ); extern void WIN_Init( void );
extern void WIN_LockWnds(); extern void WIN_LockWnds( void );
extern void WIN_UnlockWnds(); extern void WIN_UnlockWnds( void );
extern int WIN_SuspendWndsLock(); extern int WIN_SuspendWndsLock( void );
extern void WIN_RestoreWndsLock(int ipreviousLock); extern void WIN_RestoreWndsLock(int ipreviousLock);
extern WND* WIN_FindWndPtr( HWND hwnd ); extern WND* WIN_FindWndPtr( HWND hwnd );
extern WND* WIN_LockWndPtr(WND *wndPtr); extern WND* WIN_LockWndPtr(WND *wndPtr);
@ -207,10 +207,19 @@ extern BOOL WIDGETS_Init( void );
extern BOOL WIDGETS_IsControl( WND* pWnd, BUILTIN_CLASS32 cls ); extern BOOL WIDGETS_IsControl( WND* pWnd, BUILTIN_CLASS32 cls );
/* controls/icontitle.c */ /* controls/icontitle.c */
extern LRESULT WINAPI IconTitleWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
extern HWND ICONTITLE_Create( WND* ); extern HWND ICONTITLE_Create( WND* );
extern BOOL ICONTITLE_Init( void ); extern BOOL ICONTITLE_Init( void );
/* windows/focus.c */ /* windows/focus.c */
extern void FOCUS_SwitchFocus( MESSAGEQUEUE *pMsgQ, HWND , HWND ); extern void FOCUS_SwitchFocus( MESSAGEQUEUE *pMsgQ, HWND , HWND );
/* windows/edit.c */
extern LRESULT WINAPI EditWndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
/* windows/listbox.c */
extern LRESULT WINAPI ListBoxWndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
extern LRESULT WINAPI ComboLBWndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam );
#endif /* __WINE_WIN_H */ #endif /* __WINE_WIN_H */

View file

@ -1142,7 +1142,8 @@ BOOL WINAPI SetCommTimeouts(INT,LPCOMMTIMEOUTS);
BOOL WINAPI GetCommState(INT,LPDCB); BOOL WINAPI GetCommState(INT,LPDCB);
BOOL WINAPI SetCommState(INT,LPDCB); BOOL WINAPI SetCommState(INT,LPDCB);
BOOL WINAPI TransmitCommChar(INT,CHAR); BOOL WINAPI TransmitCommChar(INT,CHAR);
BOOL WINAPI SetupComm(HANDLE, DWORD, DWORD);
BOOL WINAPI GetCommProperties(HANDLE, LPDCB *);
/*DWORD WINAPI GetVersion( void );*/ /*DWORD WINAPI GetVersion( void );*/
BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*); BOOL16 WINAPI GetVersionEx16(OSVERSIONINFO16*);
@ -1158,7 +1159,6 @@ BOOL WINAPI TryEnterCriticalSection(CRITICAL_SECTION *lpCrit);
void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit); void WINAPI InitializeCriticalSection(CRITICAL_SECTION *lpCrit);
void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit); void WINAPI LeaveCriticalSection(CRITICAL_SECTION *lpCrit);
void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit); void WINAPI MakeCriticalSectionGlobal(CRITICAL_SECTION *lpCrit);
HANDLE WINAPI OpenProcess(DWORD access, BOOL inherit, DWORD id);
BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD); BOOL WINAPI GetProcessWorkingSetSize(HANDLE,LPDWORD,LPDWORD);
DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR); DWORD WINAPI QueueUserAPC(PAPCFUNC,HANDLE,ULONG_PTR);
void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD); void WINAPI RaiseException(DWORD,DWORD,DWORD,const LPDWORD);
@ -1504,6 +1504,7 @@ BOOL WINAPI CreateDirectoryW(LPCWSTR,LPSECURITY_ATTRIBUTES);
BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES); BOOL WINAPI CreateDirectoryExA(LPCSTR,LPCSTR,LPSECURITY_ATTRIBUTES);
BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES); BOOL WINAPI CreateDirectoryExW(LPCWSTR,LPCWSTR,LPSECURITY_ATTRIBUTES);
#define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx) #define CreateDirectoryEx WINELIB_NAME_AW(CreateDirectoryEx)
BOOL WINAPI DefineDosDeviceA(DWORD,LPCSTR,LPCSTR);
#define DefineHandleTable(w) ((w),TRUE) #define DefineHandleTable(w) ((w),TRUE)
ATOM WINAPI DeleteAtom(ATOM); ATOM WINAPI DeleteAtom(ATOM);
BOOL WINAPI DeleteFileA(LPCSTR); BOOL WINAPI DeleteFileA(LPCSTR);

View file

@ -1,6 +1,8 @@
#ifndef __WINE_WINCRYPT_H #ifndef __WINE_WINCRYPT_H
#define __WINE_WINCRYPT_H #define __WINE_WINCRYPT_H
#include "windef.h"
/* FIXME: this whole file plus the implementation */ /* FIXME: this whole file plus the implementation */
/* some typedefs for function parameters */ /* some typedefs for function parameters */

View file

@ -32,8 +32,6 @@ typedef KANJISTRUCT *PKANJISTRUCT;
BOOL16 WINAPI CheckMenuRadioButton16(HMENU16,UINT16,UINT16,UINT16,BOOL16); BOOL16 WINAPI CheckMenuRadioButton16(HMENU16,UINT16,UINT16,UINT16,BOOL16);
BOOL WINAPI CheckMenuRadioButton(HMENU,UINT,UINT,UINT,BOOL); BOOL WINAPI CheckMenuRadioButton(HMENU,UINT,UINT,UINT,BOOL);
WORD WINAPI WOWHandle16(HANDLE,WOW_HANDLE_TYPE); WORD WINAPI WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
BOOL16 WINAPI GetPrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
INT16 WINAPI GetPrivateProfileSection16(LPCSTR,LPSTR,UINT16,LPCSTR);
#endif /* 0 */ #endif /* 0 */

View file

@ -66,15 +66,15 @@ INT WINAPI StringFromGUID2(REFGUID id, LPOLESTR str, INT cmax);
BOOL16 WINAPI IsEqualGUID16(GUID* g1,GUID* g2); BOOL16 WINAPI IsEqualGUID16(GUID* g1,GUID* g2);
BOOL WINAPI IsEqualGUID32(REFGUID rguid1,REFGUID rguid2); BOOL WINAPI IsEqualGUID32(REFGUID rguid1,REFGUID rguid2);
/*#define IsEqualGUID WINELIB_NAME(IsEqualGUID)*/ /*#define IsEqualGUID WINELIB_NAME(IsEqualGUID)*/
#ifdef __cplusplus #if defined(__cplusplus) && !defined(CINTERFACE)
#define IsEqualGUID(rguid1, rguid2) (!memcmp(&(rguid1), &(rguid2), sizeof(GUID))) #define IsEqualGUID(rguid1, rguid2) (!memcmp(&(rguid1), &(rguid2), sizeof(GUID)))
#else #else /* defined(__cplusplus) && !defined(CINTERFACE) */
#define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID))) #define IsEqualGUID(rguid1, rguid2) (!memcmp(rguid1, rguid2, sizeof(GUID)))
#endif /* cplusplus */ #endif /* defined(__cplusplus) && !defined(CINTERFACE) */
#define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2) #define IsEqualIID(riid1, riid2) IsEqualGUID(riid1, riid2)
#define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2) #define IsEqualCLSID(rclsid1, rclsid2) IsEqualGUID(rclsid1, rclsid2)
#ifdef __cplusplus #if defined(__cplusplus) && !defined(CINTERFACE)
inline BOOL operator==(const GUID& guidOne, const GUID& guidOther) inline BOOL operator==(const GUID& guidOne, const GUID& guidOther)
{ {
return !memcmp(&guidOne,&guidOther,sizeof(GUID)); return !memcmp(&guidOne,&guidOther,sizeof(GUID));

View file

@ -61,11 +61,11 @@ typedef struct ISupportErrorInfo ISupportErrorInfo,*LPSUPPORTERRORINFO;
/***************************************************************************** /*****************************************************************************
* Automation data types * Automation data types
*/ */
#ifdef __cplusplus #if defined(__cplusplus) && !defined(NONAMELESSUNION)
#define DUMMY_UNION_NAME #define DUMMYUNIONNAME
#else #else /* defined(__cplusplus) && !defined(NONAMELESSUNION) */
#define DUMMY_UNION_NAME u #define DUMMYUNIONNAME u
#endif #endif /* defined(__cplusplus) && !defined(NONAMELESSUNION) */
/***************************************************************** /*****************************************************************
* SafeArray defines and structs * SafeArray defines and structs
@ -132,7 +132,7 @@ struct tagVARIANT {
WORD wReserved1; WORD wReserved1;
WORD wReserved2; WORD wReserved2;
WORD wReserved3; WORD wReserved3;
union /*DUMMY_UNION_NAME*/ union /* DUMMYUNIONNAME */
{ {
/* By value. */ /* By value. */
CHAR cVal; CHAR cVal;
@ -177,7 +177,7 @@ struct tagVARIANT {
IUnknown** ppunkVal; IUnknown** ppunkVal;
IDispatch** ppdispVal; IDispatch** ppdispVal;
SAFEARRAY** pparray; SAFEARRAY** pparray;
} DUMMY_UNION_NAME; } DUMMYUNIONNAME;
}; };
@ -260,7 +260,7 @@ typedef struct tagTYPEDESC
struct tagTYPEDESC *lptdesc; struct tagTYPEDESC *lptdesc;
struct tagARRAYDESC *lpadesc; struct tagARRAYDESC *lpadesc;
HREFTYPE hreftype; HREFTYPE hreftype;
} DUMMY_UNION_NAME; } DUMMYUNIONNAME;
VARTYPE vt; VARTYPE vt;
} TYPEDESC; } TYPEDESC;
@ -270,7 +270,7 @@ typedef struct tagELEMDESC
union { union {
IDLDESC idldesc; IDLDESC idldesc;
PARAMDESC paramdesc; PARAMDESC paramdesc;
} DUMMY_UNION_NAME; } DUMMYUNIONNAME;
} ELEMDESC, *LPELEMDESC; } ELEMDESC, *LPELEMDESC;
typedef enum tagTYPEKIND typedef enum tagTYPEKIND
@ -363,7 +363,7 @@ typedef struct tagVARDESC
union { union {
ULONG oInst; ULONG oInst;
VARIANT *lpvarValue; VARIANT *lpvarValue;
} DUMMY_UNION_NAME; } DUMMYUNIONNAME;
ELEMDESC elemdescVar; ELEMDESC elemdescVar;
WORD wVarFlags; WORD wVarFlags;
VARKIND varkind; VARKIND varkind;

View file

@ -102,7 +102,7 @@ WORD WINAPI SetSelectorLimit16(WORD,DWORD);
HQUEUE16 WINAPI SetTaskQueue16(HTASK16,HQUEUE16); HQUEUE16 WINAPI SetTaskQueue16(HTASK16,HQUEUE16);
VOID WINAPI SwitchStackTo16(WORD,WORD,WORD); VOID WINAPI SwitchStackTo16(WORD,WORD,WORD);
BOOL16 WINAPI WaitEvent16(HTASK16); BOOL16 WINAPI WaitEvent16(HTASK16);
VOID WINAPI WriteOutProfiles16(VOID); VOID WINAPI WriteOutProfiles16(void);
VOID WINAPI hmemcpy16(LPVOID,LPCVOID,LONG); VOID WINAPI hmemcpy16(LPVOID,LPCVOID,LONG);
#endif /* __WINE__ */ #endif /* __WINE__ */
@ -128,10 +128,14 @@ DWORD WINAPI GetFileAttributes16(LPCSTR);
DWORD WINAPI GetFreeSpace16(UINT16); DWORD WINAPI GetFreeSpace16(UINT16);
INT16 WINAPI GetModuleFileName16(HINSTANCE16,LPSTR,INT16); INT16 WINAPI GetModuleFileName16(HINSTANCE16,LPSTR,INT16);
UINT16 WINAPI GetPrivateProfileInt16(LPCSTR,LPCSTR,INT16,LPCSTR); UINT16 WINAPI GetPrivateProfileInt16(LPCSTR,LPCSTR,INT16,LPCSTR);
INT16 WINAPI GetPrivateProfileSection16(LPCSTR,LPSTR,UINT16,LPCSTR);
WORD WINAPI GetPrivateProfileSectionNames16(LPSTR,UINT16,LPCSTR); WORD WINAPI GetPrivateProfileSectionNames16(LPSTR,UINT16,LPCSTR);
INT16 WINAPI GetPrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16,LPCSTR); INT16 WINAPI GetPrivateProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16,LPCSTR);
BOOL16 WINAPI GetPrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
FARPROC16 WINAPI GetProcAddress16(HMODULE16,SEGPTR); FARPROC16 WINAPI GetProcAddress16(HMODULE16,SEGPTR);
UINT16 WINAPI GetProfileInt16(LPCSTR,LPCSTR,INT16); UINT16 WINAPI GetProfileInt16(LPCSTR,LPCSTR,INT16);
INT16 WINAPI GetProfileSection16(LPCSTR,LPSTR,UINT16);
WORD WINAPI GetProfileSectionNames16(LPSTR,WORD);
INT16 WINAPI GetProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16); INT16 WINAPI GetProfileString16(LPCSTR,LPCSTR,LPCSTR,LPSTR,UINT16);
UINT16 WINAPI GetSystemDirectory16(LPSTR,UINT16); UINT16 WINAPI GetSystemDirectory16(LPSTR,UINT16);
UINT16 WINAPI GetTempFileName16(BYTE,LPCSTR,UINT16,LPSTR); UINT16 WINAPI GetTempFileName16(BYTE,LPCSTR,UINT16,LPSTR);
@ -199,6 +203,7 @@ UINT16 WINAPI _lread16(HFILE16,LPVOID,UINT16);
UINT16 WINAPI _lwrite16(HFILE16,LPCSTR,UINT16); UINT16 WINAPI _lwrite16(HFILE16,LPCSTR,UINT16);
BOOL16 WINAPI WritePrivateProfileSection16(LPCSTR,LPCSTR,LPCSTR); BOOL16 WINAPI WritePrivateProfileSection16(LPCSTR,LPCSTR,LPCSTR);
BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR); BOOL16 WINAPI WritePrivateProfileStruct16(LPCSTR,LPCSTR,LPVOID,UINT16,LPCSTR);
BOOL16 WINAPI WriteProfileSection16(LPCSTR,LPCSTR);
DWORD WINAPI GetSelectorBase(WORD); DWORD WINAPI GetSelectorBase(WORD);
WORD WINAPI SetSelectorBase(WORD,DWORD); WORD WINAPI SetSelectorBase(WORD,DWORD);

View file

@ -750,6 +750,7 @@ INT16 WINAPI GetKeyboardLayoutName16(LPSTR);
INT16 WINAPI GetKeyState16(INT16); INT16 WINAPI GetKeyState16(INT16);
HWND16 WINAPI GetLastActivePopup16(HWND16); HWND16 WINAPI GetLastActivePopup16(HWND16);
HMENU16 WINAPI GetMenu16(HWND16); HMENU16 WINAPI GetMenu16(HWND16);
DWORD WINAPI GetMenuContextHelpId16(HMENU16);
INT16 WINAPI GetMenuItemCount16(HMENU16); INT16 WINAPI GetMenuItemCount16(HMENU16);
UINT16 WINAPI GetMenuItemID16(HMENU16,INT16); UINT16 WINAPI GetMenuItemID16(HMENU16,INT16);
BOOL16 WINAPI GetMenuItemRect16(HWND16,HMENU16,UINT16,LPRECT16); BOOL16 WINAPI GetMenuItemRect16(HWND16,HMENU16,UINT16,LPRECT16);

View file

@ -7,7 +7,15 @@
#ifndef _WINSOCKAPI_ #ifndef _WINSOCKAPI_
#define _WINSOCKAPI_ #define _WINSOCKAPI_
/* Solaris kludge */
#undef FSHIFT
#undef PAGESIZE
#undef TRANSPARENT
#include <netinet/in.h> #include <netinet/in.h>
#undef FSHIFT
#undef PAGESIZE
#undef TRANSPARENT
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>

View file

@ -2914,8 +2914,10 @@ typedef struct
#define AnsiToOemBuffA CharToOemBuffA #define AnsiToOemBuffA CharToOemBuffA
#define AnsiToOemBuffW CharToOemBuffW #define AnsiToOemBuffW CharToOemBuffW
#define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff) #define AnsiToOemBuff WINELIB_NAME_AW(AnsiToOemBuff)
WORD WINAPI CascadeWindows (HWND, UINT, const LPRECT,
UINT, const HWND *); HKL WINAPI ActivateKeyboardLayout(HKL,UINT);
LONG WINAPI BroadcastSystemMessage(DWORD,LPDWORD,UINT,WPARAM,LPARAM);
WORD WINAPI CascadeWindows(HWND, UINT, const LPRECT, UINT, const HWND *);
INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT); INT WINAPI CopyAcceleratorTableA(HACCEL,LPACCEL,INT);
INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT); INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
#define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable) #define CopyAcceleratorTable WINELIB_NAME_AW(CopyAcceleratorTable)
@ -2928,7 +2930,9 @@ INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM); BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
BOOL WINAPI ExitWindowsEx(UINT,DWORD); BOOL WINAPI ExitWindowsEx(UINT,DWORD);
BOOL WINAPI GetIconInfo(HICON,LPICONINFO); BOOL WINAPI GetIconInfo(HICON,LPICONINFO);
DWORD WINAPI GetMenuContextHelpId(HMENU); HKL WINAPI GetKeyboardLayout(DWORD);
INT WINAPI GetKeyboardLayoutList(INT,HKL *);
DWORD WINAPI GetMenuContextHelpId(HMENU);
UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT); UINT WINAPI GetMenuDefaultItem(HMENU,UINT,UINT);
BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO); BOOL WINAPI GetMenuInfo(HMENU,LPMENUINFO);
BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*); BOOL WINAPI GetMenuItemInfoA(HMENU,UINT,BOOL,MENUITEMINFOA*);
@ -2957,7 +2961,11 @@ BOOL WINAPI PaintDesktop(HDC);
BOOL WINAPI PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM); BOOL WINAPI PostThreadMessageA(DWORD, UINT, WPARAM, LPARAM);
BOOL WINAPI PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM); BOOL WINAPI PostThreadMessageW(DWORD, UINT, WPARAM, LPARAM);
#define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage) #define PostThreadMessage WINELIB_NAME_AW(PostThreadMessage)
BOOL WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
UINT WINAPI ReuseDDElParam(UINT,UINT,UINT,UINT,UINT); UINT WINAPI ReuseDDElParam(UINT,UINT,UINT,UINT,UINT);
BOOL WINAPI SendMessageCallbackA(HWND,UINT,WPARAM,LPARAM,FARPROC,DWORD);
BOOL WINAPI SendMessageCallbackW(HWND,UINT,WPARAM,LPARAM,FARPROC,DWORD);
#define SendMessageCallback WINELIB_NAME_AW(SendMessageCallback)
BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM); BOOL WINAPI SendNotifyMessageA(HWND,UINT,WPARAM,LPARAM);
BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM); BOOL WINAPI SendNotifyMessageW(HWND,UINT,WPARAM,LPARAM);
#define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage) #define SendNotifyMessage WINELIB_NAME_AW(SendNotifyMessage)
@ -2971,9 +2979,11 @@ BOOL WINAPI SetMenuItemInfoW(HMENU,UINT,BOOL,const MENUITEMINFOW*);
BOOL WINAPI SetWindowContextHelpId(HWND,DWORD); BOOL WINAPI SetWindowContextHelpId(HWND,DWORD);
WORD WINAPI TileWindows (HWND, UINT, const LPRECT, WORD WINAPI TileWindows (HWND, UINT, const LPRECT,
UINT, const HWND *); UINT, const HWND *);
INT WINAPI ToUnicode(UINT,UINT,PBYTE,LPWSTR,int,UINT);
BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND, BOOL WINAPI TrackPopupMenuEx(HMENU,UINT,INT,INT,HWND,
LPTPMPARAMS); LPTPMPARAMS);
UINT WINAPI UnpackDDElParam(UINT,UINT,UINT*,UINT*); UINT WINAPI UnpackDDElParam(UINT,UINT,UINT*,UINT*);
BOOL WINAPI UnregisterHotKey(HWND,INT);
DWORD WINAPI WaitForInputIdle(HANDLE,DWORD); DWORD WINAPI WaitForInputIdle(HANDLE,DWORD);
VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD); VOID WINAPI keybd_event(BYTE,BYTE,DWORD,DWORD);
VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD); VOID WINAPI mouse_event(DWORD,DWORD,DWORD,DWORD,DWORD);

View file

@ -1,6 +1,8 @@
#ifndef __WINE_WINVERSION_H #ifndef __WINE_WINVERSION_H
#define __WINE_WINVERSION_H #define __WINE_WINVERSION_H
#include "windef.h"
typedef enum typedef enum
{ {
WIN31, /* Windows 3.1 */ WIN31, /* Windows 3.1 */

View file

@ -5,6 +5,7 @@
#ifndef __WINE_WNET_H #ifndef __WINE_WNET_H
#define __WINE_WNET_H #define __WINE_WNET_H
#include "windef.h"
#include "winerror.h" #include "winerror.h"
#define WNDN_MKDIR 1 #define WNDN_MKDIR 1

View file

@ -599,8 +599,8 @@ void TASK_Reschedule(void)
/* Check what we need to do */ /* Check what we need to do */
hOldTask = GetCurrentTask(); hOldTask = GetCurrentTask();
pOldTask = (TDB *)GlobalLock16( hOldTask ); pOldTask = (TDB *)GlobalLock16( hOldTask );
TRACE_(task)( "entered with hCurrentTask %04x by hTask %04x (pid %d)\n", TRACE_(task)( "entered with hCurrentTask %04x by hTask %04x (pid %ld)\n",
hCurrentTask, hOldTask, getpid() ); hCurrentTask, hOldTask, (long) getpid() );
if ( pOldTask && THREAD_IsWin16( NtCurrentTeb() ) ) if ( pOldTask && THREAD_IsWin16( NtCurrentTeb() ) )
{ {

View file

@ -19,6 +19,7 @@
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "winuser.h" #include "winuser.h"
#include "global.h"
#include "instance.h" #include "instance.h"
#include "ldt.h" #include "ldt.h"
#include "stackframe.h" #include "stackframe.h"

View file

@ -61,6 +61,7 @@ static inline int modify_ldt( int func, struct modify_ldt_s *ptr,
#if defined(__svr4__) || defined(_SCO_DS) #if defined(__svr4__) || defined(_SCO_DS)
#include <sys/sysi86.h> #include <sys/sysi86.h>
extern int sysi86(int,void*);
#ifndef __sun__ #ifndef __sun__
#include <sys/seg.h> #include <sys/seg.h>
#endif #endif

View file

@ -12,6 +12,7 @@
#include "stackframe.h" #include "stackframe.h"
#include "process.h" #include "process.h"
#include "debugtools.h" #include "debugtools.h"
#include "toolhelp.h"
DEFAULT_DEBUG_CHANNEL(selector) DEFAULT_DEBUG_CHANNEL(selector)

View file

@ -9,6 +9,7 @@
#include <string.h> #include <string.h>
#include "wine/winbase16.h" #include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
#include "wine/keyboard16.h" #include "wine/keyboard16.h"

View file

@ -145,21 +145,7 @@ void COMM_Init(void)
} }
struct DosDeviceStruct *GetDeviceStruct_fd(int fd) static struct DosDeviceStruct *GetDeviceStruct(int fd)
{
int x;
for (x=0; x!=MAX_PORTS; x++) {
if (COM[x].fd == fd)
return &COM[x];
if (LPT[x].fd == fd)
return &LPT[x];
}
return NULL;
}
struct DosDeviceStruct *GetDeviceStruct(int fd)
{ {
if ((fd&0x7F)<=MAX_PORTS) { if ((fd&0x7F)<=MAX_PORTS) {
if (!(fd&FLAG_LPT)) { if (!(fd&FLAG_LPT)) {
@ -174,7 +160,7 @@ struct DosDeviceStruct *GetDeviceStruct(int fd)
return NULL; return NULL;
} }
int GetCommPort_fd(int fd) static int GetCommPort_fd(int fd)
{ {
int x; int x;
@ -186,17 +172,17 @@ int GetCommPort_fd(int fd)
return -1; return -1;
} }
int ValidCOMPort(int x) static int ValidCOMPort(int x)
{ {
return(x < MAX_PORTS ? (int) COM[x].devicename : 0); return(x < MAX_PORTS ? (int) COM[x].devicename : 0);
} }
int ValidLPTPort(int x) static int ValidLPTPort(int x)
{ {
return(x < MAX_PORTS ? (int) LPT[x].devicename : 0); return(x < MAX_PORTS ? (int) LPT[x].devicename : 0);
} }
int WinError(void) static int WinError(void)
{ {
TRACE(comm, "errno = %d\n", errno); TRACE(comm, "errno = %d\n", errno);
switch (errno) { switch (errno) {

View file

@ -46,7 +46,6 @@ VOID WINAPI GetSystemInfo(
static int cache = 0; static int cache = 0;
static SYSTEM_INFO cachedsi; static SYSTEM_INFO cachedsi;
HKEY xhkey=0,hkey; HKEY xhkey=0,hkey;
char buf[20];
if (cache) { if (cache) {
memcpy(si,&cachedsi,sizeof(*si)); memcpy(si,&cachedsi,sizeof(*si));
@ -82,6 +81,7 @@ VOID WINAPI GetSystemInfo(
#ifdef linux #ifdef linux
{ {
char buf[20];
char line[200]; char line[200];
FILE *f = fopen ("/proc/cpuinfo", "r"); FILE *f = fopen ("/proc/cpuinfo", "r");

View file

@ -21,10 +21,10 @@
# define iswlower(c) islower(c) # define iswlower(c) islower(c)
#endif /* HAVE_WCTYPE_H */ #endif /* HAVE_WCTYPE_H */
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "winbase.h" #include "winbase.h"
#include "winuser.h" #include "winuser.h"
#include "wine/winbase16.h"
#include "winnls.h" #include "winnls.h"
#include "task.h" #include "task.h"
#include "heap.h" #include "heap.h"

View file

@ -5,8 +5,10 @@
*/ */
#include "config.h" #include "config.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <sys/stat.h> #include <sys/stat.h>

View file

@ -729,7 +729,7 @@ void SHELL_SaveRegistry( void )
if (!(home = getenv( "HOME" ))) if (!(home = getenv( "HOME" )))
{ {
WARN_(reg)("Failed to get homedirectory of UID %d.\n",getuid()); WARN_(reg)("Failed to get homedirectory of UID %ld.\n",(long) getuid());
return; return;
} }
/* /*
@ -1964,7 +1964,7 @@ void SHELL_LoadRegistry( void )
} }
else else
{ {
WARN_(reg)("Failed to get homedirectory of UID %d.\n",getuid()); WARN_(reg)("Failed to get homedirectory of UID %ld.\n",(long) getuid());
} }
/* /*

View file

@ -251,7 +251,7 @@ inline static int sock_error_p(int s)
unsigned int optval, optlen; unsigned int optval, optlen;
optlen = sizeof(optval); optlen = sizeof(optval);
getsockopt(s, SOL_SOCKET, SO_ERROR, &optval, &optlen); getsockopt(s, SOL_SOCKET, SO_ERROR, (void *) &optval, &optlen);
if (optval) WARN(winsock, "\t[%i] error: %d\n", s, optval); if (optval) WARN(winsock, "\t[%i] error: %d\n", s, optval);
return optval != 0; return optval != 0;
} }
@ -2336,7 +2336,7 @@ INT WINAPI WSAAsyncSelect(SOCKET s, HWND hWnd, UINT uMsg, UINT lEvent)
pws->psop = psop; pws->psop = psop;
pws->flags |= (0x0000FFFF & lEvent); pws->flags |= (0x0000FFFF & lEvent);
getsockopt(pws->fd, SOL_SOCKET, SO_TYPE, &sock_type, &bytes); getsockopt(pws->fd, SOL_SOCKET, SO_TYPE, (void *) &sock_type, &bytes);
if( sock_type == SOCK_RAW ) pws->flags |= WS_FD_RAW; if( sock_type == SOCK_RAW ) pws->flags |= WS_FD_RAW;
if( lEvent & (WS_FD_ACCEPT | WS_FD_CONNECT | WS_FD_READ | WS_FD_CLOSE) ) if( lEvent & (WS_FD_ACCEPT | WS_FD_CONNECT | WS_FD_READ | WS_FD_CLOSE) )

View file

@ -336,7 +336,7 @@ callrmproc_again:
SP_reg(context) -= (args + (iret?1:0)) * sizeof(WORD); SP_reg(context) -= (args + (iret?1:0)) * sizeof(WORD);
#else #else
if (!already) { if (!already) {
stack16 = CURRENT_STACK16; stack16 = (LPWORD) CURRENT_STACK16;
#endif #endif
stack16 -= args; stack16 -= args;
if (args) memcpy(stack16, stack, args*sizeof(WORD) ); if (args) memcpy(stack16, stack, args*sizeof(WORD) );
@ -387,7 +387,7 @@ callrmproc_again:
CS_reg(context) = HIWORD(seg_addr); CS_reg(context) = HIWORD(seg_addr);
IP_reg(context) = LOWORD(seg_addr); IP_reg(context) = LOWORD(seg_addr);
EBP_reg(context) = OFFSETOF( thdb->cur_stack ) EBP_reg(context) = OFFSETOF( NtCurrentTeb()->cur_stack )
+ (WORD)&((STACK16FRAME*)0)->bp; + (WORD)&((STACK16FRAME*)0)->bp;
Callbacks->CallRegisterShortProc(context, args*sizeof(WORD)); Callbacks->CallRegisterShortProc(context, args*sizeof(WORD));
SELECTOR_FreeBlock(sel, 1); SELECTOR_FreeBlock(sel, 1);

View file

@ -120,10 +120,11 @@ void WINAPI INT_Int2fHandler( CONTEXT *context )
break; break;
case 0x10: /* XMS v2+ get driver address */ case 0x10: /* XMS v2+ get driver address */
{ {
#ifdef MZ_SUPPORTED
TDB *pTask = (TDB *)GlobalLock16( GetCurrentTask() ); TDB *pTask = (TDB *)GlobalLock16( GetCurrentTask() );
NE_MODULE *pModule = pTask ? NE_GetPtr( pTask->hModule ) : NULL; NE_MODULE *pModule = pTask ? NE_GetPtr( pTask->hModule ) : NULL;
GlobalUnlock16( GetCurrentTask() ); GlobalUnlock16( GetCurrentTask() );
#ifdef MZ_SUPPORTED
if (pModule && pModule->lpDosTask) if (pModule && pModule->lpDosTask)
ES_reg(context) = pModule->lpDosTask->xms_seg; ES_reg(context) = pModule->lpDosTask->xms_seg;
else else
@ -359,11 +360,14 @@ static void do_int2f_16( CONTEXT *context )
if (ISV86(context)) break; /* so bail out for now if in v86 mode */ if (ISV86(context)) break; /* so bail out for now if in v86 mode */
#endif #endif
{ {
SYSTEM_INFO si;
#ifdef MZ_SUPPORTED
TDB *pTask = (TDB *)GlobalLock16( GetCurrentTask() ); TDB *pTask = (TDB *)GlobalLock16( GetCurrentTask() );
NE_MODULE *pModule = pTask ? NE_GetPtr( pTask->hModule ) : NULL; NE_MODULE *pModule = pTask ? NE_GetPtr( pTask->hModule ) : NULL;
SYSTEM_INFO si;
GlobalUnlock16( GetCurrentTask() ); GlobalUnlock16( GetCurrentTask() );
#endif
GetSystemInfo(&si); GetSystemInfo(&si);
AX_reg(context) = 0x0000; /* DPMI Installed */ AX_reg(context) = 0x0000; /* DPMI Installed */
BX_reg(context) = 0x0001; /* 32bits available */ BX_reg(context) = 0x0001; /* 32bits available */

View file

@ -8,7 +8,7 @@
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <strings.h> #include <string.h>
#include "winuser.h" #include "winuser.h"
#include "winerror.h" #include "winerror.h"

View file

@ -42,7 +42,6 @@ PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include <float.h>
#include <limits.h> #include <limits.h>
#include <sys/timeb.h> #include <sys/timeb.h>

View file

@ -85,8 +85,8 @@ DWORD WINAPI UTGlue16( LPVOID lpBuff, DWORD dwUserDefined, SEGPTR translationLis
/**************************************************************************** /****************************************************************************
* UTGlue32 * UTGlue32
*/ */
DWORD WINAPI UTGlue32( FARPROC16 target, LPVOID lpBuff, DWORD dwUserDefined, static DWORD WINAPI UTGlue32( FARPROC16 target, LPVOID lpBuff, DWORD dwUserDefined,
LPVOID translationList[] ) LPVOID translationList[] )
{ {
SEGPTR segBuff, *segptrList = NULL; SEGPTR segBuff, *segptrList = NULL;
INT i, nList = 0; INT i, nList = 0;

View file

@ -104,7 +104,7 @@ static void send_request_fd( enum request req, int fd )
struct msghdr msghdr; struct msghdr msghdr;
struct iovec vec; struct iovec vec;
vec.iov_base = &req; vec.iov_base = (void *)&req;
vec.iov_len = sizeof(req); vec.iov_len = sizeof(req);
msghdr.msg_name = NULL; msghdr.msg_name = NULL;
@ -194,7 +194,7 @@ static unsigned int wait_reply_fd( int *fd )
msghdr.msg_namelen = 0; msghdr.msg_namelen = 0;
msghdr.msg_iov = &vec; msghdr.msg_iov = &vec;
msghdr.msg_iovlen = 1; msghdr.msg_iovlen = 1;
vec.iov_base = &res; vec.iov_base = (void *)&res;
vec.iov_len = sizeof(res); vec.iov_len = sizeof(res);
for (;;) for (;;)

View file

@ -73,8 +73,8 @@ VOID WINAPI _EnterSysLevel(SYSLEVEL *lock)
TEB *teb = NtCurrentTeb(); TEB *teb = NtCurrentTeb();
int i; int i;
TRACE("(%p, level %d): thread %p (fs %04x, pid %d) count before %ld\n", TRACE("(%p, level %d): thread %p (fs %04x, pid %ld) count before %ld\n",
lock, lock->level, teb->tid, teb->teb_sel, getpid(), lock, lock->level, teb->tid, teb->teb_sel, (long) getpid(),
teb->sys_count[lock->level] ); teb->sys_count[lock->level] );
for ( i = 3; i > lock->level; i-- ) for ( i = 3; i > lock->level; i-- )
@ -89,8 +89,8 @@ VOID WINAPI _EnterSysLevel(SYSLEVEL *lock)
teb->sys_count[lock->level]++; teb->sys_count[lock->level]++;
teb->sys_mutex[lock->level] = lock; teb->sys_mutex[lock->level] = lock;
TRACE("(%p, level %d): thread %p (fs %04x, pid %d) count after %ld\n", TRACE("(%p, level %d): thread %p (fs %04x, pid %ld) count after %ld\n",
lock, lock->level, teb->tid, teb->teb_sel, getpid(), lock, lock->level, teb->tid, teb->teb_sel, (long) getpid(),
teb->sys_count[lock->level] ); teb->sys_count[lock->level] );
if (lock == &Win16Mutex) if (lock == &Win16Mutex)
@ -104,8 +104,8 @@ VOID WINAPI _LeaveSysLevel(SYSLEVEL *lock)
{ {
TEB *teb = NtCurrentTeb(); TEB *teb = NtCurrentTeb();
TRACE("(%p, level %d): thread %p (fs %04x, pid %d) count before %ld\n", TRACE("(%p, level %d): thread %p (fs %04x, pid %ld) count before %ld\n",
lock, lock->level, teb->tid, teb->teb_sel, getpid(), lock, lock->level, teb->tid, teb->teb_sel, (long) getpid(),
teb->sys_count[lock->level] ); teb->sys_count[lock->level] );
if ( teb->sys_count[lock->level] <= 0 || teb->sys_mutex[lock->level] != lock ) if ( teb->sys_count[lock->level] <= 0 || teb->sys_mutex[lock->level] != lock )
@ -122,8 +122,8 @@ VOID WINAPI _LeaveSysLevel(SYSLEVEL *lock)
LeaveCriticalSection( &lock->crst ); LeaveCriticalSection( &lock->crst );
TRACE("(%p, level %d): thread %p (fs %04x, pid %d) count after %ld\n", TRACE("(%p, level %d): thread %p (fs %04x, pid %ld) count after %ld\n",
lock, lock->level, teb->tid, teb->teb_sel, getpid(), lock, lock->level, teb->tid, teb->teb_sel, (long) getpid(),
teb->sys_count[lock->level] ); teb->sys_count[lock->level] );
} }

View file

@ -25,9 +25,9 @@ int main( int argc, char *argv[] )
debug_level = 1; debug_level = 1;
if (debug_level) fprintf( stderr, "Server: starting (pid=%d)\n", getpid() ); if (debug_level) fprintf( stderr, "Server: starting (pid=%ld)\n", (long) getpid() );
create_initial_thread( fd ); create_initial_thread( fd );
if (debug_level) fprintf( stderr, "Server: exiting (pid=%d)\n", getpid() ); if (debug_level) fprintf( stderr, "Server: exiting (pid=%ld)\n", (long) getpid() );
#ifdef DEBUG_OBJECTS #ifdef DEBUG_OBJECTS
dump_objects(); /* dump any remaining objects */ dump_objects(); /* dump any remaining objects */

View file

@ -73,7 +73,7 @@ static int do_write( struct client *client )
cmsg.fd = client->pass_fd; cmsg.fd = client->pass_fd;
#endif /* HAVE_MSGHDR_ACCRIGHTS */ #endif /* HAVE_MSGHDR_ACCRIGHTS */
iovec.iov_base = (char *)&client->res; iovec.iov_base = (void *)&client->res;
iovec.iov_len = sizeof(client->res); iovec.iov_len = sizeof(client->res);
ret = sendmsg( client->select.fd, &msghdr, 0 ); ret = sendmsg( client->select.fd, &msghdr, 0 );
@ -113,7 +113,7 @@ static void do_read( struct client *client )
assert( client->pass_fd == -1 ); assert( client->pass_fd == -1 );
iovec.iov_base = &req; iovec.iov_base = (void *)&req;
iovec.iov_len = sizeof(req); iovec.iov_len = sizeof(req);
ret = recvmsg( client->select.fd, &msghdr, 0 ); ret = recvmsg( client->select.fd, &msghdr, 0 );

View file

@ -2730,7 +2730,9 @@ static int BuildSpec( FILE *outfile, int argc, char *argv[] )
static int BuildCallFrom16( FILE *outfile, char * outname, int argc, char *argv[] ) static int BuildCallFrom16( FILE *outfile, char * outname, int argc, char *argv[] )
{ {
int i; int i;
#ifdef USE_STABS
char buffer[1024]; char buffer[1024];
#endif
/* File header */ /* File header */
@ -2884,7 +2886,9 @@ static int BuildCallTo16( FILE *outfile, char * outname, int argc, char *argv[]
*/ */
static int BuildCall32( FILE *outfile, char * outname ) static int BuildCall32( FILE *outfile, char * outname )
{ {
#ifdef USE_STABS
char buffer[1024]; char buffer[1024];
#endif
/* File header */ /* File header */

View file

@ -5,10 +5,12 @@
* Copyright 1996 Frans van Dorsselaer * Copyright 1996 Frans van Dorsselaer
*/ */
#include "winuser.h"
#include "module.h"
#include "debug.h"
#include "wine/wingdi16.h" #include "wine/wingdi16.h"
#include "wine/winuser16.h"
#include "module.h"
#include "win.h"
#include "winuser.h"
#include "debug.h"
DEFAULT_DEBUG_CHANNEL(caret) DEFAULT_DEBUG_CHANNEL(caret)

View file

@ -44,7 +44,7 @@ VOID WINAPI DISPLAY_MoveCursor( WORD wAbsX, WORD wAbsY )
/*********************************************************************** /***********************************************************************
* DISPLAY_CheckCursor (DISPLAY.104) * DISPLAY_CheckCursor (DISPLAY.104)
*/ */
VOID WINAPI DISPLAY_CheckCursor() VOID WINAPI DISPLAY_CheckCursor( void )
{ {
TRACE( cursor, "stub\n" ); TRACE( cursor, "stub\n" );
} }

View file

@ -132,7 +132,7 @@ int DRIVER_GetType(HDRVR hDrvr)
* -1 : ko, unknown message * -1 : ko, unknown message
* -2 : ko, memory problem * -2 : ko, memory problem
*/ */
int DRIVER_MapMsg16To32(WORD wMsg, DWORD* lParam1, DWORD* lParam2) static int DRIVER_MapMsg16To32(WORD wMsg, DWORD* lParam1, DWORD* lParam2)
{ {
int ret = -1; int ret = -1;
@ -217,7 +217,7 @@ int DRIVER_MapMsg16To32(WORD wMsg, DWORD* lParam1, DWORD* lParam2)
* -1 : ko * -1 : ko
* -2 : ko, memory problem * -2 : ko, memory problem
*/ */
int DRIVER_UnMapMsg16To32(WORD wMsg, DWORD lParam1, DWORD lParam2) static int DRIVER_UnMapMsg16To32(WORD wMsg, DWORD lParam1, DWORD lParam2)
{ {
int ret = -1; int ret = -1;
@ -284,7 +284,7 @@ int DRIVER_UnMapMsg16To32(WORD wMsg, DWORD lParam1, DWORD lParam2)
* -1 : ko, unknown message * -1 : ko, unknown message
* -2 : ko, memory problem * -2 : ko, memory problem
*/ */
int DRIVER_MapMsg32To16(WORD wMsg, DWORD* lParam1, DWORD* lParam2) static int DRIVER_MapMsg32To16(WORD wMsg, DWORD* lParam1, DWORD* lParam2)
{ {
int ret = -1; int ret = -1;
@ -393,7 +393,7 @@ int DRIVER_MapMsg32To16(WORD wMsg, DWORD* lParam1, DWORD* lParam2)
* -1 : ko * -1 : ko
* -2 : ko, memory problem * -2 : ko, memory problem
*/ */
int DRIVER_UnMapMsg32To16(WORD wMsg, DWORD lParam1, DWORD lParam2) static int DRIVER_UnMapMsg32To16(WORD wMsg, DWORD lParam1, DWORD lParam2)
{ {
int ret = -1; int ret = -1;

View file

@ -23,6 +23,7 @@
#include "user.h" #include "user.h"
#include "menu.h" #include "menu.h"
#include "resource.h" #include "resource.h"
#include "scroll.h"
#include "struct32.h" #include "struct32.h"
#include "tweak.h" #include "tweak.h"
#include "debug.h" #include "debug.h"
@ -34,8 +35,6 @@ DEFAULT_DEBUG_CHANNEL(mdi)
static HBITMAP16 hBmpClose = 0; static HBITMAP16 hBmpClose = 0;
static HBITMAP16 hBmpRestore = 0; static HBITMAP16 hBmpRestore = 0;
INT SCROLL_SetNCSbState(WND*,int,int,int,int,int,int);
/* ----------------- declarations ----------------- */ /* ----------------- declarations ----------------- */
static void MDI_UpdateFrameText(WND *, HWND, BOOL, LPCSTR); static void MDI_UpdateFrameText(WND *, HWND, BOOL, LPCSTR);
static BOOL MDI_AugmentFrameMenu(MDICLIENTINFO*, WND *, HWND); static BOOL MDI_AugmentFrameMenu(MDICLIENTINFO*, WND *, HWND);

View file

@ -49,7 +49,7 @@ static UINT doubleClickSpeed = 452;
/*********************************************************************** /***********************************************************************
* MSG_CheckFilter * MSG_CheckFilter
*/ */
BOOL MSG_CheckFilter(DWORD uMsg, DWORD first, DWORD last) static BOOL MSG_CheckFilter(DWORD uMsg, DWORD first, DWORD last)
{ {
if( first || last ) if( first || last )
return (uMsg >= first && uMsg <= last); return (uMsg >= first && uMsg <= last);
@ -1553,7 +1553,7 @@ static void MSG_CallWndProcHook( LPMSG pmsg, BOOL bUnicode )
* return values: 0 if timeout occurs * return values: 0 if timeout occurs
* 1 otherwise * 1 otherwise
*/ */
LRESULT MSG_SendMessage( HWND hwnd, UINT msg, WPARAM wParam, static LRESULT MSG_SendMessage( HWND hwnd, UINT msg, WPARAM wParam,
LPARAM lParam, DWORD timeout, WORD flags, LPARAM lParam, DWORD timeout, WORD flags,
LRESULT *pRes) LRESULT *pRes)
{ {

View file

@ -5,6 +5,8 @@
*/ */
#include <string.h> #include <string.h>
#include "wine/winbase16.h"
#include "wine/winuser16.h" #include "wine/winuser16.h"
#include "dlgs.h" #include "dlgs.h"
#include "heap.h" #include "heap.h"

View file

@ -21,7 +21,7 @@ MONITOR MONITOR_PrimaryMonitor;
/*********************************************************************** /***********************************************************************
* MONITOR_GetMonitor * MONITOR_GetMonitor
*/ */
MONITOR *MONITOR_GetMonitor(HMONITOR hMonitor) static MONITOR *MONITOR_GetMonitor(HMONITOR hMonitor)
{ {
if(hMonitor == xPRIMARY_MONITOR) if(hMonitor == xPRIMARY_MONITOR)
{ {

Some files were not shown because too many files have changed in this diff Show more