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
605bf730
Commit
605bf730
authored
Jan 15, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(objc_{write,read}_type, case _C_STRUCT_B): Fix typo.
From-SVN: r10990
parent
3d27140a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
gcc/objc/archive.c
+17
-10
No files found.
gcc/objc/archive.c
View file @
605bf730
/* GNU Objective C Runtime archiving
Copyright (C) 1993, 1995 Free Software Foundation, Inc.
Copyright (C) 1993, 1995
, 1996
Free Software Foundation, Inc.
Contributed by Kresten Krab Thorup
This file is part of GNU CC.
...
...
@@ -1025,7 +1025,8 @@ objc_write_type(TypedStream* stream, const char* type, const void* data)
case
_C_ARY_B
:
{
int
len
=
atoi
(
type
+
1
);
while
(
isdigit
(
*++
type
));
while
(
isdigit
(
*++
type
))
;
return
objc_write_array
(
stream
,
type
,
len
,
data
);
}
break
;
...
...
@@ -1034,8 +1035,9 @@ objc_write_type(TypedStream* stream, const char* type, const void* data)
{
int
acc_size
=
0
;
int
align
;
while
(
*
type
!=
_C_STRUCT_E
&&
*
type
++
!=
'='
);
/* skip "<name>=" */
while
(
*
type
!=
_C_STRUCT_E
);
while
(
*
type
!=
_C_STRUCT_E
&&
*
type
++
!=
'='
)
;
/* skip "<name>=" */
while
(
*
type
!=
_C_STRUCT_E
)
{
align
=
objc_alignof_type
(
type
);
/* padd to alignment */
acc_size
+=
ROUND
(
acc_size
,
align
);
...
...
@@ -1116,7 +1118,8 @@ objc_read_type(TypedStream* stream, const char* type, void* data)
case
_C_ARY_B
:
{
int
len
=
atoi
(
type
+
1
);
while
(
isdigit
(
*++
type
));
while
(
isdigit
(
*++
type
))
;
return
objc_read_array
(
stream
,
type
,
len
,
data
);
}
break
;
...
...
@@ -1125,8 +1128,9 @@ objc_read_type(TypedStream* stream, const char* type, void* data)
{
int
acc_size
=
0
;
int
align
;
while
(
*
type
!=
_C_STRUCT_E
&&
*
type
++
!=
'='
);
/* skip "<name>=" */
while
(
*
type
!=
_C_STRUCT_E
);
while
(
*
type
!=
_C_STRUCT_E
&&
*
type
++
!=
'='
)
;
/* skip "<name>=" */
while
(
*
type
!=
_C_STRUCT_E
)
{
align
=
objc_alignof_type
(
type
);
/* padd to alignment */
acc_size
+=
ROUND
(
acc_size
,
align
);
...
...
@@ -1229,7 +1233,8 @@ objc_write_types (TypedStream* stream, const char* type, ...)
{
int
len
=
atoi
(
c
+
1
);
const
char
*
t
=
c
;
while
(
isdigit
(
*++
t
));
while
(
isdigit
(
*++
t
))
;
res
=
objc_write_array
(
stream
,
t
,
len
,
va_arg
(
args
,
void
*
));
t
=
objc_skip_typespec
(
t
);
if
(
*
t
!=
_C_ARY_E
)
...
...
@@ -1320,7 +1325,8 @@ objc_read_types(TypedStream* stream, const char* type, ...)
{
int
len
=
atoi
(
c
+
1
);
const
char
*
t
=
c
;
while
(
isdigit
(
*++
t
));
while
(
isdigit
(
*++
t
))
;
res
=
objc_read_array
(
stream
,
t
,
len
,
va_arg
(
args
,
void
*
));
t
=
objc_skip_typespec
(
t
);
if
(
*
t
!=
_C_ARY_E
)
...
...
@@ -1422,7 +1428,8 @@ __objc_read_typed_stream_signature (TypedStream* stream)
int
pos
=
0
;
do
(
*
stream
->
read
)(
stream
->
physical
,
buffer
+
pos
,
1
);
while
(
buffer
[
pos
++
]
!=
'\0'
);
while
(
buffer
[
pos
++
]
!=
'\0'
)
;
sscanf
(
buffer
,
"GNU TypedStream %d"
,
&
stream
->
version
);
if
(
stream
->
version
!=
OBJC_TYPED_STREAM_VERSION
)
__objc_fatal
(
"cannot handle TypedStream version %d"
,
stream
->
version
);
...
...
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