Bug 780266: Add new SWF versions for SWF18 and AIR_3_5 (p=enorton,r=dschaffe)
authorDan Schaffer <Dan.Schaffer@adobe.com>
Fri, 17 Aug 2012 12:31:50 -0700
changeset 7531 c0e57db1ba075668aef10a3be3171c65f8dbc6ce
parent 7530 c819efba769f1fbb196630fb1529a20f4d134d9c
child 7532 0f1a8318e89530201354f90c0b5691b859e99da4
push id4256
push userdschaffe@adobe.com
push dateMon, 20 Aug 2012 13:10:53 +0000
reviewersdschaffe
bugs780266, 1100751, 1101569
Bug 780266: Add new SWF versions for SWF18 and AIR_3_5 (p=enorton,r=dschaffe) integrate CL 1100751 CL@1101569
utils/apivergen.as
--- a/utils/apivergen.as
+++ b/utils/apivergen.as
@@ -541,17 +541,17 @@ package apivergen
             out += '    "' + c[i].name + '"';
             if (i < c.length - 1)
                out += ", ";
             out += "\n";
         }
         out += "};\n";
         out += "\n";
 
-        out += "public static final int kApiVersionSeriesMembership[kApiVersion_count] = {\n";
+        out += "public static final int kApiVersionSeriesMembership[] = {\n";
         var c = frag.ordered_versions;
         for (var i=0 ; i < c.length; i++)
         {
             var s:String = "";
             for (var j=0 ; j < frag.series_names.length; j++)
             {
                 if (frag.series_names[j] in c[i].series)
                 {
@@ -563,17 +563,17 @@ package apivergen
             out += "    " + s;
             if (i < c.length-1)
                 out += ",";
             out += '\n';
         }
         out += "};\n";
         out += "\n";
 
-        out += "public static final int kApiVersionSeriesTransfer[kApiVersion_count][kApiVersionSeries_count] = {\n";
+        out += "public static final int kApiVersionSeriesTransfer[][] = {\n";
         var c = frag.ordered_versions;
         for (var i=0 ; i < c.length; i++)
         {
             out += "    { ";
             for (var j=0 ; j < frag.series_names.length; j++)
             {
                 var cur_series_name = frag.series_names[j];
                 // Find the smallest version in the given series that has us as a subset.
@@ -596,29 +596,29 @@ package apivergen
             if (i < c.length-1)
                 out += ",";
             out += " // " + c[i].name;
             out += "\n";
         }
         out += "};\n";
         out += "\n";
 
-        out += "public static final int kApiVersionFirst[kApiVersionSeries_count] = {\n";
+        out += "public static final int kApiVersionFirst[] = {\n";
         var c = frag.series_first;
         for (var i=0 ; i < c.length; i++)
         {
             out += '    kApiVersion_' + c[i];
             if (i < c.length-1)
                 out += ",";
             out += "\n";
         }
         out += "};\n";
         out += "\n";
 
-        out += "public static final int kApiVersionLatest[kApiVersionSeries_count] = {\n";
+        out += "public static final int kApiVersionLatest[] = {\n";
         var c = frag.series_latest;
         for (var i=0 ; i < c.length; i++)
         {
             out += '    kApiVersion_' + c[i];
             if (i < c.length-1)
                 out += ",";
             out += "\n";
         }