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
42d28de5
Commit
42d28de5
authored
Jul 16, 2001
by
Nicola Pero
Committed by
Nicola Pero
Jul 16, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed object_is_class and object_is_metaclass
From-SVN: r44039
parent
0ae85492
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
libobjc/ChangeLog
+7
-0
libobjc/objc/objc-api.h
+9
-7
No files found.
libobjc/ChangeLog
View file @
42d28de5
Mon Jul 16 12:15:00 2001 Nicola Pero <n.pero@mi.flashnet.it>
* objc/objc-api.h (object_is_class): Fixed - buggy code was trying
to cast an id to a Class, which can not be done. Make the check
by using CLS_ISMETA on the class pointer instead.
(object_is_meta_class): Similar fix.
2001-06-09 Alexandre Oliva <aoliva@redhat.com>, Stephen L Moshier <moshier@mediaone.net>
* configure.in (AC_EXEEXT): Work around in case it expands to
...
...
libobjc/objc/objc-api.h
View file @
42d28de5
...
...
@@ -578,21 +578,23 @@ object_get_super_class
}
static
inline
BOOL
object_is_class
(
id
object
)
object_is_class
(
id
object
)
{
return
CLS_ISCLASS
((
Class
)
object
);
return
((
object
!=
nil
)
&&
CLS_ISMETA
(
object
->
class_pointer
)
);
}
static
inline
BOOL
object_is_instance
(
id
object
)
object_is_instance
(
id
object
)
{
return
(
object
!=
nil
)
&&
CLS_ISCLASS
(
object
->
class_pointer
);
return
(
(
object
!=
nil
)
&&
CLS_ISCLASS
(
object
->
class_pointer
)
);
}
static
inline
BOOL
object_is_meta_class
(
id
object
)
object_is_meta_class
(
id
object
)
{
return
CLS_ISMETA
((
Class
)
object
);
return
((
object
!=
nil
)
&&
!
object_is_instance
(
object
)
&&
!
object_is_class
(
object
));
}
struct
sarray
*
...
...
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