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 (parent:
e0be76c
)
new function abc_method_init()
author
Matthias Kramm
<kramm@quiss.org>
Tue, 3 Feb 2009 18:48:00 +0000
(19:48 +0100)
committer
Matthias Kramm
<kramm@quiss.org>
Tue, 3 Feb 2009 18:48:00 +0000
(19:48 +0100)
lib/as3/abc.c
patch
|
blob
|
history
lib/as3/abc.h
patch
|
blob
|
history
diff --git
a/lib/as3/abc.c
b/lib/as3/abc.c
index
4375300
..
30e5616
100644
(file)
--- a/
lib/as3/abc.c
+++ b/
lib/as3/abc.c
@@
-157,10
+157,9
@@
void abc_class_add_interface(abc_class_t*c, multiname_t*interface)
list_append(c->interfaces, multiname_clone(interface));
}
list_append(c->interfaces, multiname_clone(interface));
}
-abc_method_t* abc_method_new(abc_file_t*file, multiname_t*returntype, char body)
+void abc_method_init(abc_method_t*m, abc_file_t*file, multiname_t*returntype, char body)
{
/* construct method object */
{
/* construct method object */
- NEW(abc_method_t,m);
m->index = array_length(file->methods);
array_append(file->methods, NO_KEY, m);
m->return_type = returntype;
m->index = array_length(file->methods);
array_append(file->methods, NO_KEY, m);
m->return_type = returntype;
@@
-178,7
+177,11
@@
abc_method_t* abc_method_new(abc_file_t*file, multiname_t*returntype, char body)
m->body = c;
c->method = m;
}
m->body = c;
c->method = m;
}
-
+}
+abc_method_t* abc_method_new(abc_file_t*file, multiname_t*returntype, char body)
+{
+ NEW(abc_method_t,m);
+ abc_method_init(m, file, returntype, body);
return m;
}
return m;
}
diff --git
a/lib/as3/abc.h
b/lib/as3/abc.h
index
8e7cf81
..
9586dfe
100644
(file)
--- a/
lib/as3/abc.h
+++ b/
lib/as3/abc.h
@@
-138,6
+138,7
@@
struct _abc_class {
int index; //filled in during writing
};
int index; //filled in during writing
};
+void abc_method_init(abc_method_t*m, abc_file_t*file, multiname_t*returntype, char body);
abc_method_t* abc_method_new(abc_file_t*file, multiname_t*returntype, char body);
abc_class_t* abc_class_new(abc_file_t*file, multiname_t*classname, multiname_t*superclass);
abc_method_t* abc_method_new(abc_file_t*file, multiname_t*returntype, char body);
abc_class_t* abc_class_new(abc_file_t*file, multiname_t*classname, multiname_t*superclass);