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
cfdfa110
Commit
cfdfa110
authored
Mar 30, 2004
by
Zack Weinberg
Committed by
Zack Weinberg
Mar 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hashtab.h, splay-tree.h: Use new shorter form of GTY markers.
From-SVN: r80092
parent
1431042e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
8 deletions
+12
-8
include/ChangeLog
+4
-0
include/hashtab.h
+2
-2
include/splay-tree.h
+6
-6
No files found.
include/ChangeLog
View file @
cfdfa110
2004-03-30 Zack Weinberg <zack@codesourcery.com>
* hashtab.h, splay-tree.h: Use new shorter form of GTY markers.
2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
* dyn-string.h: Update copyright date.
...
...
include/hashtab.h
View file @
cfdfa110
...
...
@@ -99,7 +99,7 @@ struct htab GTY(())
htab_del
del_f
;
/* Table itself. */
PTR
*
GTY
((
use_param
(
""
)
,
length
(
"%h.size"
)))
entries
;
PTR
*
GTY
((
use_param
,
length
(
"%h.size"
)))
entries
;
/* Current size (in entries) of the hash table */
size_t
size
;
...
...
@@ -123,7 +123,7 @@ struct htab GTY(())
htab_free
free_f
;
/* Alternate allocate/free functions, which take an extra argument. */
PTR
GTY
((
skip
(
""
)
))
alloc_arg
;
PTR
GTY
((
skip
))
alloc_arg
;
htab_alloc_with_arg
alloc_with_arg_f
;
htab_free_with_arg
free_with_arg_f
;
};
...
...
include/splay-tree.h
View file @
cfdfa110
...
...
@@ -81,21 +81,21 @@ typedef void (*splay_tree_deallocate_fn) PARAMS((void *, void *));
struct
splay_tree_node_s
GTY
(())
{
/* The key. */
splay_tree_key
GTY
((
use_param1
(
""
)
))
key
;
splay_tree_key
GTY
((
use_param1
))
key
;
/* The value. */
splay_tree_value
GTY
((
use_param2
(
""
)
))
value
;
splay_tree_value
GTY
((
use_param2
))
value
;
/* The left and right children, respectively. */
splay_tree_node
GTY
((
use_params
(
""
)
))
left
;
splay_tree_node
GTY
((
use_params
(
""
)
))
right
;
splay_tree_node
GTY
((
use_params
))
left
;
splay_tree_node
GTY
((
use_params
))
right
;
};
/* The splay tree itself. */
struct
splay_tree_s
GTY
(())
{
/* The root of the tree. */
splay_tree_node
GTY
((
use_params
(
""
)
))
root
;
splay_tree_node
GTY
((
use_params
))
root
;
/* The comparision function. */
splay_tree_compare_fn
comp
;
...
...
@@ -109,7 +109,7 @@ struct splay_tree_s GTY(())
/* Allocate/free functions, and a data pointer to pass to them. */
splay_tree_allocate_fn
allocate
;
splay_tree_deallocate_fn
deallocate
;
PTR
GTY
((
skip
(
""
)
))
allocate_data
;
PTR
GTY
((
skip
))
allocate_data
;
};
typedef
struct
splay_tree_s
*
splay_tree
;
...
...
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