Fix comment typos
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
38f00d3544
commit
6d8ea4f7fa
10 changed files with 21 additions and 21 deletions
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
Use -DSWIG_DIRECTOR_STATIC if you prefer to avoid the use of the
|
||||||
'Swig' namespace. This could be usefull for multi-modules projects.
|
'Swig' namespace. This could be useful for multi-modules projects.
|
||||||
*/
|
*/
|
||||||
#ifdef SWIG_DIRECTOR_STATIC
|
#ifdef SWIG_DIRECTOR_STATIC
|
||||||
/* Force anonymous (static) namespace */
|
/* Force anonymous (static) namespace */
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
//
|
//
|
||||||
// embed15.i
|
// embed.i
|
||||||
// SWIG file embedding the Python interpreter in something else.
|
// SWIG file embedding the Python interpreter in something else.
|
||||||
// This file is based on Python-1.5. It will not work with
|
// This file is based on Python-1.5. It will not work with
|
||||||
// earlier versions.
|
// earlier versions.
|
||||||
//
|
//
|
||||||
// This file makes it possible to extend Python and all of its
|
// This file makes it possible to extend Python and all of its
|
||||||
// built-in functions without having to hack it's setup script.
|
// built-in functions without having to hack its setup script.
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
* earlier versions.
|
* earlier versions.
|
||||||
*
|
*
|
||||||
* This file makes it possible to extend Python and all of its
|
* This file makes it possible to extend Python and all of its
|
||||||
* built-in functions without having to hack it's setup script.
|
* built-in functions without having to hack its setup script.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifdef AUTODOC
|
#ifdef AUTODOC
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
/*
|
/*
|
||||||
Defines the As/From conversors for double/float complex, you need to
|
Defines the As/From converters for double/float complex, you need to
|
||||||
provide complex Type, the Name you want to use in the conversors,
|
provide complex Type, the Name you want to use in the converters,
|
||||||
the complex Constructor method, and the Real and Imag complex
|
the complex Constructor method, and the Real and Imag complex
|
||||||
accesor methods.
|
accessor methods.
|
||||||
|
|
||||||
See the std_complex.i and ccomplex.i for concret examples.
|
See the std_complex.i and ccomplex.i for concret examples.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* the common from conversor */
|
/* the common from converter */
|
||||||
%define %swig_fromcplx_conv(Type, Real, Imag)
|
%define %swig_fromcplx_conv(Type, Real, Imag)
|
||||||
%fragment(SWIG_From_frag(Type),"header")
|
%fragment(SWIG_From_frag(Type),"header")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ namespace std {
|
||||||
*/
|
*/
|
||||||
if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
|
if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
|
||||||
{
|
{
|
||||||
/* Objects can't be compared, this mostly occured in Python 3.0 */
|
/* Objects can't be compared, this mostly occurred in Python 3.0 */
|
||||||
/* Compare their ptr directly for a workaround */
|
/* Compare their ptr directly for a workaround */
|
||||||
res = (v < w);
|
res = (v < w);
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Compatibility marcos for Python 3 */
|
/* Compatibility macros for Python 3 */
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
|
|
||||||
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
|
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ swig_varlink_type(void) {
|
||||||
(char *)"swigvarlink", /* Type name (tp_name) */
|
(char *)"swigvarlink", /* Type name (tp_name) */
|
||||||
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
||||||
0, /* Itemsize (tp_itemsize) */
|
0, /* Itemsize (tp_itemsize) */
|
||||||
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
||||||
(printfunc) swig_varlink_print, /* Print (tp_print) */
|
(printfunc) swig_varlink_print, /* Print (tp_print) */
|
||||||
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
|
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
|
||||||
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
|
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
|
||||||
|
|
@ -163,7 +163,7 @@ swig_varlink_type(void) {
|
||||||
0, /* tp_as_mapping */
|
0, /* tp_as_mapping */
|
||||||
0, /* tp_hash */
|
0, /* tp_hash */
|
||||||
0, /* tp_call */
|
0, /* tp_call */
|
||||||
(reprfunc)swig_varlink_str, /* tp_str */
|
(reprfunc) swig_varlink_str, /* tp_str */
|
||||||
0, /* tp_getattro */
|
0, /* tp_getattro */
|
||||||
0, /* tp_setattro */
|
0, /* tp_setattro */
|
||||||
0, /* tp_as_buffer */
|
0, /* tp_as_buffer */
|
||||||
|
|
@ -184,7 +184,7 @@ swig_varlink_type(void) {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
varlink_type = tmp;
|
varlink_type = tmp;
|
||||||
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
|
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
||||||
#if PY_VERSION_HEX < 0x03000000
|
#if PY_VERSION_HEX < 0x03000000
|
||||||
varlink_type.ob_type = &PyType_Type;
|
varlink_type.ob_type = &PyType_Type;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
* Users can derive form the SwigPyIterator to implement their
|
* Users can derive form the SwigPyIterator to implement their
|
||||||
* own iterators. As an example (real one since we use it for STL/STD
|
* own iterators. As an example (real one since we use it for STL/STD
|
||||||
* containers), the template SwigPyIterator_T does the
|
* containers), the template SwigPyIterator_T does the
|
||||||
* implementation for genereic C++ iterators.
|
* implementation for generic C++ iterators.
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@
|
||||||
*
|
*
|
||||||
* This file defined macros to provide backward compatibility for these deprecated
|
* This file defined macros to provide backward compatibility for these deprecated
|
||||||
* symbols. In the case you have these symbols in your interface file, you can simply
|
* symbols. In the case you have these symbols in your interface file, you can simply
|
||||||
* include this file at begining of it.
|
* include this file at beginning of it.
|
||||||
*
|
*
|
||||||
* However, this file may be removed in future release of SWIG, so using this file to
|
* However, this file may be removed in future release of SWIG, so using this file to
|
||||||
* keep these inappropriate names in your SWIG interface file is also not recommanded.
|
* keep these inappropriate names in your SWIG interface file is also not recommended.
|
||||||
* Instead, we provide a simple tool for converting your interface files to
|
* Instead, we provide a simple tool for converting your interface files to
|
||||||
* the new naming convention. You can download the tool here:
|
* the new naming convention. You can download the tool here:
|
||||||
* https://swig.svn.sourceforge.net/svnroot/swig/trunk/Tools/pyname_patch.py
|
* https://swig.svn.sourceforge.net/svnroot/swig/trunk/Tools/pyname_patch.py
|
||||||
|
|
|
||||||
|
|
@ -440,7 +440,7 @@ SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
|
||||||
return (i < j) ? -1 : ((i > j) ? 1 : 0);
|
return (i < j) ? -1 : ((i > j) ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Added for Python 3.x, whould it also useful for Python 2.x? */
|
/* Added for Python 3.x, would it also be useful for Python 2.x? */
|
||||||
SWIGRUNTIME PyObject*
|
SWIGRUNTIME PyObject*
|
||||||
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
|
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
|
||||||
{
|
{
|
||||||
|
|
@ -488,7 +488,7 @@ SwigPyObject_dealloc(PyObject *v)
|
||||||
/* destroy is always a VARARGS method */
|
/* destroy is always a VARARGS method */
|
||||||
PyObject *res;
|
PyObject *res;
|
||||||
if (data->delargs) {
|
if (data->delargs) {
|
||||||
/* we need to create a temporal object to carry the destroy operation */
|
/* we need to create a temporary object to carry the destroy operation */
|
||||||
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
||||||
res = SWIG_Python_CallFunctor(destroy, tmp);
|
res = SWIG_Python_CallFunctor(destroy, tmp);
|
||||||
Py_DECREF(tmp);
|
Py_DECREF(tmp);
|
||||||
|
|
@ -689,7 +689,7 @@ _PySwigObject_type(void) {
|
||||||
if (!type_init) {
|
if (!type_init) {
|
||||||
const PyTypeObject tmp
|
const PyTypeObject tmp
|
||||||
= {
|
= {
|
||||||
/* PyOjbect header changed in Python 3 */
|
/* PyObject header changed in Python 3 */
|
||||||
#if PY_VERSION_HEX >= 0x03000000
|
#if PY_VERSION_HEX >= 0x03000000
|
||||||
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
||||||
#else
|
#else
|
||||||
|
|
@ -758,7 +758,7 @@ _PySwigObject_type(void) {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
swigpyobject_type = tmp;
|
swigpyobject_type = tmp;
|
||||||
/* for Python 3 we already assigned the ob_type in PyVarObject_HEAD_INIT() */
|
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
||||||
#if PY_VERSION_HEX < 0x03000000
|
#if PY_VERSION_HEX < 0x03000000
|
||||||
swigpyobject_type.ob_type = &PyType_Type;
|
swigpyobject_type.ob_type = &PyType_Type;
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1206,7 +1206,7 @@ SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *t
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Create a new instance object, whitout calling __init__, and set the
|
Create a new instance object, without calling __init__, and set the
|
||||||
'this' attribute.
|
'this' attribute.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue