/*1* This file is part of libdyn.a, the C Dynamic Object library. It2* contains the private header file.3*4* There are no restrictions on this code; however, if you make any5* changes, I request that you document them so that I do not get6* credit or blame for your modifications.7*8* Written by Barr3y Jaspan, Student Information Processing Board (SIPB)9* and MIT-Project Athena, 1989.10*/111213/*14* dynP.h -- private header file included by source files for libdyn.a.15*/1617#ifndef _DynP_h18#define _DynP_h1920#include "dyn.h"21#ifdef USE_DBMALLOC22#include <sys/stdtypes.h>23#include <malloc.h>24#endif2526/*27* Rep invariant:28* 1) el_size is the number of bytes per element in the object29* 2) num_el is the number of elements currently in the object. It is30* one higher than the highest index at which an element lives.31* 3) size is the number of elements the object can hold without32* resizing. num_el <= index.33* 4) inc is a multiple of the number of elements the object grows by34* each time it is reallocated.35*/3637typedef struct _DynObject DynObjectRecP, *DynObjectP;3839#define _DynRealloc gssrpcint_DynRealloc40#define _DynResize gssrpcint_DynResize4142/* Internal functions */43int _DynRealloc (DynObjectP obj, int req),44_DynResize (DynObjectP obj, int req);4546#undef P4748#endif /* _DynP_h */49/* DON'T ADD STUFF AFTER THIS #endif */505152