Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
comparison DynArray.h @ 2:ad8621ee5986
Chgd name to DynArray
| author | Me |
|---|---|
| date | Thu, 02 Sep 2010 17:48:38 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:6eb66d3f6922 |
|---|---|
| 1 /* | |
| 2 * File: Vector.h | |
| 3 * Author: Me | |
| 4 * | |
| 5 * Created on May 14, 2010, 3:08 PM | |
| 6 */ | |
| 7 | |
| 8 #ifndef _VECTOR_H | |
| 9 #define _VECTOR_H | |
| 10 | |
| 11 #include "../VMS_primitive_data_types.h" | |
| 12 | |
| 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; | |
| 21 | |
| 22 Vector *createVect ( int32 initialSizeOfArray ); | |
| 23 void increaseSizeOfVect( Vector *vect ); | |
| 24 bool8 addToVect ( void *ptrToAdd, Vector *vect ); | |
| 25 bool8 removeLastInVect ( Vector *vect ); | |
| 26 | |
| 27 | |
| 28 #endif /* _VECTOR_H */ | |
| 29 |
