home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc™ Source Code / DocShell / SOMMem.cpp < prev   
Encoding:
C/C++ Source or Header  |  1996-08-28  |  1.1 KB  |  62 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SOMMem.cpp
  3.  
  4.     Contains:    Source for SOMCustomMemoryMgr fragment for doc stub
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1994 - 1995 Apple Computer, Inc. All Rights Reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <4>     5/25/95    jpa        Added #pragma import [1241078]
  13.          <3>     1/12/95    jpa        Don't use obsolete Toolbox names. [1211211]
  14.          <2>      1/6/95    jpa        Fixed header comments.
  15.          <1>      1/6/95    jpa        first checked in
  16.  
  17.     To Do:
  18. */
  19.  
  20. #define DEBUG 0                    /* Define this to get a DebugStr when the lib loads */
  21.  
  22. #ifndef __CODEFRAGMENTS__
  23. typedef void* CFragInitBlockPtr;        /* To avoid having to include FragLoad.h */
  24. #endif
  25.  
  26.  
  27. extern "C" {
  28.  
  29. #pragma import on
  30.  
  31. #if DEBUG && !defined(__TYPES__)
  32. extern void DebugStr(void*);
  33. #endif
  34.  
  35. #ifndef _MEMMGR_
  36. extern void* MMGetDefaultHeap();
  37. #endif
  38.  
  39. #pragma import off
  40.  
  41.  
  42. #ifdef __CFM68K__
  43.     pascal
  44. #endif
  45.            short SOMCustomEtcCFMInit( CFragInitBlockPtr );
  46. }
  47.  
  48.  
  49.  
  50.  
  51. short
  52. SOMCustomEtcCFMInit( CFragInitBlockPtr )
  53. {
  54. #if DEBUG
  55.     DebugStr("\pSOMCustomEtcCFMInit");
  56. #endif
  57.  
  58.     (void) MMGetDefaultHeap();    // No-op; forces dependency on MM lib
  59.     
  60.     return 0;
  61. }
  62.