home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / lemacs-19.6 / src / connmemory.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-29  |  227 b   |  11 lines

  1. /*
  2.  * Just a cast-free interface to xmalloc
  3.  */
  4.  
  5. #ifndef Lisp_Type
  6. #include "lisp.h"
  7. #endif
  8.  
  9. #define new(type, n) ((type*) xmalloc(sizeof(type) * n))
  10. #define grow(type, ptr, n) ((type*) xrealloc((long*) ptr, sizeof(type) * n))
  11.