Changeset 35b6ca in git


Ignore:
Timestamp:
Sep 28, 2010, 6:26:05 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
3439667251c33cab0606d98bcb3db2a0312e68ab
Parents:
0af2004187271da7bb6f06f4612d7947d57c7b49
Message:
fixing attributes of type 'def' (+debug output for attributes)



git-svn-id: file:///usr/local/Singular/svn/trunk@13299 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/attrib.cc

    r0af200 r35b6ca  
    8080#ifdef TEST
    8181  default:
    82     ::Print("atKill: unknown type(%d)\n",h->atyp);  /* DEBUG */
     82    ::Print("atKill: unknown type(%s [%d]) of attribute >>%s<<\n", Tok2Cmdname(h->atyp), h->atyp, h->name);  /* DEBUG */
    8383#endif
    8484  } /* end switch: (atyp) */
     
    103103  h->data = data;
    104104  h->atyp = t;
    105   //::Print("set attr >>%s<< of type %d\n",h->name,t);
     105#ifdef TEST
     106  ::Print("set attr >>%s<< of type %s\n",h->name, Tok2Cmdname(t));
     107#endif
    106108  return  result;
    107109}
     
    112114  while (h!=NULL)
    113115  {
    114     if (0 == strcmp(s,h->name)) return h;
     116    if (0 == strcmp(s,h->name))
     117    {
     118#ifdef TEST
     119      ::Print("get attr >>%s<< of type %s\n",h->name, Tok2Cmdname(h->atyp));
     120#endif
     121      return h;
     122    }
    115123    h = h->next;
    116124  }
     
    202210void sattr::kill(const ring r)
    203211{
     212  attr_free(this,r);
    204213  omFree((ADDRESS)name);
    205214  name=NULL;
    206   attr_free(this,r);
    207215  omFreeBin((ADDRESS)this, sattr_bin);
    208216}
Note: See TracChangeset for help on using the changeset viewer.