Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
view Vector.h @ 1:2698781db812
Not sure changes -- not being used in VMSHW_matrix_mult
| author | Me |
|---|---|
| date | Wed, 28 Jul 2010 13:14:00 -0700 |
| parents | b1f178ed41a3 |
| children |
line source
1 /*
2 * File: Vector.h
3 * Author: Me
4 *
5 * Created on May 14, 2010, 3:08 PM
6 */
8 #ifndef _VECTOR_H
9 #define _VECTOR_H
11 #include "../VMS_primitive_data_types.h"
13 //Doing one special cheat -- hiding a back-ptr in front of array
14 typedef struct
15 {
16 void **arrayOfPtrs;
17 int numPtrsInArray;
18 int sizeOfArray;
19 }
20 Vector;
22 Vector *createVect ( int32 initialSizeOfArray );
23 void increaseSizeOfVect( Vector *vect );
24 bool8 addToVect ( void *ptrToAdd, Vector *vect );
25 bool8 removeLastInVect ( Vector *vect );
28 #endif /* _VECTOR_H */
