3 Routines for handling Flash2 AVM2 ABC Actionscript (header file)
5 Extension module for the rfxswf library.
6 Part of the swftools package.
8 Copyright (c) 2008 Matthias Kramm <kramm@quiss.org>
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
30 DECLARE(abc_method_body);
31 DECLARE(abc_interface);
32 DECLARE(abc_multiname);
33 DECLARE(abc_namespace);
35 DECLARE_LIST(abc_multiname);
37 typedef struct _abc_method {
38 abc_multiname_t*return_type;
39 abc_multiname_list_t*parameters;
44 int method_body_index;
47 typedef enum multiname_type
60 struct _abc_namespace {
65 struct _abc_multiname {
66 multiname_type_t type;
68 const char*namespace_set_name; // FIXME should be a struct
81 dict_t*namespace_sets;
93 abc_file_t*abc_file_new();
95 typedef struct _abc_trait {
114 typedef struct _abc_class {
118 const char*classname;
119 const char*superclass;
120 const char*protectedNS;
122 abc_multiname_list_t*interfaces;
127 int static_constructor_index;
128 dict_t*static_constructor_traits;
133 abc_class_t* abc_class_new(abc_file_t*pool, char*classname, char*superclass);
134 void abc_class_sealed(abc_class_t*c);
135 void abc_class_final(abc_class_t*c);
136 void abc_class_interface(abc_class_t*c);
137 void abc_class_protectedNS(abc_class_t*c, char*namespace);
139 abc_method_body_t* abc_class_staticconstructor(abc_class_t*cls, char*returntype, int num_params, ...);
140 abc_method_body_t* abc_class_constructor(abc_class_t*cls, char*returntype, int num_params, ...);
141 abc_method_body_t* abc_class_method(abc_class_t*cls, char*returntype, char*name, int num_params, ...);
143 struct _abc_method_body {
151 int init_scope_depth;
157 typedef struct _abc_label {
160 typedef struct _abc_script {
166 abc_script_t* abc_initscript(abc_file_t*pool, char*returntype, int num_params, ...);