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
2e226581
Commit
2e226581
authored
Feb 28, 2001
by
Ovidiu Predescu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document the @compatibility_alias compiler directive (description from
Nicola Pero <n.pero@mi.flashnet.it>). From-SVN: r40125
parent
25ad894f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
2 deletions
+32
-2
libobjc/objc-features.texi
+32
-2
No files found.
libobjc/objc-features.texi
View file @
2e226581
...
...
@@ -21,6 +21,7 @@ comments about this document to Ovidiu Predescu
*
Type
encoding
::
*
Garbage
Collection
::
*
Constant
string
objects
::
*
compatibility_alias
::
@end
menu
@node
Executing
code
before
main
,
Type
encoding
,
Top
,
Top
...
...
@@ -386,7 +387,7 @@ specifier to the string type description of the instance variable named
as
argument
.
@c
=========================================================================
@node
Constant
string
objects
,
,
Garbage
Collection
,
Top
@node
Constant
string
objects
,
compatibility_alias
,
Garbage
Collection
,
Top
@comment
node
-
name
,
next
,
previous
,
up
@section
Constant
string
objects
...
...
@@ -430,5 +431,34 @@ as argument to this option. It is possible to have multiple compilation
units
referring
to
different
constant
string
classes
,
neither
the
compiler
nor
the
linker
impose
any
restrictions
in
doing
this
.
@bye
@c
=========================================================================
@node
compatibility_alias
,
,
Constant
string
objects
,
Top
@comment
node
-
name
,
next
,
previous
,
up
@section
compatibility_alias
This
is
a
feature
of
the
Objective
-
C
compiler
rather
than
of
the
runtime
,
anyway
since
it
is
documented
nowhere
and
its
existence
was
forgotten
,
we
are
documenting
it
here
.
The
keyword
@code
{
@@compatibility
_alias
}
allows
you
to
define
a
class
name
as
equivalent
to
another
class
name
.
For
example
:
@example
@@compatibility
_alias
WOApplication
GSWApplication
;
@end
example
tells
the
compiler
that
each
time
it
encounters
@code
{
WOApplication
}
as
a
class
name
,
it
should
replace
it
with
@code
{
GSWApplication
}
(
that
is
,
@code
{
WOApplication
}
is
just
an
alias
for
@code
{
GSWApplication
}).
There
are
some
constraints
on
how
this
can
be
used
-
@itemize
@bullet
@item
@code
{
WOApplication
}
(
the
alias
)
must
not
be
an
existing
class
;
@item
@code
{
GSWApplication
}
(
the
real
class
)
must
be
an
existing
class
.
@end
itemize
@bye
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