comparison src/dynarr.c @ 440:8de8e3f6228a r21-2-28

Import from CVS: tag r21-2-28
author cvs
date Mon, 13 Aug 2007 11:33:38 +0200
parents 3ecd8885ac67
children abe6d1db359e
comparison
equal deleted inserted replaced
439:357dd071b03c 440:8de8e3f6228a
99 Destroy a dynamic array and the memory allocated to it. 99 Destroy a dynamic array and the memory allocated to it.
100 100
101 Use the following global variable: 101 Use the following global variable:
102 102
103 Dynarr_min_size 103 Dynarr_min_size
104 Minimum allowable size for a dynamic array when it is resized. The 104 Minimum allowable size for a dynamic array when it is resized.
105 default is 32 and does not normally need to be changed.
106 105
107 */ 106 */
108 107
109 #include <config.h> 108 #include <config.h>
110 #include "lisp.h" 109 #include "lisp.h"
111 110
112 int Dynarr_min_size = 1; 111 static int Dynarr_min_size = 8;
113 112
114 static void 113 static void
115 Dynarr_realloc (Dynarr *dy, int new_size) 114 Dynarr_realloc (Dynarr *dy, int new_size)
116 { 115 {
117 if (DUMPEDP (dy->base)) 116 if (DUMPEDP (dy->base))