fixed xml_ns.as
[swftools.git] / lib / as3 / registry.c
index 5b6d552..8330a6e 100644 (file)
@@ -379,7 +379,7 @@ classinfo_t* slotinfo_gettype(slotinfo_t*f)
 }
 
 // ----------------------- package handling ---------------------------
-char registry_ispackage(char*package)
+char registry_ispackage(const char*package)
 {
     /* crude approximation of "the real thing", but sufficient for now */
     return !strncmp(package, "flash", 5);
@@ -435,6 +435,11 @@ classinfo_t* registry_getregexpclass() {
     if(!c) c = (classinfo_t*)registry_safefind("", "RegExp");
     return c;
 }
+classinfo_t* registry_getdateclass() {
+    static classinfo_t*c = 0;
+    if(!c) c = (classinfo_t*)registry_safefind("", "Date");
+    return c;
+}
 classinfo_t* registry_getxmlclass() {
     static classinfo_t*c = 0;
     if(!c) c = (classinfo_t*)registry_safefind("", "XML");