From 361804826ec3a3b55e9a6e658dfccf118495f723 Mon Sep 17 00:00:00 2001
From: Phil Rosenberg <p.d.rosenberg@gmail.com>
Date: Sun, 16 Jul 2017 10:19:49 +0100
Subject: [PATCH 2/4] Added Memory allocation function declarations to
 plplotP.h

This seemed like the best place for them as this is an internal only
header I think, ut it is included in pretty much every file.
---
 include/plplotP.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/plplotP.h b/include/plplotP.h
index 802fb68..c07d185 100644
--- a/include/plplotP.h
+++ b/include/plplotP.h
@@ -169,6 +169,21 @@ extern PLDLLIMPEXP_DATA( PLStream * ) plsc;
 #endif
 
 //--------------------------------------------------------------------------
+//                       Memory Management Functions
+//--------------------------------------------------------------------------
+
+void
+plinitialisememorylist( PLStream *pls );
+void *
+plmalloc( PLStream *pls, size_t size );
+void
+plfree( PLStream *pls, void *mem );
+void
+plfreeall( PLStream *pls );
+void *
+plrealloc( PLStream *pls, void *mem, size_t size );
+
+//--------------------------------------------------------------------------
 //                       Utility macros
 //--------------------------------------------------------------------------
 
-- 
2.8.3

