/* CF2_ArrStack uses an error pointer, to enable shared errors. Shared errors are necessary when multiple objects allow the program to continue after detecting errors. Only the first error should be recorded.  */
cf2_arrstack_init(CF2_ArrStack arrstack, FT_Memory memory, FT_Error *error, size_t sizeItem)
/* CF2_ArrStack uses an error pointer, to enable shared errors. Shared errors are necessary when multiple objects allow the program to continue after detecting errors. Only the first error should be recorded.  */
cf2_arrstack_init(CF2_ArrStack arrstack, FT_Memory memory, FT_Error *error, size_t sizeItem)
{
    FT_ASSERT( arrstack != NULL );
    arrstack->memory    = memory;
    arrstack->error     = error;
    arrstack->sizeItem  = sizeItem;
    arrstack->allocated = 0;
    arrstack->chunk     = 10;
    arrstack->count     = 0;
    arrstack->totalSize = 0;
    arrstack->ptr       = NULL;
  }