home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / ui / OGC / gc_new.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-06  |  451 b   |  26 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1989, Tera Computer Company
  5.  **/
  6.  
  7. #include <stream.h>
  8.  
  9. extern "C"  { 
  10.       void gc_init() ;
  11.       char *gc_malloc(unsigned) ;
  12.  
  13. struct dummy_gc_init {
  14.       dummy_gc_init() ;
  15. } do_init ;
  16.  
  17. dummy_gc_init::dummy_gc_init() { gc_init() ; }
  18.  
  19. void * _new (unsigned size) {
  20.       cerr << "In gc new \n" ;
  21.       return gc_malloc(size) ;
  22. }
  23.  
  24. void _delete(void * p) { cerr << "In gc delete\n" ; } 
  25.