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
8b4d4a9d
Commit
8b4d4a9d
authored
29 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sel_get_any_typed_uid): New function.
From-SVN: r10233
parent
a43ea319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
gcc/objc/selector.c
+23
-0
No files found.
gcc/objc/selector.c
View file @
8b4d4a9d
...
...
@@ -146,6 +146,29 @@ sel_get_typed_uid (const char *name, const char *types)
return
0
;
}
/* Return selector representing name; prefer a selector with non-NULL type */
SEL
sel_get_any_typed_uid
(
const
char
*
name
)
{
struct
objc_list
*
l
;
sidx
i
;
SEL
s
;
i
=
(
sidx
)
hash_value_for_key
(
__objc_selector_hash
,
name
);
if
(
i
==
0
)
return
0
;
for
(
l
=
(
struct
objc_list
*
)
sarray_get
(
__objc_selector_array
,
i
);
l
;
l
=
l
->
tail
)
{
s
=
(
SEL
)
l
->
head
;
if
(
s
->
sel_types
)
return
s
;
}
return
s
;
}
/* return selector representing name */
SEL
sel_get_any_uid
(
const
char
*
name
)
...
...
This diff is collapsed.
Click to expand it.
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