Logo Search packages:      
Sourcecode: m17n-lib version File versions  Download package

#define MLIST_INSERT1 ( list,
mem,
idx,
len,
err   ) 

Value:

do {                                                  \
    while ((list)->used + (len) > (list)->size)                   \
      {                                                     \
      (list)->size += (list)->inc;                          \
      MTABLE_REALLOC ((list)->mem, (list)->size, (err));          \
      }                                                     \
    memmove ((list)->mem + ((idx) + (len)), (list)->mem + (idx),  \
           (sizeof *((list)->mem)) * ((list)->used - (idx)));           \
    (list)->used += (len);                                  \
  } while (0)

Definition at line 196 of file internal.h.


Generated by  Doxygen 1.6.0   Back to index