]> granicus.if.org Git - graphviz/commitdiff
remove agheap()
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Jul 2020 17:53:56 +0000 (10:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Jul 2020 17:55:06 +0000 (10:55 -0700)
Accessing the internals of the allocator via Cgraph is no longer supported.

CHANGELOG.md
lib/cgraph/cgraph.h
lib/cgraph/mem.c

index ef60933b0f046898da7c7afb5fa317c96efa0157..c5bf448bb9371520f50da05a009972de8aa1d101 100644 (file)
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
 
 ## [Unreleased]
+- Cgraph's agheap() API has been removed
 
 ## [2.44.1] - 2020-06-29
 
index 36df70dc7ec6f47acd2bb9597858420942f0ceaf..4e269d9b5a22ba059c0f50fb20948fe9b5d529c2 100644 (file)
@@ -377,7 +377,6 @@ CGRAPH_API void *agalloc(Agraph_t * g, size_t size);
 CGRAPH_API void *agrealloc(Agraph_t * g, void *ptr, size_t oldsize,
                       size_t size);
 CGRAPH_API void agfree(Agraph_t * g, void *ptr);
-CGRAPH_API struct _vmalloc_s *agheap(Agraph_t * g);
 
 /* an engineering compromise is a joy forever */
 CGRAPH_API void aginternalmapclearlocalnames(Agraph_t * g);
index 8d93319208ed4cfc8f68c8018ca37a57252e6a77..62542c778b2356477d95a2857a79ace33c7a3fee 100644 (file)
@@ -91,13 +91,3 @@ void agfree(Agraph_t * g, void *ptr)
     if (ptr)
        (AGDISC(g, mem)->free) (AGCLOS(g, mem), ptr);
 }
-
-#ifndef _VMALLOC_H
-struct _vmalloc_s {
-    char unused;
-};
-#endif
-struct _vmalloc_s *agheap(Agraph_t * g)
-{
-    return AGCLOS(g, mem);
-}