xref: /onnv-gate/usr/src/lib/krb5/dyn/dynP.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright (c) 1997-2000 by Sun Microsystems, Inc.
3*0Sstevel@tonic-gate  * All rights reserved.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate 
6*0Sstevel@tonic-gate #ifndef _KRB5_DYN_DYNP_H
7*0Sstevel@tonic-gate #define	_KRB5_DYN_DYNP_H
8*0Sstevel@tonic-gate 
9*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
10*0Sstevel@tonic-gate 
11*0Sstevel@tonic-gate #ifdef	__cplusplus
12*0Sstevel@tonic-gate extern "C" {
13*0Sstevel@tonic-gate #endif
14*0Sstevel@tonic-gate 
15*0Sstevel@tonic-gate 
16*0Sstevel@tonic-gate /*
17*0Sstevel@tonic-gate  * This file is part of libdyn.a, the C Dynamic Object library.  It
18*0Sstevel@tonic-gate  * contains the private header file.
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * There are no restrictions on this code; however, if you make any
21*0Sstevel@tonic-gate  * changes, I request that you document them so that I do not get
22*0Sstevel@tonic-gate  * credit or blame for your modifications.
23*0Sstevel@tonic-gate  *
24*0Sstevel@tonic-gate  * Written by Barr3y Jaspan, Student Information Processing Board (SIPB)
25*0Sstevel@tonic-gate  * and MIT-Project Athena, 1989.
26*0Sstevel@tonic-gate  */
27*0Sstevel@tonic-gate 
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate /*
30*0Sstevel@tonic-gate  * dynP.h -- private header file included by source files for libdyn.a.
31*0Sstevel@tonic-gate  */
32*0Sstevel@tonic-gate 
33*0Sstevel@tonic-gate 
34*0Sstevel@tonic-gate #include "dyn.h"
35*0Sstevel@tonic-gate #ifdef USE_DBMALLOC
36*0Sstevel@tonic-gate #include <sys/stdtypes.h>
37*0Sstevel@tonic-gate #include <malloc.h>
38*0Sstevel@tonic-gate #endif
39*0Sstevel@tonic-gate 
40*0Sstevel@tonic-gate /*
41*0Sstevel@tonic-gate  * Rep invariant:
42*0Sstevel@tonic-gate  * 1) el_size is the number of bytes per element in the object
43*0Sstevel@tonic-gate  * 2) num_el is the number of elements currently in the object.  It is
44*0Sstevel@tonic-gate  * one higher than the highest index at which an element lives.
45*0Sstevel@tonic-gate  * 3) size is the number of elements the object can hold without
46*0Sstevel@tonic-gate  * resizing.  num_el <= index.
47*0Sstevel@tonic-gate  * 4) inc is a multiple of the number of elements the object grows by
48*0Sstevel@tonic-gate  * each time it is reallocated.
49*0Sstevel@tonic-gate  */
50*0Sstevel@tonic-gate 
51*0Sstevel@tonic-gate typedef struct _DynObject DynObjectRecP, *DynObjectP;
52*0Sstevel@tonic-gate 
53*0Sstevel@tonic-gate /* Internal functions */
54*0Sstevel@tonic-gate int _DynRealloc(), _DynResize();
55*0Sstevel@tonic-gate 
56*0Sstevel@tonic-gate /*
57*0Sstevel@tonic-gate  * N.B. The original code had the following comment line after that last #endif:
58*0Sstevel@tonic-gate  * DON'T ADD STUFF AFTER THIS #endif *
59*0Sstevel@tonic-gate  * Ignoring the fact that this line itself was after the #endif, the line
60*0Sstevel@tonic-gate  * caused unacceptable hdrchk breakage. If this results in a build breakage,
61*0Sstevel@tonic-gate  * the build MUST be fixed in a more acceptable fashion.
62*0Sstevel@tonic-gate  */
63*0Sstevel@tonic-gate 
64*0Sstevel@tonic-gate #ifdef	__cplusplus
65*0Sstevel@tonic-gate }
66*0Sstevel@tonic-gate #endif
67*0Sstevel@tonic-gate 
68*0Sstevel@tonic-gate #endif	/* !_KRB5_DYN_DYNP_H */
69