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
12d94bff
Commit
12d94bff
authored
Mar 15, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(objc_module): Eliminate statics variable.
From-SVN: r13713
parent
d3d71914
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
14 deletions
+20
-14
gcc/objc/objc-api.h
+20
-14
No files found.
gcc/objc/objc-api.h
View file @
12d94bff
...
...
@@ -134,6 +134,16 @@ objc_error_handler objc_set_error_handler(objc_error_handler func);
extern
BOOL
objc_trace
;
/* For every class which happens to have statically allocated instances in
this module, one OBJC_STATIC_INSTANCES is allocated by the compiler.
INSTANCES is NULL terminated and points to all statically allocated
instances of this class. */
struct
objc_static_instances
{
char
*
class_name
;
id
instances
[
0
];
};
/*
** Whereas a Module (defined further down) is the root (typically) of a file,
** a Symtab is the root of the class and category definitions within the
...
...
@@ -150,23 +160,16 @@ typedef struct objc_symtab {
unsigned
short
cat_def_cnt
;
/* Number of categories
compiled (defined) in the
module. */
void
*
defs
[
1
];
/* Variable array of pointers.
cls_def_cnt of type Class
followed by cat_def_cnt of
type Category_t. */
type Category_t, followed
by a NULL terminated array
of objc_static_instances. */
}
Symtab
,
*
Symtab_t
;
/* For every class which happens to have statically allocated instances in
this module, one OBJC_STATIC_INSTANCES is allocated by the compiler.
INSTANCES is NULL terminated and points to all statically allocated
instances of this class. */
struct
objc_static_instances
{
char
*
class_name
;
id
instances
[
0
];
};
/*
** The compiler generates one of these structures for each module that
** composes the executable (eg main.m).
...
...
@@ -183,9 +186,6 @@ typedef struct objc_module {
module was generated. The
name includes the path. */
/* Pointer to a NULL terminated array of objc_static_instances. */
struct
objc_static_instances
**
statics
;
Symtab_t
symtab
;
/* Pointer to the Symtab of
the module. The Symtab
holds an array of
...
...
@@ -443,6 +443,12 @@ BOOL sel_is_mapped (SEL aSel);
extern
id
class_create_instance
(
Class
class
);
/* You should call this function immediately after a bundle has loaded the
code. This function sends the +load message to all classes/categories
just loaded and then calls the _objc_load_callback function for each
class/category. */
extern
void
objc_send_load
(
void
);
static
inline
const
char
*
class_get_class_name
(
Class
class
)
{
...
...
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