Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
annotate DynArray.h @ 2:ad8621ee5986
Chgd name to DynArray
| author | Me |
|---|---|
| date | Thu, 02 Sep 2010 17:48:38 -0700 |
| parents | |
| children |
| rev | line source |
|---|---|
| Me@2 | 1 /* |
| Me@2 | 2 * File: Vector.h |
| Me@2 | 3 * Author: Me |
| Me@2 | 4 * |
| Me@2 | 5 * Created on May 14, 2010, 3:08 PM |
| Me@2 | 6 */ |
| Me@2 | 7 |
| Me@2 | 8 #ifndef _VECTOR_H |
| Me@2 | 9 #define _VECTOR_H |
| Me@2 | 10 |
| Me@2 | 11 #include "../VMS_primitive_data_types.h" |
| Me@2 | 12 |
| Me@2 | 13 //Doing one special cheat -- hiding a back-ptr in front of array |
| Me@2 | 14 typedef struct |
| Me@2 | 15 { |
| Me@2 | 16 void **arrayOfPtrs; |
| Me@2 | 17 int numPtrsInArray; |
| Me@2 | 18 int sizeOfArray; |
| Me@2 | 19 } |
| Me@2 | 20 Vector; |
| Me@2 | 21 |
| Me@2 | 22 Vector *createVect ( int32 initialSizeOfArray ); |
| Me@2 | 23 void increaseSizeOfVect( Vector *vect ); |
| Me@2 | 24 bool8 addToVect ( void *ptrToAdd, Vector *vect ); |
| Me@2 | 25 bool8 removeLastInVect ( Vector *vect ); |
| Me@2 | 26 |
| Me@2 | 27 |
| Me@2 | 28 #endif /* _VECTOR_H */ |
| Me@2 | 29 |
