git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed bug in swf->pdf part of rendering pipeline
[swftools.git]
/
lib
/
as3
/
mklib.c
diff --git
a/lib/as3/mklib.c
b/lib/as3/mklib.c
index
feafada
..
f32c1f7
100644
(file)
--- a/
lib/as3/mklib.c
+++ b/
lib/as3/mklib.c
@@
-1,8
+1,8
@@
-/* code.c
+/* mklib.c
File to generate builtin.c
File to generate builtin.c
- Copyright (c) 2008 Matthias Kramm <kramm@quiss.org>
+ Copyright (c) 2008,2009 Matthias Kramm <kramm@quiss.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-122,9
+122,10
@@
char*mktype(slotinfo_t*s)
return "classinfo_t";
} else if(s->kind == INFOTYPE_METHOD) {
return "methodinfo_t";
return "classinfo_t";
} else if(s->kind == INFOTYPE_METHOD) {
return "methodinfo_t";
- } else if(s->kind == INFOTYPE_SLOT) {
+ } else if(s->kind == INFOTYPE_VAR) {
return "varinfo_t";
}
return "varinfo_t";
}
+ return "**ERROR**";
}
void write_slotinfo(FILE*fi, slotinfo_t*s, char*id, char*prefix);
}
void write_slotinfo(FILE*fi, slotinfo_t*s, char*id, char*prefix);
@@
-200,7
+201,7
@@
void write_constant(FILE*fi, constant_t*value, char*id, char*prefix)
void write_slotinfo(FILE*fi, slotinfo_t*s, char*id, char*prefix)
{
void write_slotinfo(FILE*fi, slotinfo_t*s, char*id, char*prefix)
{
- if(s->kind == INFOTYPE_SLOT) {
+ if(s->kind == INFOTYPE_VAR) {
varinfo_t*v = (varinfo_t*)s;
if(v->value) {
write_constant(fi, v->value, id, prefix);
varinfo_t*v = (varinfo_t*)s;
if(v->value) {
write_constant(fi, v->value, id, prefix);
@@
-239,7
+240,7
@@
void write_slotinfo(FILE*fi, slotinfo_t*s, char*id, char*prefix)
fprintf(fi, "0"); // params TODO
fprintf(fi, "};\n");
}
fprintf(fi, "0"); // params TODO
fprintf(fi, "};\n");
}
- if(s->kind == INFOTYPE_SLOT) {
+ if(s->kind == INFOTYPE_VAR) {
varinfo_t*m = (varinfo_t*)s;
fprintf(fi, "%s, ", mkptr(m->type));
fprintf(fi, "%s, ", mkptr(m->parent));
varinfo_t*m = (varinfo_t*)s;
fprintf(fi, "%s, ", mkptr(m->type));
fprintf(fi, "%s, ", mkptr(m->parent));
@@
-310,5
+311,5
@@
int main()
fprintf(fi, " _Infinity_constant.f = __builtin_inf();\n");
fprintf(fi, " return d;\n");
fprintf(fi, "}\n");
fprintf(fi, " _Infinity_constant.f = __builtin_inf();\n");
fprintf(fi, " return d;\n");
fprintf(fi, "}\n");
-
+ return 0;
}
}