1. 26 Jun, 2016 1 commit
    • Boxiang Sun's avatar
      Add two functions wrappers for PyPy · eaa464a2
      Boxiang Sun authored
      The change in PyCode_HasFreeVars and PyFrame_SetLineNumber will also
      effect Cython under PyPy. So add those two functions for PyPy. But
      didn't test those yet.
      
      [ @kirr: we might want to restructure pycapicompat.h in the future to be
        driven by function name as primary key. Not sure for now though - we'll
        see how it goes ]
      
      /reviewed-by @kirr
      /reviewed-on !2
      eaa464a2
  2. 17 Jun, 2016 1 commit
    • Boxiang Sun's avatar
      Add support for PyFrame_SetLineNumber & PyCode_HasFreeVars · 9d2c4626
      Boxiang Sun authored
      In Pyston C API, there have new added PyFrame_SetLineNumber and
      PyCode_HasFreeVars two APIs. Add these two inlined C functions for
      CPython.
      
      PyFrame_SetLineNumber is for get frame line number.
      PyCode_HasFreeVars is for check whether PyCodeObject has freevars.
      
      [ @kirr: reworked patch for better structure ]
      
      /reviewed-on !1
      9d2c4626
  3. 13 Jun, 2016 3 commits