X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fdynarr.c;h=9a173a952b5d4a87e207e4a7643780db8363c563;hb=15fd1e6e063e07e811ab9d9e4611682baa4df555;hp=02f43437dea2f0239ccf4546a272b9d9cf2ce6e2;hpb=376658ea71d16dced8acff36c3e385ac3738d868;p=chise%2Fxemacs-chise.git diff --git a/src/dynarr.c b/src/dynarr.c index 02f4343..9a173a9 100644 --- a/src/dynarr.c +++ b/src/dynarr.c @@ -101,15 +101,14 @@ Use the following functions/macros: Use the following global variable: Dynarr_min_size - Minimum allowable size for a dynamic array when it is resized. The - default is 32 and does not normally need to be changed. + Minimum allowable size for a dynamic array when it is resized. */ #include #include "lisp.h" -int Dynarr_min_size = 1; +static int Dynarr_min_size = 8; static void Dynarr_realloc (Dynarr *dy, int new_size) @@ -158,7 +157,7 @@ Dynarr_resize (void *d, int size) /* Add a number of contiguous elements to the array starting at START. */ void -Dynarr_insert_many (void *d, CONST void *el, int len, int start) +Dynarr_insert_many (void *d, const void *el, int len, int start) { Dynarr *dy = (Dynarr *) d;