X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpython%2Ftag.c;h=8ab17ca0adafa14203830d3247d4645db9ab3618;hb=2eeb45c3b0d4bff224b63f94edcef38853663755;hp=22cc8f0f5504071784fdbfb02bc85628fe232811;hpb=3281edc9ef69c0ba876f0146f55540227aa6a7fb;p=swftools.git diff --git a/lib/python/tag.c b/lib/python/tag.c index 22cc8f0..8ab17ca 100644 --- a/lib/python/tag.c +++ b/lib/python/tag.c @@ -24,7 +24,7 @@ typedef struct { static void tag_dealloc(PyObject * self) { TagObject*tag = (TagObject*)self; - mylog(" %08x(%d) tag_dealoc\n", (int)self, self->ob_refcnt); + mylog("-%08x(%d) tag_dealoc\n", (int)self, self->ob_refcnt); if(tag->placeobject) { swf_PlaceObjectFree(tag->placeobject); tag->placeobject = 0; @@ -139,7 +139,7 @@ PyObject* tag_new() PyObject* tag_new2(TAG*t, PyObject* tagmap) { TagObject*tag = PyObject_New(TagObject, &TagClass); - mylog("+%08x(%d) tag_new\n", (int)tag, tag->ob_refcnt); + mylog("+%08x(%d) tag_new tag=%08x\n", (int)tag, tag->ob_refcnt, t); tag->font = 0; tag->character = 0; tag->placeobject = 0; @@ -334,9 +334,9 @@ TAG* tag_getRAWTAG(PyObject*self) /* serialize */ TAG* tag_getTAG(PyObject*self, TAG*prevTag, PyObject*tagmap) { - mylog(" %08x(%d) tag_getTAG tagmap=%08x \n", (int)self, self->ob_refcnt, tagmap); TagObject*tag = (TagObject*)self; TAG* t = tag_getRAWTAG(self); + mylog(" %08x(%d) tag_getTAG tagmap=%08x tag=%08x\n", (int)self, self->ob_refcnt, tagmap, t); t->next = 0; t->prev = prevTag; if(prevTag) @@ -368,7 +368,7 @@ TAG* tag_getTAG(PyObject*self, TAG*prevTag, PyObject*tagmap) PyObject* tag_getDependencies(PyObject*self) { - mylog("+%08x(%d) tag_getDependencies\n", (int)self, self->ob_refcnt); + mylog(" %08x(%d) tag_getDependencies\n", (int)self, self->ob_refcnt); TagObject*tag = (TagObject*)self; return tagmap_getObjectList(tag->tagmap); }