Index: Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl |
diff --git a/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl b/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl |
index e6ff66955bfff4326bb67f4bfa05baa0da80727e..64bf7b27f641f38de5a19738b13fa8b026a44cad 100644 |
--- a/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl |
+++ b/Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl |
@@ -28,14 +28,12 @@ DEFINE_GLOBAL(QualifiedName, {{tag|symbol}}Tag) |
{%- endfor %} |
-const WebCore::QualifiedName* const* get{{namespace}}Tags() |
+void get{{namespace}}Tags(WebCore::QualifiedName* tags[], unsigned length) |
{ |
- static const WebCore::QualifiedName* const {{namespace}}Tags[] = { |
+ ASSERT(length == {{namespace}}TagsCount); |
{%- for tag in tags|sort %} |
- (WebCore::QualifiedName*)&{{tag|symbol}}Tag, |
+ tags[{{loop.index0}}] = (WebCore::QualifiedName*)&{{tag|symbol}}Tag; |
{%- endfor %} |
- }; |
- return {{namespace}}Tags; |
} |
{%- endif %} |
@@ -45,14 +43,12 @@ const WebCore::QualifiedName* const* get{{namespace}}Tags() |
DEFINE_GLOBAL(QualifiedName, {{attr|symbol}}Attr) |
{%- endfor %} |
-const WebCore::QualifiedName* const* get{{namespace}}Attrs() |
+void get{{namespace}}Attrs(WebCore::QualifiedName* attributes[], unsigned length) |
{ |
- static const WebCore::QualifiedName* const {{namespace}}Attrs[] = { |
+ ASSERT(length == {{namespace}}AttrsCount); |
{%- for attr in attrs|sort %} |
- (WebCore::QualifiedName*)&{{attr|symbol}}Attr, |
+ attributes[{{loop.index0}}] = (WebCore::QualifiedName*)&{{attr|symbol}}Attr; |
{%- endfor %} |
- }; |
- return {{namespace}}Attrs; |
} |
void init() |