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
7ae1bb28
Commit
7ae1bb28
authored
Apr 22, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fixed JumpId and JumpKeyword with correct signature and implementation.
parent
951926e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
macro.c
programs/winhelp/macro.c
+24
-7
macro.h
programs/winhelp/macro.h
+1
-1
No files found.
programs/winhelp/macro.c
View file @
7ae1bb28
...
@@ -110,7 +110,7 @@ static struct MacroDesc MACRO_Builtins[] = {
...
@@ -110,7 +110,7 @@ static struct MacroDesc MACRO_Builtins[] = {
{
"JumpContext"
,
"JC"
,
0
,
"SSU"
,
(
FARPROC
)
MACRO_JumpContext
},
{
"JumpContext"
,
"JC"
,
0
,
"SSU"
,
(
FARPROC
)
MACRO_JumpContext
},
{
"JumpHash"
,
"JH"
,
0
,
"SSU"
,
(
FARPROC
)
MACRO_JumpHash
},
{
"JumpHash"
,
"JH"
,
0
,
"SSU"
,
(
FARPROC
)
MACRO_JumpHash
},
{
"JumpHelpOn"
,
NULL
,
0
,
""
,
(
FARPROC
)
MACRO_JumpHelpOn
},
{
"JumpHelpOn"
,
NULL
,
0
,
""
,
(
FARPROC
)
MACRO_JumpHelpOn
},
{
"JumpID"
,
"JI"
,
0
,
"SS
S"
,
(
FARPROC
)
MACRO_JumpID
},
{
"JumpID"
,
"JI"
,
0
,
"SS
"
,
(
FARPROC
)
MACRO_JumpID
},
{
"JumpKeyword"
,
"JK"
,
0
,
"SSS"
,
(
FARPROC
)
MACRO_JumpKeyword
},
{
"JumpKeyword"
,
"JK"
,
0
,
"SSS"
,
(
FARPROC
)
MACRO_JumpKeyword
},
{
"KLink"
,
"KL"
,
0
,
"SUSS"
,
(
FARPROC
)
MACRO_KLink
},
{
"KLink"
,
"KL"
,
0
,
"SUSS"
,
(
FARPROC
)
MACRO_KLink
},
{
"Menu"
,
"MU"
,
0
,
""
,
(
FARPROC
)
MACRO_Menu
},
{
"Menu"
,
"MU"
,
0
,
""
,
(
FARPROC
)
MACRO_Menu
},
...
@@ -654,15 +654,32 @@ void CALLBACK MACRO_JumpHelpOn(void)
...
@@ -654,15 +654,32 @@ void CALLBACK MACRO_JumpHelpOn(void)
WINE_FIXME
(
"()
\n
"
);
WINE_FIXME
(
"()
\n
"
);
}
}
/* FIXME: those two macros are wrong
void
CALLBACK
MACRO_JumpID
(
LPCSTR
lpszPathWindow
,
LPCSTR
topic_id
)
* they should only contain 2 strings, path & window are coded as path>window
*/
void
CALLBACK
MACRO_JumpID
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LPCSTR
topic_id
)
{
{
WINE_TRACE
(
"(
\"
%s
\"
,
\"
%s
\"
,
\"
%s
\"
)
\n
"
,
lpszPath
,
lpszWindow
,
topic_id
);
LPSTR
ptr
;
MACRO_JumpHash
(
lpszPath
,
lpszWindow
,
HLPFILE_Hash
(
topic_id
));
WINE_TRACE
(
"(
\"
%s
\"
,
\"
%s
\"
)
\n
"
,
lpszPathWindow
,
topic_id
);
if
((
ptr
=
strchr
(
lpszPathWindow
,
'>'
))
!=
NULL
)
{
LPSTR
tmp
;
size_t
sz
=
ptr
-
lpszPathWindow
;
tmp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
+
1
);
if
(
tmp
)
{
memcpy
(
tmp
,
lpszPathWindow
,
sz
);
tmp
[
sz
]
=
'\0'
;
MACRO_JumpHash
(
tmp
,
ptr
+
1
,
HLPFILE_Hash
(
topic_id
));
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
}
}
else
MACRO_JumpHash
(
lpszPathWindow
,
NULL
,
HLPFILE_Hash
(
topic_id
));
}
}
/* FIXME: this macros is wrong
* it should only contain 2 strings, path & window are coded as path>window
*/
void
CALLBACK
MACRO_JumpKeyword
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LPCSTR
keyword
)
void
CALLBACK
MACRO_JumpKeyword
(
LPCSTR
lpszPath
,
LPCSTR
lpszWindow
,
LPCSTR
keyword
)
{
{
WINE_FIXME
(
"(
\"
%s
\"
,
\"
%s
\"
,
\"
%s
\"
)
\n
"
,
lpszPath
,
lpszWindow
,
keyword
);
WINE_FIXME
(
"(
\"
%s
\"
,
\"
%s
\"
,
\"
%s
\"
)
\n
"
,
lpszPath
,
lpszWindow
,
keyword
);
...
...
programs/winhelp/macro.h
View file @
7ae1bb28
...
@@ -98,7 +98,7 @@ void CALLBACK MACRO_JumpContents(LPCSTR, LPCSTR);
...
@@ -98,7 +98,7 @@ void CALLBACK MACRO_JumpContents(LPCSTR, LPCSTR);
void
CALLBACK
MACRO_JumpContext
(
LPCSTR
,
LPCSTR
,
LONG
);
void
CALLBACK
MACRO_JumpContext
(
LPCSTR
,
LPCSTR
,
LONG
);
void
CALLBACK
MACRO_JumpHash
(
LPCSTR
,
LPCSTR
,
LONG
);
void
CALLBACK
MACRO_JumpHash
(
LPCSTR
,
LPCSTR
,
LONG
);
void
CALLBACK
MACRO_JumpHelpOn
(
void
);
void
CALLBACK
MACRO_JumpHelpOn
(
void
);
void
CALLBACK
MACRO_JumpID
(
LPCSTR
,
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_JumpID
(
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_JumpKeyword
(
LPCSTR
,
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_JumpKeyword
(
LPCSTR
,
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_KLink
(
LPCSTR
,
LONG
,
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_KLink
(
LPCSTR
,
LONG
,
LPCSTR
,
LPCSTR
);
void
CALLBACK
MACRO_Menu
(
void
);
void
CALLBACK
MACRO_Menu
(
void
);
...
...
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