Changeset b2aa08 in git for Singular/newstruct.cc


Ignore:
Timestamp:
Aug 1, 2012, 11:07:23 PM (11 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
1161a6145a6ca3b9034865b05528815c65f55cfb
Parents:
632c3a619d605d6b049c3f7f82a323ea8113e34b
Message:
fix: pyobject falls back to newstruct operations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/newstruct.cc

    r632c3a rb2aa08  
    3939};
    4040
     41int newstruct_desc_size()
     42{
     43  return sizeof(newstruct_desc_s);
     44}
    4145
    4246char * newstruct_String(blackbox *b, void *d)
     
    664668  blackbox *bb=getBlackboxStuff(id);
    665669  newstruct_desc desc=(newstruct_desc)bb->data;
    666   if (desc == NULL)
    667   {
    668     desc=(newstruct_desc)omAlloc0(sizeof(*desc));
    669     desc->size=0;
    670     bb->data = (void*)desc;
    671   }
    672 
    673670  newstruct_proc p=(newstruct_proc)omAlloc(sizeof(*p));
    674671  p->next=desc->procs; desc->procs=p;
Note: See TracChangeset for help on using the changeset viewer.