/[ascend]/trunk/ascend/compiler/initialize.c
ViewVC logotype

Diff of /trunk/ascend/compiler/initialize.c

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

revision 2398 by jpye, Tue Mar 1 00:16:02 2011 UTC revision 2399 by jpye, Tue Mar 1 00:34:00 2011 UTC
# Line 308  execute_init_fix_or_free(int val, struct Line 308  execute_init_fix_or_free(int val, struct
308          if(err){          if(err){
309              WriteStatementError(ASC_USER_ERROR,stat,1,"Invalid name(s) in variable list (%s)",err);              WriteStatementError(ASC_USER_ERROR,stat,1,"Invalid name(s) in variable list (%s)",err);
310              //ERROR_REPORTER_HERE(ASC_USER_ERROR,"%s in %s variable list",err,val?"FIX":"FREE");              //ERROR_REPORTER_HERE(ASC_USER_ERROR,"%s in %s variable list",err,val?"FIX":"FREE");
311                fm->flow = FrameError;
312              return;              return;
313          }          }
314  #endif  #endif
# Line 1705  void ExecuteInitStatement(struct procFra Line 1706  void ExecuteInitStatement(struct procFra
1706    case CASGN:    case CASGN:
1707      fm->flow = FrameError;      fm->flow = FrameError;
1708      fm->ErrNo = Proc_declarative_constant_assignment;      fm->ErrNo = Proc_declarative_constant_assignment;
1709      WriteInitErr(fm,      WriteInitErr(fm, "Assignment of constants is not permitted inside METHODs.");
                  "Incorrect statement type (constant assigned)"  
                  " in initialization section");  
1710      break;      break;
1711    default:    default:
1712      fm->flow = FrameError;      fm->flow = FrameError;
1713      fm->ErrNo = Proc_bad_statement;      fm->ErrNo = Proc_bad_statement;
1714      WriteInitErr(fm,"Unexpected statement type in initialization section");      WriteInitErr(fm,"Unexpected statement type in initialization section.");
1715      break;      break;
1716    }    }
1717  #if IDB  #if IDB

Legend:
Removed from v.2398  
changed lines
  Added in v.2399

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