Changeset 19
- Timestamp:
- 05/21/07 15:05:09 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/pygetsetcall/src/nrnpython/nrnpy_hoc.cpp
r16 r19 402 402 //printf("hocobj_getattro %s\n", n); 403 403 PyObject* result = 0; 404 405 // use below for casting 406 PyHocObject* po; 407 404 408 if (self->type_ == 1 && !self->ho_) { 405 409 Py_DECREF(name); … … 488 492 case STRINGFUNC: 489 493 result = hocobj_new(hocobject_type, 0, 0); 490 PyHocObject*po = (PyHocObject*)result;494 po = (PyHocObject*)result; 491 495 if (self->ho_) { 492 496 po->ho_ = self->ho_; … … 510 514 Inst* pcsav; 511 515 Inst fc; 516 517 PyHocObject* po; 518 512 519 if (self->type_ == 1 && !self->ho_) { 513 520 return 1; … … 523 530 if (self->ho_) { // use the component fork. 524 531 PyObject* result = hocobj_new(hocobject_type, 0, 0); 525 PyHocObject*po = (PyHocObject*)result;532 po = (PyHocObject*)result; 526 533 po->ho_ = self->ho_; 527 534 hoc_obj_ref(po->ho_); … … 571 578 case OBJECTVAR: // Object* 572 579 hocobj_objectvar(sym); 573 PyHocObject* po;574 Object**op = hoc_objpop();580 Object** op; 581 op = hoc_objpop(); 575 582 if (PyArg_Parse(value, "O!", hocobject_type, &po) == 1) { 576 583 if (po->sym_) { … … 684 691 hocobj_pushtop(po, 0, i); 685 692 hocobj_objectvar(po->sym_); 686 Object** op = hoc_objpop(); 693 Object** op; 694 op = hoc_objpop(); 687 695 if (PyArg_Parse(arg, "O!", hocobject_type, &po) == 1) { 688 696 if (po->sym_) {

