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
a142e7cc
Commit
a142e7cc
authored
May 09, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(__objc_send_initialize): Call superclass if object does not implement
+initialize. From-SVN: r9597
parent
fa1b1451
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
gcc/objc/sendmsg.c
+21
-15
No files found.
gcc/objc/sendmsg.c
View file @
a142e7cc
...
...
@@ -236,28 +236,34 @@ static void __objc_send_initialize(Class class)
__objc_send_initialize
(
class
->
super_class
);
{
MethodList_t
method_list
=
class
->
class_pointer
->
methods
;
SEL
op
=
sel_register_name
(
"initialize"
);
SEL
op
=
sel_register_name
(
"initialize"
);
Class
tmpclass
=
class
;
IMP
imp
=
0
;
/* If not found then we'll search the list. */
while
(
method_list
)
{
while
(
!
imp
&&
tmpclass
)
{
MethodList_t
method_list
=
tmpclass
->
class_pointer
->
methods
;
while
(
!
imp
&&
method_list
)
{
int
i
;
Method_t
method
;
/* Search the method list. */
for
(
i
=
0
;
i
<
method_list
->
method_count
;
++
i
)
{
Method_t
method
=
&
method_list
->
method_list
[
i
];
if
(
method
->
method_name
->
sel_id
==
op
->
sel_id
)
(
*
method
->
method_imp
)((
id
)
class
,
op
);
for
(
i
=
0
;
i
<
method_list
->
method_count
;
i
++
)
{
method
=
&
(
method_list
->
method_list
[
i
]);
if
(
method
->
method_name
->
sel_id
==
op
->
sel_id
)
{
imp
=
method
->
method_imp
;
break
;
}
}
/* The method wasn't found. Follow the link to the next list of
methods. */
method_list
=
method_list
->
method_next
;
}
tmpclass
=
tmpclass
->
super_class
;
}
if
(
imp
)
(
*
imp
)((
id
)
class
,
op
);
}
}
}
...
...
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