[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-commits] CVS: adonthell/src event.cc,1.12.2.8,1.12.2.9 pytest
From: |
Alexandre Courbot <address@hidden> |
Subject: |
[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 |
Date: |
Thu, 12 Sep 2002 14:50:06 -0400 |
Update of /cvsroot/adonthell/adonthell/src
In directory subversions:/tmp/cvs-serv3740/src
Modified Files:
Tag: Branch_road_to_0-4
event.cc pytest.cc schedtest.cc
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: event.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/event.cc,v
retrieving revision 1.12.2.8
retrieving revision 1.12.2.9
diff -C2 -r1.12.2.8 -r1.12.2.9
*** event.cc 30 Jun 2002 19:01:01 -0000 1.12.2.8
--- event.cc 12 Sep 2002 18:50:02 -0000 1.12.2.9
***************
*** 87,91 ****
// We can pass_instance directly 'cause PyTuple_SetItem steals a
// reference to the result of pass_instance.
! PyTuple_SetItem (theargs, 0, python::pass_instance (this, "event"));
for (u_int16 i = 1; i < argssize; i++)
{
--- 87,91 ----
// We can pass_instance directly 'cause PyTuple_SetItem steals a
// reference to the result of pass_instance.
! PyTuple_SetItem (theargs, 0, python::pass_instance (this, "base",
"event"));
for (u_int16 i = 1; i < argssize; i++)
{
Index: pytest.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/Attic/pytest.cc,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -r1.1.2.2 -r1.1.2.3
*** pytest.cc 11 Aug 2002 20:57:45 -0000 1.1.2.2
--- pytest.cc 12 Sep 2002 18:50:02 -0000 1.1.2.3
***************
*** 11,17 ****
*
*/
! void initbasec (void);
! void initgfxc (void);
! void initinputc (void);
}
extern "C"
--- 11,17 ----
*
*/
! void init_base (void);
! void init_gfx (void);
! void init_input (void);
}
extern "C"
***************
*** 19,25 ****
{
python::init();
! initbasec();
! initgfxc();
! initinputc();
Py_Main (argc, argv);
python::cleanup();
--- 19,29 ----
{
python::init();
! init_base();
! init_gfx();
! init_input();
!
! python::insert_path(".");
! data::globals = PyModule_GetDict (python::import_module("input"));
!
Py_Main (argc, argv);
python::cleanup();
Index: schedtest.cc
===================================================================
RCS file: /cvsroot/adonthell/adonthell/src/Attic/schedtest.cc,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** schedtest.cc 30 Jun 2002 19:01:00 -0000 1.1.2.3
--- schedtest.cc 12 Sep 2002 18:50:02 -0000 1.1.2.4
***************
*** 11,15 ****
extern "C"
{
! void initbasec (void);
}
--- 11,15 ----
extern "C"
{
! void init_base (void);
}
***************
*** 62,66 ****
python::init ();
python::insert_path ("adontest");
! initbasec ();
PyObject *module = python::import_module ("base");
data::globals = PyModule_GetDict (module);
--- 62,66 ----
python::init ();
python::insert_path ("adontest");
! init_base ();
PyObject *module = python::import_module ("base");
data::globals = PyModule_GetDict (module);
[Prev in Thread] |
Current Thread |
[Next in 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,
Alexandre Courbot <address@hidden> <=
- Prev by Date:
[Adonthell-commits] CVS: adonthell/src/input listener.cc,1.1.2.2,1.1.2.3
- Next by Date:
[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
- Previous by thread:
[Adonthell-commits] CVS: adonthell/src/input listener.cc,1.1.2.2,1.1.2.3
- Next by 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
- Index(es):