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

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

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

revision 708 by johnpye, Wed Jun 21 07:00:45 2006 UTC revision 709 by johnpye, Wed Jun 28 16:28:57 2006 UTC
# Line 276  static int CheckVisitNumber(struct Insta Line 276  static int CheckVisitNumber(struct Insta
276      /* rogues */      /* rogues */
277      Asc_Panic(2, "VisitInstanceTree",      Asc_Panic(2, "VisitInstanceTree",
278                "VisitInstanceTree: Instance tree contains illegal instance.");                "VisitInstanceTree: Instance tree contains illegal instance.");
279      exit(2);/* Needed to keep gcc from whining */      
280    }    }
281  }  }
282  #endif  /*  OLDCHECKVISIT  */  #endif  /*  OLDCHECKVISIT  */
# Line 385  static int ZeroVisitNumber(struct Instan Line 385  static int ZeroVisitNumber(struct Instan
385                "  Instance tree contains illegal instance.\n");                "  Instance tree contains illegal instance.\n");
386      /*NOTREACHED*/      /*NOTREACHED*/
387    }    }
388    exit(2); /* Needed to keep gcc from whining */    
389  }  }
390    
391  #endif /* old unused code. might be handy for debugging someday */  #endif /* old unused code. might be handy for debugging someday */
# Line 872  struct visitmapinfo *MakeVisitMap(struct Line 872  struct visitmapinfo *MakeVisitMap(struct
872    global_visit_num++;    global_visit_num++;
873    *len = 0; /* we don't count root entry, since we don't know context. */    *len = 0; /* we don't count root entry, since we don't know context. */
874    CalcMapSize(root,len);    CalcMapSize(root,len);
875    map = (struct visitmapinfo *)ascmalloc(sizeof(struct visitmapinfo) *    map = ASC_NEW_ARRAY(struct visitmapinfo,(*len)+1);
                                          ((*len)+1)  
                                         );  
876    if (map==NULL) {    if (map==NULL) {
877      return NULL;      return NULL;
878    }    }

Legend:
Removed from v.708  
changed lines
  Added in v.709

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