home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR503.W96 / FM.AP_ / FM.AP
Encoding:
Text File  |  1995-06-26  |  959 b   |  49 lines

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