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

#define MTABLE_REALLOC ( p,
err   ) 


do {                                                  \
    if (! ((p) = (void *) realloc ((p), sizeof (*(p)) * (size)))) \
      MEMORY_FULL (err);                                    \
  } while (0)
The macro MTABLE_REALLOC () changes the size of memory block pointed to by P to a size suitable for an array of SIZE objects. The size of each object is determined by the type of P. ERR must be one of enum MErrorCode. If the allocation fails, the macro MEMORY_FULL () is called with argument ERR.

Definition at line 114 of file internal.h.

Generated by  Doxygen 1.6.0   Back to index