| OLD | NEW |
| 1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #ifndef {{namespace}}Names_h | 4 #ifndef {{namespace}}{{suffix}}Names_h |
| 5 #define {{namespace}}Names_h | 5 #define {{namespace}}{{suffix}}Names_h |
| 6 | 6 |
| 7 {% if suffix %} |
| 8 #include "{{namespace}}Names.h" |
| 9 {% else %} |
| 7 {% if export %} | 10 {% if export %} |
| 8 #include "platform/PlatformExport.h" | 11 #include "platform/PlatformExport.h" |
| 9 {% endif %} | 12 {% endif %} |
| 10 #include "wtf/text/AtomicString.h" | 13 #include "wtf/text/AtomicString.h" |
| 14 {% endif %} |
| 11 | 15 |
| 12 namespace WebCore { | 16 namespace WebCore { |
| 13 namespace {{namespace}}Names { | 17 namespace {{namespace}}Names { |
| 14 | 18 |
| 15 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 19 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
| 16 | 20 |
| 17 {% for entry in entries|sort %} | 21 {% for entry in entries|sort %} |
| 18 {% if export %} | 22 {% if export %} |
| 19 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; | 23 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; |
| 20 {% else %} | 24 {% else %} |
| 21 extern const WTF::AtomicString {{entry|symbol}}; | 25 extern const WTF::AtomicString {{entry|symbol}}; |
| 22 {% endif %} | 26 {% endif %} |
| 23 {% endfor %} | 27 {% endfor %} |
| 24 | 28 |
| 25 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 29 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
| 26 | 30 |
| 27 {{export}} void init(); | 31 {{export}} void init{{suffix}}(); |
| 28 | 32 |
| 29 } // {{namespace}}Names | 33 } // {{namespace}}Names |
| 30 } // WebCore | 34 } // WebCore |
| 31 | 35 |
| 32 #endif | 36 #endif |
| OLD | NEW |