Changeset 50622a5
- Timestamp:
- Feb 28, 2007, 9:07:41 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- db90f03
- Parents:
- e849734
- git-author:
- Nelson Elhage <nelhage@mit.edu> (02/28/07 14:25:57)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (02/28/07 21:07:41)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
list.c
ref6e2d1 r50622a5 4 4 static const char fileIdent[] = "$Id$"; 5 5 6 #define INITSIZE 30 7 #define GROWAT 2 6 #define INITSIZE 10 8 7 #define GROWBY 1.5 9 8 … … 27 26 void *ptr; 28 27 29 if ((l->size+n) > (l->avail/GROWAT)) {28 if ((l->size+n) > l->avail) { 30 29 ptr=owl_realloc(l->list, l->avail*GROWBY*sizeof(void *)); 31 30 if (ptr==NULL) abort();
Note: See TracChangeset
for help on using the changeset viewer.