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
97a7f457
Commit
97a7f457
authored
26 years ago
by
Richard Henderson
Committed by
Richard Henderson
26 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* objc/archive.c: Remove <string.h> prototypes.
From-SVN: r20769
parent
dfcb37f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
13 deletions
+27
-13
gcc/ChangeLog
+4
-0
gcc/objc/archive.c
+23
-13
No files found.
gcc/ChangeLog
View file @
97a7f457
Sat Jun 27 23:02:04 1998 Richard Henderson <rth@cygnus.com>
* objc/archive.c: Remove <string.h> prototypes.
Sat Jun 27 22:37:05 1998 Jeffrey A Law (law@cygnus.com)
* tm.texi (NEED_MATH_LIBRARY): Document new target macro.
...
...
This diff is collapsed.
Click to expand it.
gcc/objc/archive.c
View file @
97a7f457
...
...
@@ -24,10 +24,15 @@ Boston, MA 02111-1307, USA. */
however invalidate any other reasons why the executable file might be
covered by the GNU General Public License. */
#include "config.h"
#include "runtime.h"
#include "typedstream.h"
#include "encoding.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
extern
int
fflush
(
FILE
*
);
#define ROUND(V, A) \
...
...
@@ -357,8 +362,11 @@ __objc_write_extension (struct objc_typed_stream* stream, unsigned char code)
return
(
*
stream
->
write
)(
stream
->
physical
,
&
buf
,
1
);
}
else
objc_error
(
nil
,
OBJC_ERR_BAD_OPCODE
,
"__objc_write_extension: bad opcode %c
\n
"
,
code
);
{
objc_error
(
nil
,
OBJC_ERR_BAD_OPCODE
,
"__objc_write_extension: bad opcode %c
\n
"
,
code
);
return
-
1
;
}
}
__inline__
int
...
...
@@ -391,7 +399,7 @@ objc_write_object_reference (struct objc_typed_stream* stream, id object)
int
objc_write_root_object
(
struct
objc_typed_stream
*
stream
,
id
object
)
{
int
len
;
int
len
=
0
;
if
(
stream
->
writing_root_p
)
objc_error
(
nil
,
OBJC_ERR_RECURSE_ROOT
,
"objc_write_root_object called recursively"
);
...
...
@@ -426,12 +434,6 @@ objc_write_object (struct objc_typed_stream* stream, id object)
}
}
#ifdef __alpha__
extern
int
atoi
(
const
char
*
);
extern
size_t
strlen
(
const
char
*
);
extern
size_t
strcpy
(
char
*
,
const
char
*
);
#endif
__inline__
int
__objc_write_class
(
struct
objc_typed_stream
*
stream
,
struct
objc_class
*
class
)
{
...
...
@@ -1065,8 +1067,11 @@ objc_write_type(TypedStream* stream, const char* type, const void* data)
}
default:
objc_error
(
nil
,
OBJC_ERR_BAD_TYPE
,
"objc_write_type: cannot parse typespec: %s
\n
"
,
type
);
{
objc_error
(
nil
,
OBJC_ERR_BAD_TYPE
,
"objc_write_type: cannot parse typespec: %s
\n
"
,
type
);
return
0
;
}
}
}
...
...
@@ -1158,8 +1163,11 @@ objc_read_type(TypedStream* stream, const char* type, void* data)
}
default:
objc_error
(
nil
,
OBJC_ERR_BAD_TYPE
,
"objc_read_type: cannot parse typespec: %s
\n
"
,
type
);
{
objc_error
(
nil
,
OBJC_ERR_BAD_TYPE
,
"objc_read_type: cannot parse typespec: %s
\n
"
,
type
);
return
0
;
}
}
}
...
...
@@ -1423,12 +1431,14 @@ static int
__objc_no_write
(
FILE
*
file
,
char
*
data
,
int
len
)
{
objc_error
(
nil
,
OBJC_ERR_NO_WRITE
,
"TypedStream not open for writing"
);
return
0
;
}
static
int
__objc_no_read
(
FILE
*
file
,
char
*
data
,
int
len
)
{
objc_error
(
nil
,
OBJC_ERR_NO_READ
,
"TypedStream not open for reading"
);
return
0
;
}
static
int
...
...
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