summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 88013f5)
raw | patch | inline | side by side (parent: 88013f5)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 9 Aug 2007 05:56:59 +0000 (05:56 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Thu, 9 Aug 2007 05:56:59 +0000 (05:56 +0000) |
src/libavoid/region.cpp | patch | blob | history |
index c4ef90443ea02fe50a83133aaa36a8a93411bcd9..b102e89a0239e20af9e6e6442af970f6ac97aa2b 100644 (file)
--- a/src/libavoid/region.cpp
+++ b/src/libavoid/region.cpp
newR = split(n1.y, R_HORI);
newR = newR->split(n1.x, R_VERT);
- printf("%X - list %d add %d\n", (int) newR,
+ printf("%p - list %d add %d\n", newR,
(int) newR->_blocks.size(), shapeId);
newR->_blocks.push_back((int) shapeId);
newR->_blocks.sort();
cptr = curr;
while (cptr->_bbox.b.x <= bottom->_bbox.b.x)
{
- printf("%X - list %d add %d\n", (int) cptr,
+ printf("%p - list %d add %d\n", cptr,
(int) cptr->_blocks.size(), shapeId);
cptr->_blocks.push_back((int) shapeId);
cptr->_blocks.sort();
abort();
}
mergeAttributes(src);
- printf("DEL %X\n", (int) src);
+ printf("DEL %p\n", src);
delete src;
}
// Create new block.
Region *r = new Region(pos, o1.y, o2.x, o2.y);
- printf("NEW %X\n", (int) r);
+ printf("NEW %p\n", r);
r->copyAttributes(this);
Region *o_up = _up;
// Create new block.
Region *b = new Region(o1.x, pos, o2.x, o2.y);
- printf("NEW %X\n", (int) b);
+ printf("NEW %p\n", b);
b->copyAttributes(this);
Region *o_left = _left;
{
// Add new default region.
centerRegion = new Region();
- printf("NEW %X\n", (int) centerRegion);
+ printf("NEW %p\n", centerRegion);
}
BBox bbox;
// Get bounding box for added shape.
assert(std::find(blocks.begin(), blocks.end(), (int) shapeId) !=
blocks.end());
- printf("%X - list %d remove %d\n", (int) cptr,
+ printf("%p - list %d remove %d\n", cptr,
(int) blocks.size(), shapeId);
cptr->_blocks.remove((int) shapeId);