/[ascend]/branches/relerrorlist/ascend/compiler/ascParse.y
ViewVC logotype

Diff of /branches/relerrorlist/ascend/compiler/ascParse.y

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

revision 3216 by jpye, Fri Sep 15 03:34:28 2017 UTC revision 3217 by jpye, Sat Oct 28 07:01:00 2017 UTC
# Line 2875  static void ErrMsg_Generic(CONST char *s Line 2875  static void ErrMsg_Generic(CONST char *s
2875    
2876  static void ErrMsg_CommaName(CONST char *what, struct Name *name)  static void ErrMsg_CommaName(CONST char *what, struct Name *name)
2877  {  {
2878    struct module_t *mod;    //struct module_t *mod;
2879    
2880    /* the module may have be already closed */    /* the module may have be already closed */
2881    mod = Asc_CurrentModule();    /* mod = */ Asc_CurrentModule();
2882    
2883    ERROR_REPORTER_START_HERE(ASC_USER_ERROR);    ERROR_REPORTER_START_HERE(ASC_USER_ERROR);
2884    FPRINTF(ASCERR, "Missing comma or operator before %s '",what);    FPRINTF(ASCERR, "Missing comma or operator before %s '",what);
# Line 3037  static void CollectNote(struct Note *n) Line 3037  static void CollectNote(struct Note *n)
3037  */  */
3038  static void error_reporter_current_line(const error_severity_t sev, const char *fmt,...){  static void error_reporter_current_line(const error_severity_t sev, const char *fmt,...){
3039      MSG("format = %s",fmt);      MSG("format = %s",fmt);
3040      va_list args;      va_list args, args2;
3041      va_start(args,fmt);      va_start(args,fmt);
3042      va_error_reporter(sev,Asc_ModuleBestName(Asc_CurrentModule()),(int)LineNum(),NULL,fmt,args);      va_copy(args2,args);
3043        va_error_reporter(sev,Asc_ModuleBestName(Asc_CurrentModule()),(int)LineNum(),NULL,fmt,&args2);
3044      va_end(args);      va_end(args);
3045  }  }
3046    

Legend:
Removed from v.3216  
changed lines
  Added in v.3217

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