PageRenderTime 50ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Lib/python/pyname_compat.i

#
Swig | 88 lines | 61 code | 2 blank | 25 comment | 0 complexity | 883fe934ae36b491f76cfc95960c2dca MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. /*
  2. * From SWIG 1.3.37 we deprecated all SWIG symbols that start with Py,
  3. * since they are inappropriate and discouraged in Python documentation
  4. * (from http://www.python.org/doc/2.5.2/api/includes.html):
  5. *
  6. * "All user visible names defined by Python.h (except those defined by the included
  7. * standard headers) have one of the prefixes "Py" or "_Py". Names beginning with
  8. * "_Py" are for internal use by the Python implementation and should not be used
  9. * by extension writers. Structure member names do not have a reserved prefix.
  10. *
  11. * Important: user code should never define names that begin with "Py" or "_Py".
  12. * This confuses the reader, and jeopardizes the portability of the user code to
  13. * future Python versions, which may define additional names beginning with one
  14. * of these prefixes."
  15. *
  16. * This file defined macros to provide backward compatibility for these deprecated
  17. * symbols. In the case you have these symbols in your interface file, you can simply
  18. * include this file at beginning of it.
  19. *
  20. * However, this file may be removed in future release of SWIG, so using this file to
  21. * keep these inappropriate names in your SWIG interface file is also not recommended.
  22. * Instead, we provide a simple tool for converting your interface files to
  23. * the new naming convention. You can download the tool here:
  24. * https://swig.svn.sourceforge.net/svnroot/swig/trunk/Tools/pyname_patch.py
  25. */
  26. %fragment("PySequence_Base", "header", fragment="SwigPySequence_Base") {}
  27. %fragment("PySequence_Cont", "header", fragment="SwigPySequence_Cont") {}
  28. %fragment("PySwigIterator_T", "header", fragment="SwigPyIterator_T") {}
  29. %fragment("PyPairBoolOutputIterator", "header", fragment="SwigPyPairBoolOutputIterator") {}
  30. %fragment("PySwigIterator", "header", fragment="SwigPyIterator") {}
  31. %fragment("PySwigIterator_T", "header", fragment="SwigPyIterator_T") {}
  32. %inline %{
  33. #define PyMapIterator_T SwigPyMapIterator_T
  34. #define PyMapKeyIterator_T SwigPyMapKeyIterator_T
  35. #define PyMapValueIterator_T SwigPyMapValueITerator_T
  36. #define PyObject_ptr SwigPtr_PyObject
  37. #define PyObject_var SwigVar_PyObject
  38. #define PyOper SwigPyOper
  39. #define PySeq SwigPySeq
  40. #define PySequence_ArrowProxy SwigPySequence_ArrowProxy
  41. #define PySequence_Cont SwigPySequence_Cont
  42. #define PySequence_InputIterator SwigPySequence_InputIterator
  43. #define PySequence_Ref SwigPySequence_Ref
  44. #define PySwigClientData SwigPyClientData
  45. #define PySwigClientData_Del SwigPyClientData_Del
  46. #define PySwigClientData_New SwigPyClientData_New
  47. #define PySwigIterator SwigPyIterator
  48. #define PySwigIteratorClosed_T SwigPyIteratorClosed_T
  49. #define PySwigIteratorOpen_T SwigPyIteratorOpen_T
  50. #define PySwigIterator_T SwigPyIterator_T
  51. #define PySwigObject SwigPyObject
  52. #define PySwigObject_Check SwigPyObject_Check
  53. #define PySwigObject_GetDesc SwigPyObject_GetDesc
  54. #define PySwigObject_New SwigPyObject_New
  55. #define PySwigObject_acquire SwigPyObject_acquire
  56. #define PySwigObject_append SwigPyObject_append
  57. #define PySwigObject_as_number SwigPyObject_as_number
  58. #define PySwigObject_compare SwigPyObject_compare
  59. #define PySwigObject_dealloc SwigPyObject_dealloc
  60. #define PySwigObject_disown SwigPyObject_disown
  61. #define PySwigObject_format SwigPyObject_format
  62. #define PySwigObject_getattr SwigPyObject_getattr
  63. #define PySwigObject_hex SwigPyObject_hex
  64. #define PySwigObject_long SwigPyObject_long
  65. #define PySwigObject_next SwigPyObject_next
  66. #define PySwigObject_oct SwigPyObject_oct
  67. #define PySwigObject_own SwigPyObject_own
  68. #define PySwigObject_print SwigPyObject_print
  69. #define PySwigObject_repr SwigPyObject_repr
  70. #define PySwigObject_richcompare SwigPyObject_richcompare
  71. #define PySwigObject_str SwigPyObject_str
  72. #define PySwigObject_type SwigPyObject_type
  73. #define PySwigPacked SwigPyPacked
  74. #define PySwigPacked_Check SwigPyPacked_Check
  75. #define PySwigPacked_New SwigPyPacked_New
  76. #define PySwigPacked_UnpackData SwigPyPacked_UnpackData
  77. #define PySwigPacked_compare SwigPyPacked_compare
  78. #define PySwigPacked_dealloc SwigPyPacked_dealloc
  79. #define PySwigPacked_print SwigPyPacked_print
  80. #define PySwigPacked_repr SwigPyPacked_repr
  81. #define PySwigPacked_str SwigPyPacked_str
  82. #define PySwigPacked_type SwigPyPacked_type
  83. #define pyseq swigpyseq
  84. #define pyswigobject_type swigpyobject_type
  85. #define pyswigpacked_type swigpypacked_type
  86. %}