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

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

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

revision 614 by johnpye, Sat Apr 22 07:52:30 2006 UTC revision 615 by johnpye, Wed May 17 06:29:40 2006 UTC
# Line 28  Line 28 
28    
29  #include <utilities/ascConfig.h>  #include <utilities/ascConfig.h>
30  #include <utilities/ascMalloc.h>  #include <utilities/ascMalloc.h>
31    #include <utilities/error.h>
32  #include <general/list.h>  #include <general/list.h>
33  #include <general/dstring.h>  #include <general/dstring.h>
34  #include "compiler.h"  #include "compiler.h"
# Line 816  symchar *StatementTypeString(CONST struc Line 817  symchar *StatementTypeString(CONST struc
817    }    }
818  }  }
819    
820  void Asc_StatErrMsg_NotAllowedMethod(FILE *f,  void Asc_StatErrMsg_NotAllowedMethod(FILE *f
821                                       CONST struct Statement *stat)          , CONST struct Statement *stat
822  {          , CONST char *suggestion
823    FPRINTF(f,  ){
824            "%sIn the method at %s:%lu.\n"      error_reporter(ASC_USER_ERROR,Asc_ModuleBestName(StatementModule(stat))
825            "  %s statements are not allowed.\n",          , StatementLineNum(stat), NULL
826            StatioLabel(3),          , "In a METHOD, %s statements are not allowed. %s"
827            Asc_ModuleBestName(StatementModule(stat)),          , SCP(StatementTypeString(stat))
828            StatementLineNum(stat),          , suggestion
829            SCP(StatementTypeString(stat)));      );
830  }  }
831    
832  void Asc_StatErrMsg_NotAllowedDeclarative(FILE *f,  void Asc_StatErrMsg_NotAllowedDeclarative(FILE *f
833                                            CONST struct Statement *stat)          , CONST struct Statement *stat
834  {          , CONST char * suggestion
835    FPRINTF(f,  ){
836            "%sIn the declarative section %s:%lu.\n"      error_reporter(ASC_USER_ERROR,Asc_ModuleBestName(StatementModule(stat))
837            "  %s statements are not allowed.\n",          , StatementLineNum(stat), NULL
838            StatioLabel(3),          , "In a MODEL's declarative section, %s statements not allowed. %s"
839            Asc_ModuleBestName(StatementModule(stat)),          , SCP(StatementTypeString(stat))
840            StatementLineNum(stat),          , suggestion
841            SCP(StatementTypeString(stat)));      );
842  }  }

Legend:
Removed from v.614  
changed lines
  Added in v.615

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