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

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

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

revision 707 by johnpye, Wed Jun 21 07:00:45 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 1013  struct AnonMergeIPData *AMIPDInit(struct Line 1013  struct AnonMergeIPData *AMIPDInit(struct
1013    amipd->iplen = amvi->nip;    amipd->iplen = amvi->nip;
1014    amipd->num_mergelists = 0;    amipd->num_mergelists = 0;
1015    amipd->num_iwithmerge = 0;    amipd->num_iwithmerge = 0;
1016    amipd->node2ip = (int *)ascmalloc(sizeof(int)*(amvi->nim+1));    amipd->node2ip = ASC_NEW_ARRAY(int,(amvi->nim+1));
1017    if (amipd->node2ip == NULL) {    if (amipd->node2ip == NULL) {
1018      Asc_Panic(2,"AMIPDInit","Insufficent memory for node2ip.");      Asc_Panic(2,"AMIPDInit","Insufficent memory for node2ip.");
1019      return NULL;      return NULL;
# Line 1092  struct AnonMergeIPData *AMIPDInit(struct Line 1092  struct AnonMergeIPData *AMIPDInit(struct
1092      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.header.");      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.header.");
1093      return NULL;      return NULL;
1094    }    }
1095    amipd->md.colcount = (int *)ascmalloc(sizeof(int)*(amvi->nip+1));    amipd->md.colcount = ASC_NEW_ARRAY(int,(amvi->nip+1));
1096    if (amipd->md.colcount == NULL) {    if (amipd->md.colcount == NULL) {
1097      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.colcount.");      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.colcount.");
1098      return NULL;      return NULL;
1099    }    }
1100    amipd->md.sg2blob = (int *)ascmalloc(sizeof(int)*(asize+1));    amipd->md.sg2blob = ASC_NEW_ARRAY(int,(asize+1));
1101    if (amipd->md.sg2blob == NULL) {    if (amipd->md.sg2blob == NULL) {
1102      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.sg2blob.");      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.sg2blob.");
1103      return NULL;      return NULL;
1104    }    }
1105    amipd->md.blobcollected = (int *)ascmalloc(sizeof(int)*(asize+1));    amipd->md.blobcollected = ASC_NEW_ARRAY(int,(asize+1));
1106    if (amipd->md.blobcollected == NULL) {    if (amipd->md.blobcollected == NULL) {
1107      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.blobcollected.");      Asc_Panic(2,"AMIPDInit","Insufficent memory for md.blobcollected.");
1108      return NULL;      return NULL;

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

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