/[ascend]/trunk/base/generic/compiler/mathinst.c
ViewVC logotype

Diff of /trunk/base/generic/compiler/mathinst.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 730 by johnpye, Mon Jul 3 11:52:45 2006 UTC revision 731 by johnpye, Tue Jul 4 07:42:06 2006 UTC
# Line 300  void SetInstanceRelation(struct Instance Line 300  void SetInstanceRelation(struct Instance
300    AssertMemory(i);    AssertMemory(i);
301    if(i->t==REL_INST){    if(i->t==REL_INST){
302      if(RELN_INST(i)->ptr==NULL){      if(RELN_INST(i)->ptr==NULL){
303        CONSOLE_DEBUG("RelationInstance %p points to relation at %p",i,rel);        /* CONSOLE_DEBUG("RelationInstance %p points to relation at %p",i,rel); */
304        RELN_INST(i)->ptr = rel;        RELN_INST(i)->ptr = rel;
305        RELN_INST(i)->type = type;        RELN_INST(i)->type = type;
306      }else{      }else{
# Line 372  void AddRelation(struct Instance *i, str Line 372  void AddRelation(struct Instance *i, str
372    AssertMemory(i);    AssertMemory(i);
373    switch(i->t){    switch(i->t){
374    case REAL_ATOM_INST:    case REAL_ATOM_INST:
375      CONSOLE_DEBUG("ADD RelationInstance %p to RealAtomInstance %p",reln,i);      /* CONSOLE_DEBUG("ADD RelationInstance %p to RealAtomInstance %p",reln,i); */
376      if (RA_INST(i)->relations==NULL) {      if (RA_INST(i)->relations==NULL) {
377        RA_INST(i)->relations = gl_create(AVG_RELATIONS);        RA_INST(i)->relations = gl_create(AVG_RELATIONS);
378      }      }

Legend:
Removed from v.730  
changed lines
  Added in v.731

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22