Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
e2d22db7
Commit
e2d22db7
authored
Oct 07, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Use explicit prototypes for the dll callbacks.
parent
a54bd70b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
22 deletions
+42
-22
callback.c
programs/winhlp32/callback.c
+19
-19
macro.c
programs/winhlp32/macro.c
+1
-1
winhelp.h
programs/winhlp32/winhelp.h
+22
-2
No files found.
programs/winhlp32/callback.c
View file @
e2d22db7
...
...
@@ -158,23 +158,23 @@ static LONG CALLBACK WHD_API(LPSTR x, WORD xx, DWORD xxx)
return
0
;
}
FARPROC
Callbacks
[]
=
{
(
FARPROC
)
WHD_GetFSError
,
(
FARPROC
)
WHD_Open
,
(
FARPROC
)
WHD_Close
,
(
FARPROC
)
WHD_OpenBag
,
(
FARPROC
)
WHD_CloseBag
,
(
FARPROC
)
WHD_ReadBag
,
(
FARPROC
)
WHD_TellBag
,
(
FARPROC
)
WHD_SeekBag
,
(
FARPROC
)
WHD_IsEofBag
,
(
FARPROC
)
WHD_SizeBag
,
(
FARPROC
)
WHD_Access
,
(
FARPROC
)
WHD_LLInfoFromBag
,
(
FARPROC
)
WHD_LLInfoFromFile
,
(
FARPROC
)
WHD_Error
,
(
FARPROC
)
WHD_ErrorString
,
(
FARPROC
)
WHD_GetInfo
,
(
FARPROC
)
WHD_API
const
struct
winhelp_callbacks
Callbacks
=
{
WHD_GetFSError
,
WHD_Open
,
WHD_Close
,
WHD_OpenBag
,
WHD_CloseBag
,
WHD_ReadBag
,
WHD_TellBag
,
WHD_SeekBag
,
WHD_IsEofBag
,
WHD_SizeBag
,
WHD_Access
,
WHD_LLInfoFromBag
,
WHD_LLInfoFromFile
,
WHD_Error
,
WHD_ErrorString
,
WHD_GetInfo
,
WHD_API
};
programs/winhlp32/macro.c
View file @
e2d22db7
...
...
@@ -735,7 +735,7 @@ static void CALLBACK MACRO_RegisterRoutine(LPCSTR dll_name, LPCSTR proc, LPCSTR
dll
->
class
=
dll
->
handler
?
(
dll
->
handler
)(
DW_WHATMSG
,
0
,
0
)
:
DC_NOMSG
;
WINE_TRACE
(
"Got class %x for DLL %s
\n
"
,
dll
->
class
,
dll_name
);
if
(
dll
->
class
&
DC_INITTERM
)
dll
->
handler
(
DW_INIT
,
0
,
0
);
if
(
dll
->
class
&
DC_CALLBACKS
)
dll
->
handler
(
DW_CALLBACKS
,
(
DWORD
)
Callbacks
,
0
);
if
(
dll
->
class
&
DC_CALLBACKS
)
dll
->
handler
(
DW_CALLBACKS
,
(
LONG_PTR
)
&
Callbacks
,
0
);
}
else
WINE_WARN
(
"OOM
\n
"
);
}
...
...
programs/winhlp32/winhelp.h
View file @
e2d22db7
...
...
@@ -115,7 +115,7 @@ typedef struct tagWinHelp
#define DW_ACTIVATE 9
#define DW_CALLBACKS 10
typedef
long
(
CALLBACK
*
WINHELP_LDLLHandler
)(
WORD
,
LONG
,
LONG
);
typedef
LONG
(
CALLBACK
*
WINHELP_LDLLHandler
)(
WORD
,
LONG_PTR
,
LONG_PTR
);
typedef
struct
tagDll
{
...
...
@@ -140,8 +140,28 @@ typedef struct
HFONT
hButtonFont
;
}
WINHELP_GLOBALS
;
extern
const
struct
winhelp_callbacks
{
WORD
(
WINAPI
*
GetFSError
)(
void
);
HANDLE
(
WINAPI
*
HfsOpenSz
)(
LPSTR
,
BYTE
);
WORD
(
WINAPI
*
RcCloseHfs
)(
HANDLE
);
HANDLE
(
WINAPI
*
HfOpenHfs
)(
HANDLE
,
LPSTR
,
BYTE
);
HANDLE
(
WINAPI
*
RcCloseHf
)(
HANDLE
);
LONG
(
WINAPI
*
LcbReadHf
)(
HANDLE
,
BYTE
*
,
LONG
);
LONG
(
WINAPI
*
LTellHf
)(
HANDLE
);
LONG
(
WINAPI
*
LSeekHf
)(
HANDLE
,
LONG
,
WORD
);
BOOL
(
WINAPI
*
FEofHf
)(
HANDLE
);
LONG
(
WINAPI
*
LcbSizeHf
)(
HANDLE
);
BOOL
(
WINAPI
*
FAccessHfs
)(
HANDLE
,
LPSTR
,
BYTE
);
WORD
(
WINAPI
*
RcLLInfoFromHf
)(
HANDLE
,
WORD
,
LPWORD
,
LPLONG
,
LPLONG
);
WORD
(
WINAPI
*
RcLLInfoFromHfs
)(
HANDLE
,
LPSTR
,
WORD
,
LPWORD
,
LPLONG
,
LPLONG
);
void
(
WINAPI
*
ErrorW
)(
int
);
void
(
WINAPI
*
ErrorSz
)(
LPSTR
);
ULONG_PTR
(
WINAPI
*
GetInfo
)(
WORD
,
HWND
);
LONG
(
WINAPI
*
API
)(
LPSTR
,
WORD
,
DWORD
);
}
Callbacks
;
extern
WINHELP_GLOBALS
Globals
;
extern
FARPROC
Callbacks
[];
BOOL
WINHELP_CreateHelpWindow
(
WINHELP_WNDPAGE
*
,
int
,
BOOL
);
BOOL
WINHELP_OpenHelpWindow
(
HLPFILE_PAGE
*
(
*
)(
HLPFILE
*
,
LONG
,
ULONG
*
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment