source: rcb-example/vector_int.h @ a0d9f94

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since a0d9f94 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 487 bytes
Line 
1#ifndef VECTOR_INT_H
2#define VECTOR_INT_H
3
4typedef struct vector_int
5{
6  int last;
7  int capacity;
8  int *data;
9} vector_int;
10
11
12vector_int vector_int_allocate();
13vector_int vector_int_allocate( int reserve );
14void vector_int_deallocate( vector_int );
15
16void reserve( vector_int *vec, int reserve );
17void append( vector_int *vec, int element );
18
19// implement bounded_array
20
21lvalue int ?[?]( vector_int vec, int index );
22int array_last( vector_int vec );
23
24#endif /* #ifndef VECTOR_INT_H */
Note: See TracBrowser for help on using the repository browser.