home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / 52capi.zip / FM.API < prev    next >
Text File  |  1993-08-06  |  811b  |  43 lines

  1. /***
  2. *
  3. *   Fm.api
  4. *
  5. *   Fixed memory allocation functions
  6. *
  7. *   Copyright (c) 1987-1993, Computer Associates International, Inc.
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14.  
  15. #ifndef _FM_API
  16.  
  17.  
  18. #ifndef _CLIPDEFS_H
  19. #include "clipdefs.h"
  20. #endif
  21.  
  22.  
  23.  
  24. /***
  25. *   Note:
  26. *   _xalloc() returns NULL if the request cannot be satisfied
  27. *   _xgrab() generates a runtime error if the request cannot be satisfied
  28. */
  29.  
  30. /*   allocate memory */
  31. extern void far * _xalloc(unsigned int numberOfBytes);
  32. extern void far * _xgrab(unsigned int numberOfBytes);
  33. extern void       _xfree(void far *allocatedBlock);
  34.  
  35.  
  36. /* S87 compat. */
  37. #define _exmgrab(size)         _xgrab(size)
  38. #define _exmback(ptr, size)    _xfree(ptr)
  39.  
  40.  
  41. #define _FM_API
  42. #endif
  43.