Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/libbb/xrealloc_vector.c

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

revision 983 by niro, Fri Apr 24 18:33:46 2009 UTC revision 984 by niro, Sun May 30 11:32:42 2010 UTC
# Line 20  Line 20 
20   * idx step, plus one: if idx == 0x20, vector[] is resized to 0x31,   * idx step, plus one: if idx == 0x20, vector[] is resized to 0x31,
21   * thus last usable element is vector[0x30].   * thus last usable element is vector[0x30].
22   *   *
23   * In other words: after xrealloc_vector(v, 4, idx) it's ok to use   * In other words: after xrealloc_vector(v, 4, idx), with any idx,
24   * at least v[idx] and v[idx+1], for all idx values.   * it's ok to use at least v[idx] and v[idx+1].
25     * v[idx+2] etc generally are not ok.
26   *   *
27   * New elements are zeroed out, but only if realloc was done   * New elements are zeroed out, but only if realloc was done
28   * (not on every call). You can depend on v[idx] and v[idx+1] being   * (not on every call). You can depend on v[idx] and v[idx+1] being

Legend:
Removed from v.983  
changed lines
  Added in v.984