"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xpdf/Object.cc" between
xpdf-4.02.tar.gz and xpdf-4.03.tar.gz

About: Xpdf is a PDF viewer for X.

Object.cc  (xpdf-4.02):Object.cc  (xpdf-4.03)
skipping to change at line 48 skipping to change at line 48
"ref", "ref",
"cmd", "cmd",
"error", "error",
"eof", "eof",
"none" "none"
}; };
#ifdef DEBUG_MEM #ifdef DEBUG_MEM
#if MULTITHREADED #if MULTITHREADED
GAtomicCounter Object::numAlloc[numObjTypes] = GAtomicCounter Object::numAlloc[numObjTypes] =
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
#else #else
long Object::numAlloc[numObjTypes] = long Object::numAlloc[numObjTypes] =
#endif
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
#endif #endif
#endif // DEBUG_MEM
Object *Object::initArray(XRef *xref) { Object *Object::initArray(XRef *xref) {
initObj(objArray); initObj(objArray);
array = new Array(xref); array = new Array(xref);
return this; return this;
} }
Object *Object::initDict(XRef *xref) { Object *Object::initDict(XRef *xref) {
initObj(objDict); initObj(objDict);
dict = new Dict(xref); dict = new Dict(xref);
skipping to change at line 232 skipping to change at line 233
break; break;
} }
} }
void Object::memCheck(FILE *f) { void Object::memCheck(FILE *f) {
#ifdef DEBUG_MEM #ifdef DEBUG_MEM
int i; int i;
long t; long t;
t = 0; t = 0;
for (i = 0; i < numObjTypes; ++i) for (i = 0; i < numObjTypes; ++i) {
t += numAlloc[i]; t += numAlloc[i];
}
if (t > 0) { if (t > 0) {
fprintf(f, "Allocated objects:\n"); fprintf(f, "Allocated objects:\n");
for (i = 0; i < numObjTypes; ++i) { for (i = 0; i < numObjTypes; ++i) {
if (numAlloc[i] > 0) if (numAlloc[i] > 0) {
fprintf(f, " %-20s: %6ld\n", objTypeNames[i], numAlloc[i]); fprintf(f, " %-20s: %6ld\n", objTypeNames[i], numAlloc[i]);
}
} }
} }
#endif #endif
} }
 End of changes. 7 change blocks. 
3 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)