[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src/python base.cc,1.1.2.1,1.1.2.2 ba
From: |
Alexandre Courbot <address@hidden> |
Subject: |
[Adonthell-commits] CVS: adonthell/src/python base.cc,1.1.2.1,1.1.2.2 base.h,1.1.2.1,1.1.2.2 |
Date: |
Thu, 12 Sep 2002 14:50:06 -0400 |
Update of /cvsroot/adonthell/adonthell/src/python
In directory subversions:/tmp/cvs-serv3740/src/python
Modified Files:
Tag: Branch_road_to_0-4
base.cc base.h
Log Message:
Did the necessary change to make the collision test Python demo work
independently of all the C++ code.
Fixed for SWIG 1.3.14.
Index: base.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/python/Attic/base.cc,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** base.cc 30 Jun 2002 19:01:00 -0000 1.1.2.1
--- base.cc 12 Sep 2002 18:50:02 -0000 1.1.2.2
***************
*** 107,111 ****
// Make a C++ instance available to Python
! PyObject *python::pass_instance (void *instance, const char *class_name)
{
char class_ptr[256];
--- 107,111 ----
// Make a C++ instance available to Python
! PyObject *python::pass_instance (void *instance, const char * nspace_name,
const char *class_name)
{
char class_ptr[256];
***************
*** 120,124 ****
buffer = ptr_to_string (buffer, &instance, sizeof (void *));
strcpy (buffer, "_p_");
! strcpy (buffer+3, class_name);
// Now create the Python object corresponding to "instance"
--- 120,129 ----
buffer = ptr_to_string (buffer, &instance, sizeof (void *));
strcpy (buffer, "_p_");
! buffer += 3;
! strcpy (buffer, nspace_name);
! buffer += strlen(nspace_name);
! strcpy (buffer, "__");
! buffer += 2;
! strcpy (buffer, class_name);
// Now create the Python object corresponding to "instance"
Index: base.h
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/python/Attic/base.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** base.h 30 Jun 2002 19:01:00 -0000 1.1.2.1
--- base.h 12 Sep 2002 18:50:02 -0000 1.1.2.2
***************
*** 100,104 ****
* @return pointer to the passed %object.
*/
! PyObject *pass_instance (void* instance, const char* class_name);
/**
--- 100,104 ----
* @return pointer to the passed %object.
*/
! PyObject *pass_instance (void* instance, const char* nspace_name, const
char* class_name);
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-commits] CVS: adonthell/src/python base.cc,1.1.2.1,1.1.2.2 base.h,1.1.2.1,1.1.2.2,
Alexandre Courbot <address@hidden> <=
- Prev by Date:
[Adonthell-commits] CVS: adonthell/src event.cc,1.12.2.8,1.12.2.9 pytest.cc,1.1.2.2,1.1.2.3 schedtest.cc,1.1.2.3,1.1.2.4
- Next by Date:
[Adonthell-commits] CVS: adonthell/src/input Makefile.am,1.1.2.2,1.1.2.3
- Previous by thread:
[Adonthell-commits] CVS: adonthell/src event.cc,1.12.2.8,1.12.2.9 pytest.cc,1.1.2.2,1.1.2.3 schedtest.cc,1.1.2.3,1.1.2.4
- Next by thread:
[Adonthell-commits] CVS: adonthell/src/input Makefile.am,1.1.2.2,1.1.2.3
- Index(es):