summaryrefslogtreecommitdiffstats
path: root/kpdf/xpdf/goo/gmempp.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-12-13 19:22:19 +0900
committerMichele Calgaro <[email protected]>2020-12-13 19:22:19 +0900
commit14d0fbe96c6abdb9da80e99953aec672f999948c (patch)
treed48726c1256a1a495b415570847f08ecf9e5ecdd /kpdf/xpdf/goo/gmempp.cpp
parentdb124e3167670efff59f6aef4bc0daff316dddf8 (diff)
downloadtdegraphics-14d0fbe96c6abdb9da80e99953aec672f999948c.tar.gz
tdegraphics-14d0fbe96c6abdb9da80e99953aec672f999948c.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kpdf/xpdf/goo/gmempp.cpp')
-rw-r--r--kpdf/xpdf/goo/gmempp.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/kpdf/xpdf/goo/gmempp.cpp b/kpdf/xpdf/goo/gmempp.cpp
new file mode 100644
index 00000000..4804889b
--- /dev/null
+++ b/kpdf/xpdf/goo/gmempp.cpp
@@ -0,0 +1,32 @@
+//========================================================================
+//
+// gmempp.cpp
+//
+// Use gmalloc/gfree for C++ new/delete operators.
+//
+// Copyright 1996-2003 Glyph & Cog, LLC
+//
+//========================================================================
+
+#include <aconf.h>
+#include "gmem.h"
+
+#ifdef DEBUG_MEM
+
+void *operator new(size_t size) {
+ return gmalloc((int)size);
+}
+
+void *operator new[](size_t size) {
+ return gmalloc((int)size);
+}
+
+void operator delete(void *p) {
+ gfree(p);
+}
+
+void operator delete[](void *p) {
+ gfree(p);
+}
+
+#endif