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

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

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

revision 707 by johnpye, Fri Mar 31 08:52:57 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 203  struct UnitDefinition *CreateUnitDef(sym Line 203  struct UnitDefinition *CreateUnitDef(sym
203      return NULL;      return NULL;
204    }    }
205    len = strlen(rhs) + 1;    len = strlen(rhs) + 1;
206    ustr = (char *)ascmalloc(len);    ustr = ASC_NEW_ARRAY(char,len);
207    if (ustr == NULL) {    if (ustr == NULL) {
208      FPRINTF(ASCERR,"  malloc failed in CreateUnitDef for %s: %s %d\n",      FPRINTF(ASCERR,"  malloc failed in CreateUnitDef for %s: %s %d\n",
209        rhs,filename,linenum);        rhs,filename,linenum);
# Line 771  char *UnitsStringSI(struct Units *p) Line 771  char *UnitsStringSI(struct Units *p)
771      return NULL;      return NULL;
772    }    }
773    if (IsWild(p->dim)) {    if (IsWild(p->dim)) {
774      result = (char *)ascmalloc(2);      result = ASC_NEW_ARRAY(char,2);
775      sprintf(result,"*");      sprintf(result,"*");
776      return result;      return result;
777    }    }

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

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