Bug 860731 - Part a: Add 'extern' to the definition of EnumEntry tables; r=bz
authorMs2ger <ms2ger@gmail.com>
Wed, 12 Jun 2013 08:55:26 +0200
changeset 146196 e20539356853f52a09c54a02a7a5e8a40564feb8
parent 146195 135a277d13194b78612fb30be8ee744ce749614a
child 146197 7880cbf6200f482cc37aa9ff715813adf5e33eeb
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs860731
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 860731 - Part a: Add 'extern' to the definition of EnumEntry tables; r=bz
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -5590,17 +5590,17 @@ MOZ_BEGIN_ENUM_CLASS(%s, uint32_t)
   %s
 MOZ_END_ENUM_CLASS(%s)
 
 """ % (enumName, ",\n  ".join(map(getEnumValueName, self.enum.values())),
        enumName) + strings.declare()
 
     def define(self):
         strings = """
-  const EnumEntry %s[%d] = {
+  extern const EnumEntry %s[%d] = {
     %s,
     { nullptr, 0 }
   };
 """ % (ENUM_ENTRY_VARIABLE_NAME, self.nEnumStrings(),
        ",\n    ".join(['{"' + val + '", ' + str(len(val)) + '}' for val in self.enum.values()]))
         return CGNamespace(self.stringsNamespace(), CGGeneric(define=strings)).define()
 
     def deps(self):