# HG changeset patch # User Me # Date 1280348040 25200 # Node ID 2698781db8128058f86a5e4deb86d5d621d2d95f # Parent b1f178ed41a3a0458bee5be1f7839bf1a244e64a Not sure changes -- not being used in VMSHW_matrix_mult diff -r b1f178ed41a3 -r 2698781db812 Vector.c --- a/Vector.c Sat May 22 19:51:49 2010 -0700 +++ b/Vector.c Wed Jul 28 13:14:00 2010 -0700 @@ -9,6 +9,7 @@ #include #include +#include "Vector.h" /*make a struct with the sizes and a pointer to the @@ -22,7 +23,7 @@ * the array ptr from the vector struct at the sequence start.. */ bool8 -addToVect( Vector *vect, void *ptrToElem ) +addToVect( void *ptrToElem, Vector *vect ) { int32 numPtrsInVect, sizeOfVect; /* @@ -38,7 +39,7 @@ vect->numPtrsInArray++; } -void ** +void increaseSizeOfVect( Vector *vect ) { int32 oldSizeOfArray, newSizeOfArray, i; void **newArray, **oldArray; @@ -57,7 +58,6 @@ vect->sizeOfArray = newSizeOfArray; free( oldArray -1 ); - return newArray; } /* diff -r b1f178ed41a3 -r 2698781db812 Vector.h --- a/Vector.h Sat May 22 19:51:49 2010 -0700 +++ b/Vector.h Wed Jul 28 13:14:00 2010 -0700 @@ -8,6 +8,8 @@ #ifndef _VECTOR_H #define _VECTOR_H +#include "../VMS_primitive_data_types.h" + //Doing one special cheat -- hiding a back-ptr in front of array typedef struct { @@ -18,7 +20,7 @@ Vector; Vector *createVect ( int32 initialSizeOfArray ); -Vector *increaseSizeOfVect( Vector *vect ); +void increaseSizeOfVect( Vector *vect ); bool8 addToVect ( void *ptrToAdd, Vector *vect ); bool8 removeLastInVect ( Vector *vect );