Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bd8d449d
Commit
bd8d449d
authored
Jun 17, 2002
by
Nicola Pero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warning from __objc_get_forward_imp not returning a value
From-SVN: r54707
parent
97272202
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
27 deletions
+31
-27
libobjc/sendmsg.c
+31
-27
No files found.
libobjc/sendmsg.c
View file @
bd8d449d
...
@@ -78,33 +78,37 @@ static Method_t search_for_method_in_hierarchy (Class class, SEL sel);
...
@@ -78,33 +78,37 @@ static Method_t search_for_method_in_hierarchy (Class class, SEL sel);
Method_t
search_for_method_in_list
(
MethodList_t
list
,
SEL
op
);
Method_t
search_for_method_in_list
(
MethodList_t
list
,
SEL
op
);
id
nil_method
(
id
,
SEL
,
...);
id
nil_method
(
id
,
SEL
,
...);
/* Given a selector, return the proper forwarding implementation. */
/* Given a selector, return the proper forwarding implementation. */
__inline__
__inline__
IMP
IMP
__objc_get_forward_imp
(
SEL
sel
)
__objc_get_forward_imp
(
SEL
sel
)
{
{
if
(
__objc_msg_forward
)
/* If a custom forwarding hook was registered, try getting a forwarding
{
* function from it. */
IMP
result
;
if
(
__objc_msg_forward
)
if
((
result
=
__objc_msg_forward
(
sel
)))
{
return
result
;
IMP
result
;
}
if
((
result
=
__objc_msg_forward
(
sel
))
!=
NULL
)
else
return
result
;
{
}
const
char
*
t
=
sel
->
sel_types
;
/* In all other cases, use the default forwarding functions built using
if
(
t
&&
(
*
t
==
'['
||
*
t
==
'('
||
*
t
==
'{'
)
* __builtin_apply and friends. */
#ifdef OBJC_MAX_STRUCT_BY_VALUE
{
&&
objc_sizeof_type
(
t
)
>
OBJC_MAX_STRUCT_BY_VALUE
const
char
*
t
=
sel
->
sel_types
;
#endif
)
if
(
t
&&
(
*
t
==
'['
||
*
t
==
'('
||
*
t
==
'{'
)
return
(
IMP
)
__objc_block_forward
;
#ifdef OBJC_MAX_STRUCT_BY_VALUE
else
if
(
t
&&
(
*
t
==
'f'
||
*
t
==
'd'
))
&&
objc_sizeof_type
(
t
)
>
OBJC_MAX_STRUCT_BY_VALUE
return
(
IMP
)
__objc_double_forward
;
#endif
else
)
return
(
IMP
)
__objc_word_forward
;
return
(
IMP
)
__objc_block_forward
;
}
else
if
(
t
&&
(
*
t
==
'f'
||
*
t
==
'd'
))
}
return
(
IMP
)
__objc_double_forward
;
else
return
(
IMP
)
__objc_word_forward
;
}
}
/* Given a class and selector, return the selector's implementation. */
/* Given a class and selector, return the selector's implementation. */
__inline__
__inline__
...
...
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