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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 {% from "macros.tmpl" import license -%}
2 {{ license() }}
3
4 #include "config.h"
5
6 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC
7 #define {{namespace}}_HIDE_GLOBALS 1
8 #endif
9
10 #include "{{namespace}}.h"
11
12 #include "wtf/StaticConstructors.h"
13
14 namespace WebCore {
15 namespace {{namespace}} {
16
17 using namespace WTF;
18
19 {%- for name in names %}
20 DEFINE_GLOBAL(AtomicString, {{name}})
21 {%- endfor %}
22
23 void init()
24 {
25 {%- for name in names %}
26 StringImpl* {{name}}Impl = StringImpl::createStatic("{{name}}", {{name|lengt h}}, {{name|hash}});
27 {%- endfor %}
28
29
30 {%- for name in names %}
31 new ((void*)&{{name}}) AtomicString({{name}}Impl);
32 {%- endfor %}
33 }
34
35 } // {{namespace}}
36 } // WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698