From: Robert Bradshaw Date: Sat, 7 Sep 2013 19:41:19 +0000 (-0700) Subject: Merge pull request #49 from denik/7d7751ac5192c68d3501e48f663f2cae77a57990 X-Git-Tag: 0.20b1~334 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d50e6aa0723cb030616d30f6ee994e8c2502d7cc;p=platform%2Fupstream%2Fpython-cython.git Merge pull request #49 from denik/7d7751ac5192c68d3501e48f663f2cae77a57990 Avoid dramatic changes in the resulting .c file when the input .pyx file changes only slightly. --- d50e6aa0723cb030616d30f6ee994e8c2502d7cc diff --cc Cython/Compiler/Code.py index 98ddad0,923a312..e58a3e8 --- a/Cython/Compiler/Code.py +++ b/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 = []