home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / memmag.h < prev    next >
C/C++ Source or Header  |  2000-12-05  |  2KB  |  58 lines

  1. /* -*-C-*-
  2.  
  3. $Id: memmag.h,v 1.8 2000/12/05 21:23:45 cph Exp $
  4.  
  5. Copyright (c) 1993-2000 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. /* OS-dependent conditionalization of memory management stuff. */
  23.  
  24. #ifndef SCM_MEMMAG_H
  25. #define SCM_MEMMAG_H
  26.  
  27. #ifdef __WIN32__
  28.    extern void win32_allocate_registers (void);
  29.    extern void win32_deallocate_registers (void);
  30. #  define ALLOCATE_REGISTERS win32_allocate_registers
  31. #  define DEALLOCATE_REGISTERS win32_deallocate_registers
  32.  
  33. #  include "ntscmlib.h"
  34.  
  35.    extern BOOL win32_under_win32s_p (void);
  36.  
  37.    extern char * NT_allocate_heap (unsigned long, unsigned long *);
  38.    extern void NT_release_heap (char *, unsigned long);
  39. #  define WIN32_ALLOCATE_HEAP NT_allocate_heap
  40. #  define WIN32_RELEASE_HEAP NT_release_heap
  41.  
  42.    static unsigned long scheme_heap_handle;
  43. #endif
  44.  
  45. #ifndef HEAP_FREE
  46. #  define HEAP_FREE free
  47. #endif
  48.  
  49. #ifndef ALLOCATE_REGISTERS
  50. #  define ALLOCATE_REGISTERS() do { } while (0)
  51. #endif
  52.  
  53. #ifndef DEALLOCATE_REGISTERS
  54. #  define DEALLOCATE_REGISTERS() do { } while (0)
  55. #endif
  56.  
  57. #endif /* SCM_MEMMAG_H */
  58.