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
2a68a7de
Commit
2a68a7de
authored
Aug 15, 2004
by
Ben Elliston
Committed by
Ben Elliston
Aug 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* vec.h: Comment improvements.
From-SVN: r86021
parent
b790003a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/vec.h
+5
-5
No files found.
gcc/ChangeLog
View file @
2a68a7de
2004-08-15 Ben Elliston <bje@au.ibm.com>
* vec.h: Comment improvements.
2004-08-14 Roger Sayle <roger@eyesopen.com>
* c-common.c (shorten_compare, pointer_int_sum,
...
...
gcc/vec.h
View file @
2a68a7de
...
...
@@ -81,10 +81,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
the 'space' predicate will tell you whether there is spare capacity
in the vector. You will not normally need to use these two functions.
Vector types are defined using a DEF_VEC_
x
(TYPEDEF) macro, and
Vector types are defined using a DEF_VEC_
{O,P}
(TYPEDEF) macro, and
variables of vector type are declared using a VEC(TYPEDEF)
macro. The
'x' letter indicates whether TYPEDEF is a pointer (P) o
r
object (O) type.
macro. The
characters O and P indicate whether TYPEDEF is a pointe
r
(P) or
object (O) type.
An example of their use would be,
...
...
@@ -99,8 +99,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
if (VEC_length(tree,s->v)) { we have some contents }
VEC_safe_push(tree,s->v,decl); // append some decl onto the end
for (ix = 0; VEC_iterate(tree,s->v,ix,t); ix++)
{ do something with t }
for (ix = 0; VEC_iterate(tree,s->v,ix,
el
t); ix++)
{ do something with
el
t }
*/
...
...
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