Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Unified Diff: Source/core/scripts/templates/MakeNames.cpp.tmpl

Issue 26414004: Move core/scripts to build/scripts so that platform can use them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/scripts/templates/MakeNames.cpp.tmpl
diff --git a/Source/core/scripts/templates/MakeNames.cpp.tmpl b/Source/core/scripts/templates/MakeNames.cpp.tmpl
deleted file mode 100644
index 85f55a10910808118f0c78db980d6ab42dd8eeb5..0000000000000000000000000000000000000000
--- a/Source/core/scripts/templates/MakeNames.cpp.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-{% from "macros.tmpl" import license -%}
-{{ license() }}
-
-#include "config.h"
-
-#ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC
-#define {{namespace}}_HIDE_GLOBALS 1
-#endif
-
-#include "{{namespace}}.h"
-
-#include "wtf/StaticConstructors.h"
-
-namespace WebCore {
-namespace {{namespace}} {
-
-using namespace WTF;
-
-{%- for name in names %}
-DEFINE_GLOBAL(AtomicString, {{name}})
-{%- endfor %}
-
-void init()
-{
-{%- for name in names %}
- StringImpl* {{name}}Impl = StringImpl::createStatic("{{name}}", {{name|length}}, {{name|hash}});
-{%- endfor %}
-
-
-{%- for name in names %}
- new ((void*)&{{name}}) AtomicString({{name}}Impl);
-{%- endfor %}
-}
-
-} // {{namespace}}
-} // WebCore

Powered by Google App Engine
This is Rietveld 408576698