git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0b9b005
)
removed swftagmap from parse function.
author
kramm
<kramm>
Thu, 30 Dec 2004 20:01:31 +0000
(20:01 +0000)
committer
kramm
<kramm>
Thu, 30 Dec 2004 20:01:31 +0000
(20:01 +0000)
lib/python/tags.c
patch
|
blob
|
history
diff --git
a/lib/python/tags.c
b/lib/python/tags.c
index
a89c105
..
17db3e2
100644
(file)
--- a/
lib/python/tags.c
+++ b/
lib/python/tags.c
@@
-14,7
+14,7
@@
typedef struct _font_internal
} font_internal_t;
staticforward tag_internals_t font_tag;
} font_internal_t;
staticforward tag_internals_t font_tag;
-static int font_parse(tag_internals_t*self, PyObject*swftagmap)
+static int font_parse(tag_internals_t*self)
{
font_internal_t*font = (font_internal_t*)self->data;
/* TODO */
{
font_internal_t*font = (font_internal_t*)self->data;
/* TODO */
@@
-95,7
+95,7
@@
static void po_dealloc(tag_internals_t*self)
pi->po = 0;
}
}
pi->po = 0;
}
}
-static int po_parse(tag_internals_t*self, PyObject*swftagmap)
+static int po_parse(tag_internals_t*self)
{
placeobject_internal_t*i = (placeobject_internal_t*)self->data;
if(i->po)
{
placeobject_internal_t*i = (placeobject_internal_t*)self->data;
if(i->po)
@@
-127,7
+127,7
@@
static int po_fillTAG(tag_internals_t*self)
static PyObject* po_getattr(tag_internals_t*self,char*a)
{
placeobject_internal_t*i = (placeobject_internal_t*)self->data;
static PyObject* po_getattr(tag_internals_t*self,char*a)
{
placeobject_internal_t*i = (placeobject_internal_t*)self->data;
- if(!shape_parse(itag,0))
+ if(!po_parse(self))
return PY_ERROR("Couldn't parse placeobject");
if(!strcmp(a, "character")) {
if(!i->character)
return PY_ERROR("Couldn't parse placeobject");
if(!strcmp(a, "character")) {
if(!i->character)
@@
-623,7
+623,7
@@
static int shape_fillTAG(tag_internals_t*self)
swf_SetShape2(self->tag, ti->shape2);
return 1;
}
swf_SetShape2(self->tag, ti->shape2);
return 1;
}
-static int shape_parse(tag_internals_t*self, PyObject*swftagmap)
+static int shape_parse(tag_internals_t*self)
{
shape_internal_t*i= (shape_internal_t*)self->data;
if(i->shape2)
{
shape_internal_t*i= (shape_internal_t*)self->data;
if(i->shape2)
@@
-741,7
+741,7
@@
static PyObject* f_DefineShape(PyObject* self, PyObject* args, PyObject* kwargs)
static PyObject* shape_getfillstyles(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_getfillstyles(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int num = fi->shape2->numfillstyles;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int num = fi->shape2->numfillstyles;
@@
-750,7
+750,7
@@
static PyObject* shape_getfillstyles(PyObject*self, PyObject*args)
static PyObject* shape_getlinestyles(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_getlinestyles(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int num = fi->shape2->numlinestyles;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int num = fi->shape2->numlinestyles;
@@
-759,7
+759,7
@@
static PyObject* shape_getlinestyles(PyObject*self, PyObject*args)
static PyObject* shape_getfillstyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_getfillstyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
@@
-774,7
+774,7
@@
static PyObject* shape_getfillstyle(PyObject*self, PyObject*args)
static PyObject* shape_getlinestyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_getlinestyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
@@
-789,7
+789,7
@@
static PyObject* shape_getlinestyle(PyObject*self, PyObject*args)
static PyObject* shape_setfillstyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_setfillstyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
@@
-806,7
+806,7
@@
static PyObject* shape_setfillstyle(PyObject*self, PyObject*args)
static PyObject* shape_setlinestyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
static PyObject* shape_setlinestyle(PyObject*self, PyObject*args)
{
tag_internals_t*itag = tag_getinternals(self);
- if(!shape_parse(itag,0))
+ if(!shape_parse(itag))
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
return PY_ERROR("Couldn't parse shape");
shape_internal_t*fi = (shape_internal_t*)itag->data;
int nr = 0;
@@
-850,7
+850,7
@@
typedef struct _videostream_internal
staticforward tag_internals_t videostream_tag;
staticforward tag_internals_t videoframe_tag;
staticforward tag_internals_t videostream_tag;
staticforward tag_internals_t videoframe_tag;
-static int videostream_parse(tag_internals_t*self, PyObject*swftagmap)
+static int videostream_parse(tag_internals_t*self)
{
videostream_internal_t*videostream = (videostream_internal_t*)self->data;
/* TODO */
{
videostream_internal_t*videostream = (videostream_internal_t*)self->data;
/* TODO */