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

Diff of /trunk/base/generic/compiler/value_type.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 555  struct value_t AddValues(struct value_t Line 555  struct value_t AddValues(struct value_t
555                                   BothConstantValue(value1,value2));                                   BothConstantValue(value1,value2));
556        }        }
557        slen = strlen(value1.u.sym_ptr) + strlen(value2.u.sym_ptr);        slen = strlen(value1.u.sym_ptr) + strlen(value2.u.sym_ptr);
558        str = (char *)ascmalloc(slen+1);        str = ASC_NEW_ARRAY(char,slen+1);
559        if (str==NULL) {        if (str==NULL) {
560         return TypeConflict(); /* out of memory error */         return TypeConflict(); /* out of memory error */
561        }        }

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

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