openbabel-python-2.3.2-swig-3.0.3.patch 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. scripts/openbabel-python.i | 34 +++++++++++++++++-----------------
  2. 1 file changed, 17 insertions(+), 17 deletions(-)
  3. diff --git a/scripts/openbabel-python.i b/scripts/openbabel-python.i
  4. index 7cb8f24..d893129 100644
  5. --- a/scripts/openbabel-python.i
  6. +++ b/scripts/openbabel-python.i
  7. @@ -227,7 +227,7 @@ CAST_GENERICDATA_TO(SquarePlanarStereo)
  8. %include <openbabel/math/transform3d.h>
  9. %include <openbabel/math/spacegroup.h>
  10. -# CloneData should be used instead of the following method
  11. +// CloneData should be used instead of the following method
  12. %ignore OpenBabel::OBBase::SetData;
  13. %include <openbabel/base.h>
  14. @@ -289,7 +289,7 @@ OBMol.BeginResidues = OBMol.EndResidues = OBMol.BeginResidue = OBMol.EndResidue
  15. %ignore OpenBabel::OBDescriptor::LessThan;
  16. %include <openbabel/descriptor.h>
  17. -# Ignore shadowed methods
  18. +// Ignore shadowed methods
  19. %ignore OpenBabel::OBForceField::VectorSubtract(const double *const, const double *const, double *);
  20. %ignore OpenBabel::OBForceField::VectorMultiply(const double *const, const double, double *);
  21. %include <openbabel/forcefield.h>
  22. @@ -310,7 +310,7 @@ OBMol.BeginResidues = OBMol.EndResidues = OBMol.BeginResidue = OBMol.EndResidue
  23. %warnfilter(503) OpenBabel::OBBitVec; // Not wrapping any of the overloaded operators
  24. %include <openbabel/bitvec.h>
  25. -# Ignore shadowed method
  26. +// Ignore shadowed method
  27. %ignore OpenBabel::OBRotor::GetRotAtoms() const;
  28. %include <openbabel/rotor.h>
  29. %ignore OpenBabel::Swab;
  30. @@ -321,13 +321,13 @@ OBMol.BeginResidues = OBMol.EndResidues = OBMol.BeginResidue = OBMol.EndResidue
  31. %include <openbabel/math/align.h>
  32. #endif
  33. -# The following %ignores avoid warning messages due to shadowed classes.
  34. -# This does not imply a loss of functionality as (in this case)
  35. -# the shadowed class is identical (from the point of view of SWIG) to
  36. -# the shadowing class.
  37. -# This is because C++ references (&) are transformed by SWIG back into
  38. -# pointers, so that OBAtomIter(OBMol &) would be treated the same as
  39. -# OBAtomIter(OBMol *).
  40. +// The following %ignores avoid warning messages due to shadowed classes.
  41. +// This does not imply a loss of functionality as (in this case)
  42. +// the shadowed class is identical (from the point of view of SWIG) to
  43. +// the shadowing class.
  44. +// This is because C++ references (&) are transformed by SWIG back into
  45. +// pointers, so that OBAtomIter(OBMol &) would be treated the same as
  46. +// OBAtomIter(OBMol *).
  47. %ignore OBAtomAtomIter(OBAtom &);
  48. %ignore OBAtomBondIter(OBAtom &);
  49. @@ -346,9 +346,9 @@ OBMol.BeginResidues = OBMol.EndResidues = OBMol.BeginResidue = OBMol.EndResidue
  50. %ignore OBResidueIter(OBMol &);
  51. %ignore OBResidueAtomIter(OBResidue &);
  52. -# These classes are renamed so that they can be replaced by Python
  53. -# classes of the same name which provide Pythonic iterators
  54. -# (see %pythoncode section below)
  55. +// These classes are renamed so that they can be replaced by Python
  56. +// classes of the same name which provide Pythonic iterators
  57. +// (see %pythoncode section below)
  58. %rename(_OBAtomAtomIter) OpenBabel::OBAtomAtomIter;
  59. %rename(_OBAtomBondIter) OpenBabel::OBAtomBondIter;
  60. @@ -367,8 +367,8 @@ OBMol.BeginResidues = OBMol.EndResidues = OBMol.BeginResidue = OBMol.EndResidue
  61. %include <openbabel/obiter.h>
  62. -# The following class, OBiter, is subclassed to provide Python iterators
  63. -# equivalent to the C++ iterators in obiter.h and the plugin iterators
  64. +// The following class, OBiter, is subclassed to provide Python iterators
  65. +// equivalent to the C++ iterators in obiter.h and the plugin iterators
  66. %pythoncode %{
  67. class OBIter(object):
  68. @@ -459,7 +459,7 @@ def double_array(mylist):
  69. return c
  70. %}
  71. -# Copy some of the global variables in cvar into the openbabel namespace
  72. +// Copy some of the global variables in cvar into the openbabel namespace
  73. %pythoncode %{
  74. obErrorLog = cvar.obErrorLog
  75. @@ -470,7 +470,7 @@ atomtyper = cvar.atomtyper
  76. aromtyper = cvar.aromtyper
  77. %}
  78. -# Functions to set the log file to std::cout and std::cerr
  79. +// Functions to set the log file to std::cout and std::cerr
  80. %ignore OBForceField::SetLogFile(std::ostream *pos);
  81. %extend OpenBabel::OBForceField {