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

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

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

revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC revision 709 by johnpye, Wed Jun 28 16:28:57 2006 UTC
# Line 76  static Line 76  static
76  struct Statement *stmallocF()  struct Statement *stmallocF()
77  {  {
78    struct Statement *result;    struct Statement *result;
79    result = (struct Statement *)ascmalloc((unsigned)sizeof(struct Statement));    result = ASC_NEW(struct Statement);
80    result->stringform = NULL;    result->stringform = NULL;
81    return result;    return result;
82  }  }
# Line 2377  int CompareStatements(CONST struct State Line 2377  int CompareStatements(CONST struct State
2377       * will not be fixed until the definitions are really known.       * will not be fixed until the definitions are really known.
2378       */       */
2379      Asc_Panic(2, NULL, "Don't know how to compare REF statements\n");      Asc_Panic(2, NULL, "Don't know how to compare REF statements\n");
2380      exit(2);/* Needed to keep gcc from whining */      
2381    case COND:    case COND:
2382      return CompareStatementLists(CondStatList(s1),CondStatList(s2),&ltmp);      return CompareStatementLists(CondStatList(s1),CondStatList(s2),&ltmp);
2383    case FLOW:    case FLOW:

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

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