added null class
[swftools.git] / lib / as3 / registry.c
index 5a688bd..eb4e9c9 100644 (file)
@@ -1,3 +1,26 @@
+/* registry.c
+
+   Routines for compiling Flash2 AVM2 ABC Actionscript
+
+   Extension module for the rfxswf library.
+   Part of the swftools package.
+
+   Copyright (c) 2008 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
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
+
 #include "pool.h"
 #include "registry.h"
 
@@ -28,6 +51,9 @@ static multiname_t static_int_class = {
 static multiname_t static_uint_class = {
     QNAME, &static_empty_ns, 0, "uint"
 };
+static multiname_t static_null_class = {
+    QNAME, &static_empty_ns, 0, "null"
+};
 static multiname_t static_movieclip_class = {
     QNAME, &static_flash_display_ns, 0, "MovieClip"
 };
@@ -37,6 +63,7 @@ multiname_t* registry_getanytype() {return &static_anytype_class;}
 multiname_t* registry_getstringclass() {return &static_string_class;}
 multiname_t* registry_getintclass() {return &static_int_class;}
 multiname_t* registry_getuintclass() {return &static_uint_class;}
+multiname_t* registry_getnullclass() {return &static_null_class;}
 multiname_t* registry_getbooleanclass() {return &static_boolean_class;}
 multiname_t* registry_getnumberclass() {return &static_number_class;}
 multiname_t* registry_getMovieClip() {return &static_movieclip_class;}