Changeset ed47aab in git for Singular/pyobject.cc


Ignore:
Timestamp:
Aug 1, 2012, 11:02:34 PM (11 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'c987db42cd2ec943b97ac5746c99892ceddf909c')
Children:
eff32475b39858b9ea00d1f210285e77a6d485d1
Parents:
3d69257fe19a1e388e6e33fc7381ea50cf3041cb
Message:
new: newstruct_desc can be utilized by non-newstruc custom types
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/pyobject.cc

    r3d69257 red47aab  
    521521  }
    522522
     523  if (op > MAX_TOK)       // custom types
     524  {
     525    BOOLEAN newstruct_Op1(int, leftv, leftv);
     526    if (! newstruct_Op1(op, res, head) ) return FALSE;
     527  }
     528
    523529  return PythonCastStatic<>(head)(op).assign_to(res);
    524530}
     
    646652  b->blackbox_Op3     = pyobject_Op3;
    647653  b->blackbox_OpM     = pyobject_OpM;
     654  b->data = newstructDesc();
    648655
    649656  PythonInterpreter::init(setBlackboxStuff(b,"pyobject"));
Note: See TracChangeset for help on using the changeset viewer.