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
6842690e
Commit
6842690e
authored
Jul 31, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add declarations for malloc and realloc..
(PTR_INT_TYPE): New macro. (pcfinclude): Use it. From-SVN: r1734
parent
530fb43c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
gcc/cccp.c
+11
-3
No files found.
gcc/cccp.c
View file @
6842690e
...
...
@@ -47,6 +47,12 @@ typedef unsigned char U_CHAR;
#define LOCAL_INCLUDE_DIR "/usr/local/include"
#endif
#ifdef __STDC__
#define PTR_INT_TYPE ptrdiff_t
#else
#define PTR_INT_TYPE long
#endif
#include "pcp.h"
#ifndef STDC_VALUE
...
...
@@ -137,7 +143,7 @@ typedef struct { unsigned :16, :16, :16; } vms_ino_t;
#define INCLUDE_LEN_FUDGE 0
#endif
/*
Exporte
d declarations. */
/*
Forwar
d declarations. */
char
*
xmalloc
();
void
error
();
...
...
@@ -149,6 +155,7 @@ extern char *getenv ();
extern
FILE
*
fdopen
();
extern
char
*
version_string
;
extern
struct
tm
*
localtime
();
extern
char
*
malloc
(),
*
realloc
();
extern
int
sys_nerr
;
extern
char
*
sys_errlist
[];
...
...
@@ -4355,8 +4362,9 @@ pcfinclude (buf, limit, name, op)
/* by the text of the string (string_start) */
/* First skip to a longword boundary */
if
((
int
)
cp
&
3
)
cp
+=
4
-
((
int
)
cp
&
3
);
/* ??? Why a 4-byte boundary? On all machines? */
if
((
PTR_INT_TYPE
)
cp
&
3
)
cp
+=
4
-
((
PTR_INT_TYPE
)
cp
&
3
);
/* Now get the string. */
str
=
(
STRINGDEF
*
)
cp
;
...
...
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