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
52112c7c
Commit
52112c7c
authored
Apr 10, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add declarations of xmalloc and xrealloc.
(cpp_parse_expr): Cast args to bcopy to char *. From-SVN: r9350
parent
800f087e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/cppexp.c
+4
-1
No files found.
gcc/cppexp.c
View file @
52112c7c
...
@@ -26,6 +26,9 @@ Written by Per Bothner 1994. */
...
@@ -26,6 +26,9 @@ Written by Per Bothner 1994. */
#include "config.h"
#include "config.h"
#include "cpplib.h"
#include "cpplib.h"
extern
char
*
xmalloc
PARAMS
((
unsigned
));
extern
char
*
xrealloc
PARAMS
((
char
*
,
unsigned
));
#ifdef MULTIBYTE_CHARS
#ifdef MULTIBYTE_CHARS
#include <stdlib.h>
#include <stdlib.h>
#include <locale.h>
#include <locale.h>
...
@@ -981,7 +984,7 @@ cpp_parse_expr (pfile)
...
@@ -981,7 +984,7 @@ cpp_parse_expr (pfile)
else
else
{
{
new_stack
=
(
struct
operation
*
)
xmalloc
(
new_size
);
new_stack
=
(
struct
operation
*
)
xmalloc
(
new_size
);
bcopy
(
stack
,
new_stack
,
old_size
);
bcopy
(
(
char
*
)
stack
,
(
char
*
)
new_stack
,
old_size
);
}
}
stack
=
new_stack
;
stack
=
new_stack
;
top
=
(
struct
operation
*
)((
char
*
)
new_stack
+
old_size
);
top
=
(
struct
operation
*
)((
char
*
)
new_stack
+
old_size
);
...
...
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