Changeset 8baa37 in git for Singular/attrib.cc


Ignore:
Timestamp:
Jan 24, 2014, 1:39:15 PM (10 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
ee5e11e63c911034966a67782a24e7326c52abb1
Parents:
5c8e18ff3dc32f83461ed21cad1151a77366ed567661e1502f806195a6458595ba7e711664a932bb
Message:
Merge pull request #456 from surface-smoothers/improve.documentation.genus

improved genus documentation for 1-dim affine variety input
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/attrib.cc

    r7661e1 r8baa37  
    6565static void attr_free(attr h, const ring r=currRing)
    6666{
    67   s_internalDelete(h->atyp,h->data,r);
    68   h->data=NULL;
     67  if (h->data!=NULL) /*avoid assume failure */
     68  {
     69    s_internalDelete(h->atyp,h->data,r);
     70    h->data=NULL;
     71  }
    6972}
    7073
     
    109112}
    110113
     114#if 0
    111115void * atGet(idhdl root,const char * name)
    112116{
     
    128132    return NULL;
    129133}
     134#endif
    130135
    131136void * atGet(idhdl root,const char * name, int t, void *defaultReturnValue)
     
    228233  root->attribute = NULL;
    229234}
     235
    230236void at_KillAll(leftv root, const ring r)
    231237{
Note: See TracChangeset for help on using the changeset viewer.