gc_alloc_ptrs.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 1996-1998 by Silicon Graphics. All rights reserved.
  3. *
  4. * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
  5. * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
  6. *
  7. * Permission is hereby granted to use or copy this program
  8. * for any purpose, provided the above notices are retained on all copies.
  9. * Permission to modify the code and to distribute modified code is granted,
  10. * provided the above notices are retained, and a notice that the code was
  11. * modified is included with the above copyright notice.
  12. */
  13. /* This file should never be included by clients directly. */
  14. #ifndef GC_ALLOC_PTRS_H
  15. #define GC_ALLOC_PTRS_H
  16. #include "gc.h"
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. GC_API void ** const GC_objfreelist_ptr;
  21. GC_API void ** const GC_aobjfreelist_ptr;
  22. GC_API void ** const GC_uobjfreelist_ptr;
  23. #ifdef GC_ATOMIC_UNCOLLECTABLE
  24. GC_API void ** const GC_auobjfreelist_ptr;
  25. #endif
  26. GC_API void GC_CALL GC_incr_bytes_allocd(size_t bytes);
  27. GC_API void GC_CALL GC_incr_bytes_freed(size_t bytes);
  28. #ifdef __cplusplus
  29. } /* extern "C" */
  30. #endif
  31. #endif /* GC_ALLOC_PTRS_H */