summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc')
-rw-r--r--Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc b/Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc
index 898fbc99e2b..dbb785868c8 100644
--- a/Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc
+++ b/Build/source/libs/xpdf/xpdf-src/xpdf/Object.cc
@@ -8,10 +8,6 @@
#include <aconf.h>
-#ifdef USE_GCC_PRAGMAS
-#pragma implementation
-#endif
-
#include <stddef.h>
#include "gmempp.h"
#include "Object.h"
@@ -42,7 +38,7 @@ const char *objTypeNames[numObjTypes] = {
"none"
};
-#ifdef DEBUG_MEM
+#ifdef DEBUG_OBJECT_MEM
#if MULTITHREADED
GAtomicCounter Object::numAlloc[numObjTypes] =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
@@ -50,7 +46,7 @@ GAtomicCounter Object::numAlloc[numObjTypes] =
long Object::numAlloc[numObjTypes] =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
#endif
-#endif // DEBUG_MEM
+#endif // DEBUG_OBJECT_MEM
Object *Object::initArray(XRef *xref) {
initObj(objArray);
@@ -101,7 +97,7 @@ Object *Object::copy(Object *obj) {
default:
break;
}
-#ifdef DEBUG_MEM
+#ifdef DEBUG_OBJECT_MEM
#if MULTITHREADED
gAtomicIncrement(&numAlloc[type]);
#else
@@ -143,7 +139,7 @@ void Object::free() {
default:
break;
}
-#ifdef DEBUG_MEM
+#ifdef DEBUG_OBJECT_MEM
#if MULTITHREADED
gAtomicDecrement(&numAlloc[type]);
#else
@@ -225,7 +221,7 @@ void Object::print(FILE *f) {
}
void Object::memCheck(FILE *f) {
-#ifdef DEBUG_MEM
+#ifdef DEBUG_OBJECT_MEM
int i;
long t;