Mercurial > cgi-bin > hgwebdir.cgi > VMS > C_Libraries > DynArray
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 0:b3bcd3fe65ec | 1:8a6c204bf7e8 |
|---|---|
| 5 * Created on May 14, 2010, 3:08 PM | 5 * Created on May 14, 2010, 3:08 PM |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef _VECTOR_H | 8 #ifndef _VECTOR_H |
| 9 #define _VECTOR_H | 9 #define _VECTOR_H |
| 10 | |
| 11 #include "../VMS_primitive_data_types.h" | |
| 10 | 12 |
| 11 //Doing one special cheat -- hiding a back-ptr in front of array | 13 //Doing one special cheat -- hiding a back-ptr in front of array |
| 12 typedef struct | 14 typedef struct |
| 13 { | 15 { |
| 14 void **arrayOfPtrs; | 16 void **arrayOfPtrs; |
| 16 int sizeOfArray; | 18 int sizeOfArray; |
| 17 } | 19 } |
| 18 Vector; | 20 Vector; |
| 19 | 21 |
| 20 Vector *createVect ( int32 initialSizeOfArray ); | 22 Vector *createVect ( int32 initialSizeOfArray ); |
| 21 Vector *increaseSizeOfVect( Vector *vect ); | 23 void increaseSizeOfVect( Vector *vect ); |
| 22 bool8 addToVect ( void *ptrToAdd, Vector *vect ); | 24 bool8 addToVect ( void *ptrToAdd, Vector *vect ); |
| 23 bool8 removeLastInVect ( Vector *vect ); | 25 bool8 removeLastInVect ( Vector *vect ); |
| 24 | 26 |
| 25 | 27 |
| 26 #endif /* _VECTOR_H */ | 28 #endif /* _VECTOR_H */ |
