Merge pull request #49 from denik/7d7751ac5192c68d3501e48f663f2cae77a57990
authorRobert Bradshaw <robertwb@gmail.com>
Sat, 7 Sep 2013 19:41:19 +0000 (12:41 -0700)
committerRobert Bradshaw <robertwb@gmail.com>
Sat, 7 Sep 2013 19:41:19 +0000 (12:41 -0700)
Avoid dramatic changes in the resulting .c file when the input .pyx file changes only slightly.

1  2 
Cython/Compiler/Code.py

@@@ -898,14 -508,10 +898,14 @@@ class GlobalState(object)
          self.declared_cnames = {}
          self.in_utility_code_generation = False
          self.emit_linenums = emit_linenums
 +        self.common_utility_include_dir = common_utility_include_dir
          self.parts = {}
 +        self.module_node = module_node # because some utility code generation needs it
 +                                       # (generating backwards-compatible Get/ReleaseBuffer
  
-         self.const_cname_counter = 1
+         self.const_cname_counters = {}
          self.string_const_index = {}
 +        self.pyunicode_ptr_const_index = {}
          self.int_const_index = {}
          self.py_constants = []