Commit 52736b47 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Fix declarations.

parent 9bda749b
...@@ -149,6 +149,15 @@ BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn); ...@@ -149,6 +149,15 @@ BOOL16 WINAPI GetSaveFileName16(SEGPTR ofn);
BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 print); BOOL16 WINAPI PrintDlg16( LPPRINTDLG16 print);
HWND16 WINAPI ReplaceText16( SEGPTR find); HWND16 WINAPI ReplaceText16( SEGPTR find);
BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16); BOOL16 WINAPI ChooseFont16(LPCHOOSEFONT16);
BOOL16 CALLBACK ColorDlgProc16( HWND16 hDlg16, UINT16 message, WPARAM16 wParam, LONG lParam );
BOOL16 CALLBACK FileSaveDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
BOOL16 CALLBACK FileOpenDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
INT16 WINAPI FontFamilyEnumProc16( SEGPTR logfont, SEGPTR metrics, UINT16 nFontType, LPARAM lParam );
INT16 WINAPI FontStyleEnumProc16( SEGPTR logfont, SEGPTR metrics, UINT16 nFontType, LPARAM lParam);
BOOL16 CALLBACK FormatCharDlgProc16(HWND16 hDlg16, UINT16 message, WPARAM16 wParam, LPARAM lParam);
short WINAPI GetFileTitle16(LPCSTR lpFile, LPSTR lpTitle, UINT16 cbBuf);
BOOL16 CALLBACK PrintDlgProc16(HWND16 hDlg16, UINT16 uMsg, WPARAM16 wParam, LPARAM lParam);
BOOL16 CALLBACK PrintSetupDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, LPARAM lParam);
#include "poppack.h" #include "poppack.h"
......
...@@ -203,7 +203,7 @@ int CC_RGBtoHSL(char c, int r, int g, int b) ...@@ -203,7 +203,7 @@ int CC_RGBtoHSL(char c, int r, int g, int b)
/*********************************************************************** /***********************************************************************
* CC_DrawCurrentFocusRect [internal] * CC_DrawCurrentFocusRect [internal]
*/ */
void CC_DrawCurrentFocusRect( LCCPRIV lpp ) static void CC_DrawCurrentFocusRect( LCCPRIV lpp )
{ {
if (lpp->hwndFocus) if (lpp->hwndFocus)
{ {
...@@ -216,7 +216,7 @@ void CC_DrawCurrentFocusRect( LCCPRIV lpp ) ...@@ -216,7 +216,7 @@ void CC_DrawCurrentFocusRect( LCCPRIV lpp )
/*********************************************************************** /***********************************************************************
* CC_DrawFocusRect [internal] * CC_DrawFocusRect [internal]
*/ */
void CC_DrawFocusRect( LCCPRIV lpp, HWND hwnd, int x, int y, int rows, int cols) static void CC_DrawFocusRect( LCCPRIV lpp, HWND hwnd, int x, int y, int rows, int cols)
{ {
RECT rect; RECT rect;
int dx, dy; int dx, dy;
...@@ -822,7 +822,7 @@ BOOL CC_HookCallChk( LPCHOOSECOLORW lpcc ) ...@@ -822,7 +822,7 @@ BOOL CC_HookCallChk( LPCHOOSECOLORW lpcc )
/*********************************************************************** /***********************************************************************
* CC_WMInitDialog [internal] * CC_WMInitDialog [internal]
*/ */
LONG CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam ) static LONG CC_WMInitDialog( HWND hDlg, WPARAM wParam, LPARAM lParam )
{ {
int i, res; int i, res;
int r, g, b; int r, g, b;
......
...@@ -71,7 +71,7 @@ typedef struct CCPRIVATE ...@@ -71,7 +71,7 @@ typedef struct CCPRIVATE
/*********************************************************************** /***********************************************************************
* CC_WMInitDialog16 [internal] * CC_WMInitDialog16 [internal]
*/ */
LONG CC_WMInitDialog16( HWND hDlg, WPARAM wParam, LPARAM lParam ) static LONG CC_WMInitDialog16( HWND hDlg, WPARAM wParam, LPARAM lParam )
{ {
int i, res; int i, res;
int r, g, b; int r, g, b;
...@@ -190,7 +190,7 @@ LONG CC_WMInitDialog16( HWND hDlg, WPARAM wParam, LPARAM lParam ) ...@@ -190,7 +190,7 @@ LONG CC_WMInitDialog16( HWND hDlg, WPARAM wParam, LPARAM lParam )
/*********************************************************************** /***********************************************************************
* CC_WMCommand16 [internal] * CC_WMCommand16 [internal]
*/ */
LRESULT CC_WMCommand16( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode, HWND hwndCtl ) static LRESULT CC_WMCommand16( HWND hDlg, WPARAM wParam, LPARAM lParam, WORD notifyCode, HWND hwndCtl )
{ {
int r, g, b, i, xx; int r, g, b, i, xx;
UINT cokmsg; UINT cokmsg;
......
...@@ -713,7 +713,7 @@ static void ArrangeCtrlPositions(HWND hwndChildDlg, HWND hwndParentDlg, BOOL hid ...@@ -713,7 +713,7 @@ static void ArrangeCtrlPositions(HWND hwndChildDlg, HWND hwndParentDlg, BOOL hid
0, 0, rectChild.right, rectChild.bottom, SWP_NOACTIVATE); 0, 0, rectChild.right, rectChild.bottom, SWP_NOACTIVATE);
} }
INT_PTR CALLBACK FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) static INT_PTR CALLBACK FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
switch(uMsg) { switch(uMsg) {
case WM_INITDIALOG: case WM_INITDIALOG:
...@@ -722,7 +722,7 @@ INT_PTR CALLBACK FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam ...@@ -722,7 +722,7 @@ INT_PTR CALLBACK FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam
return FALSE; return FALSE;
} }
HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd) static HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
{ {
LPCVOID template; LPCVOID template;
HRSRC hRes; HRSRC hRes;
...@@ -3527,7 +3527,7 @@ static BOOL CALLBACK FD32_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data) ...@@ -3527,7 +3527,7 @@ static BOOL CALLBACK FD32_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data)
* *
* called from the common 16/32 code to call the appropriate hook * called from the common 16/32 code to call the appropriate hook
*/ */
BOOL CALLBACK FD32_CallWindowProc(PFD31_DATA lfs, UINT wMsg, WPARAM wParam, static BOOL CALLBACK FD32_CallWindowProc(PFD31_DATA lfs, UINT wMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
BOOL ret; BOOL ret;
......
...@@ -46,7 +46,7 @@ typedef struct tagFD16_PRIVATE ...@@ -46,7 +46,7 @@ typedef struct tagFD16_PRIVATE
* FD16_MapOfnStruct16 [internal] * FD16_MapOfnStruct16 [internal]
* map a 16 bits structure to an Unicode one * map a 16 bits structure to an Unicode one
*/ */
void FD16_MapOfnStruct16(LPOPENFILENAME16 ofn16, LPOPENFILENAMEW ofnW, BOOL open) static void FD16_MapOfnStruct16(LPOPENFILENAME16 ofn16, LPOPENFILENAMEW ofnW, BOOL open)
{ {
OPENFILENAMEA ofnA; OPENFILENAMEA ofnA;
/* first convert to linear pointers */ /* first convert to linear pointers */
...@@ -85,7 +85,7 @@ void FD16_MapOfnStruct16(LPOPENFILENAME16 ofn16, LPOPENFILENAMEW ofnW, BOOL open ...@@ -85,7 +85,7 @@ void FD16_MapOfnStruct16(LPOPENFILENAME16 ofn16, LPOPENFILENAMEW ofnW, BOOL open
* by a 16 bits application * by a 16 bits application
* *
*/ */
BOOL FD16_GetTemplate(PFD31_DATA lfs) static BOOL FD16_GetTemplate(PFD31_DATA lfs)
{ {
PFD16_PRIVATE priv = (PFD16_PRIVATE) lfs->private1632; PFD16_PRIVATE priv = (PFD16_PRIVATE) lfs->private1632;
LPOPENFILENAME16 ofn16 = priv->ofn16; LPOPENFILENAME16 ofn16 = priv->ofn16;
...@@ -183,7 +183,7 @@ static BOOL CALLBACK FD16_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data) ...@@ -183,7 +183,7 @@ static BOOL CALLBACK FD16_Init(LPARAM lParam, PFD31_DATA lfs, DWORD data)
* *
* called from the common 16/32 code to call the appropriate hook * called from the common 16/32 code to call the appropriate hook
*/ */
BOOL CALLBACK FD16_CallWindowProc(PFD31_DATA lfs, UINT wMsg, WPARAM wParam, static BOOL CALLBACK FD16_CallWindowProc(PFD31_DATA lfs, UINT wMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
PFD16_PRIVATE priv = (PFD16_PRIVATE) lfs->private1632; PFD16_PRIVATE priv = (PFD16_PRIVATE) lfs->private1632;
......
...@@ -303,7 +303,7 @@ LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam, ...@@ -303,7 +303,7 @@ LONG FD31_WMDrawItem(HWND hWnd, WPARAM wParam, LPARAM lParam,
* FD31_UpdateResult [internal] * FD31_UpdateResult [internal]
* update the displayed file name (with path) * update the displayed file name (with path)
*/ */
void FD31_UpdateResult(PFD31_DATA lfs, WCHAR *tmpstr) static void FD31_UpdateResult(PFD31_DATA lfs, WCHAR *tmpstr)
{ {
int lenstr2; int lenstr2;
LPOPENFILENAMEW ofnW = lfs->ofnW; LPOPENFILENAMEW ofnW = lfs->ofnW;
...@@ -341,7 +341,7 @@ void FD31_UpdateResult(PFD31_DATA lfs, WCHAR *tmpstr) ...@@ -341,7 +341,7 @@ void FD31_UpdateResult(PFD31_DATA lfs, WCHAR *tmpstr)
* FD31_UpdateFileTitle [internal] * FD31_UpdateFileTitle [internal]
* update the displayed file name (without path) * update the displayed file name (without path)
*/ */
void FD31_UpdateFileTitle(PFD31_DATA lfs) static void FD31_UpdateFileTitle(PFD31_DATA lfs)
{ {
LONG lRet; LONG lRet;
LPOPENFILENAMEW ofnW = lfs->ofnW; LPOPENFILENAMEW ofnW = lfs->ofnW;
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "winuser.h" #include "winuser.h"
#include "commdlg.h" #include "commdlg.h"
#include "cdlg.h" #include "cdlg.h"
#include "cdlg16.h"
#include "wine/unicode.h" #include "wine/unicode.h"
#include "wine/debug.h" #include "wine/debug.h"
......
...@@ -62,7 +62,7 @@ BOOL16 CALLBACK ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, ...@@ -62,7 +62,7 @@ BOOL16 CALLBACK ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
* by a 16 bits application * by a 16 bits application
* FIXME : no test was done for the user-provided template cases * FIXME : no test was done for the user-provided template cases
*/ */
BOOL FINDDLG_Get16BitsTemplate(LFRPRIVATE lfr) static BOOL FINDDLG_Get16BitsTemplate(LFRPRIVATE lfr)
{ {
LPFINDREPLACE16 fr16 = lfr->fr16; LPFINDREPLACE16 fr16 = lfr->fr16;
...@@ -150,7 +150,7 @@ BOOL FINDDLG_Get16BitsTemplate(LFRPRIVATE lfr) ...@@ -150,7 +150,7 @@ BOOL FINDDLG_Get16BitsTemplate(LFRPRIVATE lfr)
* *
* Free resources allocated * Free resources allocated
*/ */
void FINDDLG_FreeResources(LFRPRIVATE lfr) static void FINDDLG_FreeResources(LFRPRIVATE lfr)
{ {
/* free resources */ /* free resources */
if (lfr->fr16->Flags & FR_ENABLETEMPLATEHANDLE) if (lfr->fr16->Flags & FR_ENABLETEMPLATEHANDLE)
......
...@@ -427,7 +427,7 @@ static int SetFontSizesToCombo3(HWND hwnd, LPCHOOSEFONTW lpcf) ...@@ -427,7 +427,7 @@ static int SetFontSizesToCombo3(HWND hwnd, LPCHOOSEFONTW lpcf)
/************************************************************************* /*************************************************************************
* CFn_GetDC [internal] * CFn_GetDC [internal]
*/ */
inline HDC CFn_GetDC(LPCHOOSEFONTW lpcf) static inline HDC CFn_GetDC(LPCHOOSEFONTW lpcf)
{ {
HDC ret = ((lpcf->Flags & CF_PRINTERFONTS) && lpcf->hDC) ? HDC ret = ((lpcf->Flags & CF_PRINTERFONTS) && lpcf->hDC) ?
lpcf->hDC : lpcf->hDC :
...@@ -439,7 +439,7 @@ inline HDC CFn_GetDC(LPCHOOSEFONTW lpcf) ...@@ -439,7 +439,7 @@ inline HDC CFn_GetDC(LPCHOOSEFONTW lpcf)
/************************************************************************* /*************************************************************************
* CFn_ReleaseDC [internal] * CFn_ReleaseDC [internal]
*/ */
inline void CFn_ReleaseDC(LPCHOOSEFONTW lpcf, HDC hdc) static inline void CFn_ReleaseDC(LPCHOOSEFONTW lpcf, HDC hdc)
{ {
if(!((lpcf->Flags & CF_PRINTERFONTS) && lpcf->hDC)) if(!((lpcf->Flags & CF_PRINTERFONTS) && lpcf->hDC))
ReleaseDC(0, hdc); ReleaseDC(0, hdc);
...@@ -1021,7 +1021,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam, ...@@ -1021,7 +1021,7 @@ LRESULT CFn_WMCommand(HWND hDlg, WPARAM wParam, LPARAM lParam,
return(FALSE); return(FALSE);
} }
LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam, LPCHOOSEFONTW lpcfw) static LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam, LPCHOOSEFONTW lpcfw)
{ {
LPCHOOSEFONTA lpcfa; LPCHOOSEFONTA lpcfa;
LPSTR lpszStyle; LPSTR lpszStyle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment