home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 1.ddi / MWHC.001 / P < prev    next >
Encoding:
Text File  |  1992-12-09  |  1.4 KB  |  41 lines

  1. /* $Id: newhandl.cpp,v 1.1 1991/12/03 20:20:03 jeff Exp $ */
  2. /*********************************************************************
  3. (C) Copyright 1990-1991;  Franklin L. DeRemer,   Thomas J. Pennello,
  4.                          MetaWare Incorporated;  Santa Cruz, CA 95060.
  5. This program is the unpublished property and trade secret of the above
  6. three.  It is to be utilized solely under license from MetaWare and it
  7. is to be maintained on a confidential basis for internal  company  use
  8. only.  The  security  and  protection  of  the program is paramount to
  9. maintenance of the trade secret status.  It is to  be  protected  from
  10. disclosure  to  unauthorized parties, both within the Licensee company
  11. and outside, in a manner not less stringent than that utilized for Li-
  12. censee's own proprietary  internal  information.   No  copies  of  the
  13. Source or Object Code are to leave the premises of Licensee's business
  14. except  in  strict accordance with the license agreement signed by Li-
  15. censee with MetaWare.
  16. *********************************************************************/
  17.  
  18. /*
  19.  * $Log: newhandl.cpp,v $
  20. # Revision 1.1  1991/12/03  20:20:03  jeff
  21. # Initial revision
  22. #
  23.  * 
  24.  */
  25.  
  26.  
  27. #c_include <new.h>
  28.  
  29. void (*_mwnewhandler)(void)=0;
  30.  
  31. void (*set_new_handler(void (*handler)(void)))(void) {
  32.  
  33.     void (*tmp)(void);
  34.     
  35.     tmp = _mwnewhandler;
  36.     _mwnewhandler = handler;
  37.     return tmp;
  38.  
  39.     }
  40.  
  41.