1. 24 Oct, 2009 3 commits
    • Mark Lodato's avatar
      freeze: fix for compiling with Python3 · e26883a6
      Mark Lodato authored
      To get the output of cython_freeze to compile with both Python 2 and
      Python 3, I copied the contents of Python-3.1.1/Modules/python.c, with
      some slight modifications.  The main issue is that Python 3 uses
      wchar_t, while Python 2 uses char.  It also appears that the
      Py_FlushLine/PyErr_Clear is not needed in Python 3.
      
      Related to #434: "main() function generated by --embed doesn't compile
      in Py3"
      e26883a6
    • Mark Lodato's avatar
      freeze: exit(2) in examples, to test exit code · 0c2f9b06
      Mark Lodato authored
      The cython_freeze-generated executable exits with code 1 if something
      wrong happens, unless a SystemExit exception occurred, in which case it
      returns the value passed to sys.exit().  In order to differentiate
      between the two cases, change the two example Cython modules to exit(2).
      0c2f9b06
    • Mark Lodato's avatar
      freeze: include FreeBSD fix from Python's main() · 41e31056
      Mark Lodato authored
      Copy the fix for floating point exceptions on FreeBSD from Python's
      Module/python.c.
      41e31056
  2. 12 Oct, 2009 1 commit
  3. 05 Oct, 2009 7 commits
  4. 04 Oct, 2009 4 commits
  5. 06 Oct, 2009 1 commit
  6. 04 Oct, 2009 1 commit
  7. 03 Oct, 2009 1 commit
  8. 04 Oct, 2009 1 commit
  9. 24 Oct, 2009 5 commits
  10. 12 Oct, 2009 1 commit
    • Mark Lodato's avatar
      prevent warnings when compiling with `gcc -Wextra` · dabef9db
      Mark Lodato authored
      The PyInt conversion functions generate two warnings when compiled under
      `gcc -Wall -Wextra`:
      
      1. comparison of unsigned expression < 0 is always false
      
      2. signed and unsigned type in conditional expression
      
      This patch fixes these problems by creating a new temporary variable
      `is_unsigned`, which fixes problem 1, and by converting the ternary
      return expression into a normal if/else branch, which fixes problem 2.
      dabef9db
  11. 23 Oct, 2009 1 commit
  12. 22 Oct, 2009 1 commit
  13. 16 Oct, 2009 2 commits
  14. 23 Oct, 2009 6 commits
  15. 22 Oct, 2009 5 commits