/[global]/global/libutil/varray.c
ViewVC logotype

Diff of /global/libutil/varray.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.3 by h-iwamoto, Mon Jul 11 10:28:36 2005 UTC
# Line 147  varray_assign(vb, index, force) Line 147  varray_assign(vb, index, force)
147                          vb->vbuf = (char *)malloc(vb->size * vb->alloced);                          vb->vbuf = (char *)malloc(vb->size * vb->alloced);
148                  else                  else
149                          vb->vbuf = (char *)realloc(vb->vbuf, vb->size * vb->alloced);                          vb->vbuf = (char *)realloc(vb->vbuf, vb->size * vb->alloced);
150                    if (vb->vbuf == NULL)
151                            die("short of memory.");
152                  if (debug)                  if (debug)
153                          fprintf(stderr, "Expanded: from %d to %d.\n", old_alloced, vb->alloced);                          fprintf(stderr, "Expanded: from %d to %d.\n", old_alloced, vb->alloced);
154          }          }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26