Changeset 35b6ca in git
- Timestamp:
- Sep 28, 2010, 6:26:05 PM (13 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 3439667251c33cab0606d98bcb3db2a0312e68ab
- Parents:
- 0af2004187271da7bb6f06f4612d7947d57c7b49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/attrib.cc
r0af200 r35b6ca 80 80 #ifdef TEST 81 81 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 */ 83 83 #endif 84 84 } /* end switch: (atyp) */ … … 103 103 h->data = data; 104 104 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 106 108 return result; 107 109 } … … 112 114 while (h!=NULL) 113 115 { 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 } 115 123 h = h->next; 116 124 } … … 202 210 void sattr::kill(const ring r) 203 211 { 212 attr_free(this,r); 204 213 omFree((ADDRESS)name); 205 214 name=NULL; 206 attr_free(this,r);207 215 omFreeBin((ADDRESS)this, sattr_bin); 208 216 }
Note: See TracChangeset
for help on using the changeset viewer.