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
896fc322
Commit
896fc322
authored
Apr 30, 1995
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve cleaning up. See hangeLog.
From-SVN: r9554
parent
75410dc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
gcc/cpphash.c
+26
-11
No files found.
gcc/cpphash.c
View file @
896fc322
...
...
@@ -123,18 +123,21 @@ delete_macro (hp)
if
(
hp
==
*
hp
->
bucket_hdr
)
*
hp
->
bucket_hdr
=
hp
->
next
;
#if 0
if (hp->type == T_MACRO) {
DEFINITION *d = hp->value.defn;
struct reflist *ap, *nextap;
for (ap = d->pattern; ap != NULL; ap = nextap) {
nextap = ap->next;
free (ap);
if
(
hp
->
type
==
T_MACRO
)
{
DEFINITION
*
d
=
hp
->
value
.
defn
;
struct
reflist
*
ap
,
*
nextap
;
for
(
ap
=
d
->
pattern
;
ap
!=
NULL
;
ap
=
nextap
)
{
nextap
=
ap
->
next
;
free
(
ap
);
}
if
(
d
->
nargs
>=
0
)
free
(
d
->
args
.
argnames
);
free
(
d
);
}
free (d);
}
#endif
free
(
hp
);
}
/*
...
...
@@ -197,3 +200,15 @@ install (name, len, type, ivalue, value, hash)
hp
->
name
[
len
]
=
0
;
return
hp
;
}
void
cpp_hash_cleanup
(
pfile
)
cpp_reader
*
pfile
;
{
register
int
i
;
for
(
i
=
HASHSIZE
;
--
i
>=
0
;
)
{
while
(
hashtab
[
i
])
delete_macro
(
hashtab
[
i
]);
}
}
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