From c57343e948aa9f3346ad866ad88d4b1330d098b8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 13 Dec 2020 19:22:19 +0900 Subject: Renaming of files in preparation for code style tools. Signed-off-by: Michele Calgaro (cherry picked from commit 14d0fbe96c6abdb9da80e99953aec672f999948c) --- kpdf/xpdf/goo/gmempp.cpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 kpdf/xpdf/goo/gmempp.cpp (limited to 'kpdf/xpdf/goo/gmempp.cpp') 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 +#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 -- cgit v1.2.1