Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
41e9dd3d
Commit
41e9dd3d
authored
Jan 14, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhlp32: Make some functions static in hlpfile.c and remove HLPFILE_PointsToTwips().
parent
ffdf89c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
hlpfile.c
programs/winhlp32/hlpfile.c
+3
-3
hlpfile.h
programs/winhlp32/hlpfile.h
+0
-8
No files found.
programs/winhlp32/hlpfile.c
View file @
41e9dd3d
...
@@ -66,7 +66,7 @@ static HLPFILE *first_hlpfile = 0;
...
@@ -66,7 +66,7 @@ static HLPFILE *first_hlpfile = 0;
* Pointer to block identified by key, or NULL if failure.
* Pointer to block identified by key, or NULL if failure.
*
*
*/
*/
void
*
HLPFILE_BPTreeSearch
(
BYTE
*
buf
,
const
void
*
key
,
static
void
*
HLPFILE_BPTreeSearch
(
BYTE
*
buf
,
const
void
*
key
,
HLPFILE_BPTreeCompare
comp
)
HLPFILE_BPTreeCompare
comp
)
{
{
unsigned
magic
;
unsigned
magic
;
...
@@ -396,7 +396,7 @@ HLPFILE_PAGE *HLPFILE_PageByOffset(HLPFILE* hlpfile, LONG offset, ULONG* relativ
...
@@ -396,7 +396,7 @@ HLPFILE_PAGE *HLPFILE_PageByOffset(HLPFILE* hlpfile, LONG offset, ULONG* relativ
*
*
* HLPFILE_Contents
* HLPFILE_Contents
*/
*/
HLPFILE_PAGE
*
HLPFILE_Contents
(
HLPFILE
*
hlpfile
,
ULONG
*
relative
)
static
HLPFILE_PAGE
*
HLPFILE_Contents
(
HLPFILE
*
hlpfile
,
ULONG
*
relative
)
{
{
HLPFILE_PAGE
*
page
=
NULL
;
HLPFILE_PAGE
*
page
=
NULL
;
...
@@ -1093,7 +1093,7 @@ static HLPFILE_LINK* HLPFILE_AllocLink(struct RtfData* rd, int cookie,
...
@@ -1093,7 +1093,7 @@ static HLPFILE_LINK* HLPFILE_AllocLink(struct RtfData* rd, int cookie,
return
link
;
return
link
;
}
}
unsigned
HLPFILE_HalfPointsToTwips
(
unsigned
pts
)
static
unsigned
HLPFILE_HalfPointsToTwips
(
unsigned
pts
)
{
{
static
unsigned
logPxY
;
static
unsigned
logPxY
;
if
(
!
logPxY
)
if
(
!
logPxY
)
...
...
programs/winhlp32/hlpfile.h
View file @
41e9dd3d
...
@@ -164,20 +164,12 @@ typedef int (*HLPFILE_BPTreeCompare)(void *p, const void *key,
...
@@ -164,20 +164,12 @@ typedef int (*HLPFILE_BPTreeCompare)(void *p, const void *key,
typedef
void
(
*
HLPFILE_BPTreeCallback
)(
void
*
p
,
void
**
next
,
void
*
cookie
);
typedef
void
(
*
HLPFILE_BPTreeCallback
)(
void
*
p
,
void
**
next
,
void
*
cookie
);
HLPFILE
*
HLPFILE_ReadHlpFile
(
LPCSTR
lpszPath
);
HLPFILE
*
HLPFILE_ReadHlpFile
(
LPCSTR
lpszPath
);
HLPFILE_PAGE
*
HLPFILE_Contents
(
HLPFILE
*
hlpfile
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByHash
(
HLPFILE
*
hlpfile
,
LONG
lHash
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByHash
(
HLPFILE
*
hlpfile
,
LONG
lHash
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByMap
(
HLPFILE
*
hlpfile
,
LONG
lMap
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByMap
(
HLPFILE
*
hlpfile
,
LONG
lMap
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByOffset
(
HLPFILE
*
hlpfile
,
LONG
offset
,
ULONG
*
relative
);
HLPFILE_PAGE
*
HLPFILE_PageByOffset
(
HLPFILE
*
hlpfile
,
LONG
offset
,
ULONG
*
relative
);
LONG
HLPFILE_Hash
(
LPCSTR
lpszContext
);
LONG
HLPFILE_Hash
(
LPCSTR
lpszContext
);
void
HLPFILE_FreeHlpFile
(
HLPFILE
*
);
void
HLPFILE_FreeHlpFile
(
HLPFILE
*
);
unsigned
HLPFILE_HalfPointsToTwips
(
unsigned
pts
);
static
inline
unsigned
HLPFILE_PointsToTwips
(
unsigned
pts
)
{
return
HLPFILE_HalfPointsToTwips
(
2
*
pts
);
}
void
*
HLPFILE_BPTreeSearch
(
BYTE
*
,
const
void
*
,
HLPFILE_BPTreeCompare
);
void
HLPFILE_BPTreeEnum
(
BYTE
*
,
HLPFILE_BPTreeCallback
cb
,
void
*
cookie
);
void
HLPFILE_BPTreeEnum
(
BYTE
*
,
HLPFILE_BPTreeCallback
cb
,
void
*
cookie
);
struct
RtfData
{
struct
RtfData
{
...
...
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