[BACK]Return to error.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / yacc

Diff for /src/usr.bin/yacc/error.c between version 1.4 and 1.5

version 1.4, 1999/08/04 18:31:26 version 1.5, 2001/07/16 06:29:44
Line 50 
Line 50 
 #include "defs.h"  #include "defs.h"
   
   
   void
 fatal(msg)  fatal(msg)
 char *msg;  char *msg;
 {  {
Line 58 
Line 59 
 }  }
   
   
   void
 no_space()  no_space()
 {  {
     fprintf(stderr, "%s: f - out of space\n", __progname);      fprintf(stderr, "%s: f - out of space\n", __progname);
Line 65 
Line 67 
 }  }
   
   
   void
 open_error(filename)  open_error(filename)
 char *filename;  char *filename;
 {  {
Line 73 
Line 76 
 }  }
   
   
   void
 unexpected_EOF()  unexpected_EOF()
 {  {
     fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n",      fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n",
Line 81 
Line 85 
 }  }
   
   
   void
 print_pos(st_line, st_cptr)  print_pos(st_line, st_cptr)
 char *st_line;  char *st_line;
 char *st_cptr;  char *st_cptr;
Line 107 
Line 112 
     putc('\n', stderr);      putc('\n', stderr);
 }  }
   
   void
 syntax_error(st_lineno, st_line, st_cptr)  syntax_error(st_lineno, st_line, st_cptr)
 int st_lineno;  int st_lineno;
 char *st_line;  char *st_line;
Line 119 
Line 124 
     done(1);      done(1);
 }  }
   
   void
 unterminated_comment(c_lineno, c_line, c_cptr)  unterminated_comment(c_lineno, c_line, c_cptr)
 int c_lineno;  int c_lineno;
 char *c_line;  char *c_line;
Line 131 
Line 136 
     done(1);      done(1);
 }  }
   
   void
 unterminated_string(s_lineno, s_line, s_cptr)  unterminated_string(s_lineno, s_line, s_cptr)
 int s_lineno;  int s_lineno;
 char *s_line;  char *s_line;
Line 143 
Line 148 
     done(1);      done(1);
 }  }
   
   void
 unterminated_text(t_lineno, t_line, t_cptr)  unterminated_text(t_lineno, t_line, t_cptr)
 int t_lineno;  int t_lineno;
 char *t_line;  char *t_line;
Line 155 
Line 160 
     done(1);      done(1);
 }  }
   
   void
 unterminated_union(u_lineno, u_line, u_cptr)  unterminated_union(u_lineno, u_line, u_cptr)
 int u_lineno;  int u_lineno;
 char *u_line;  char *u_line;
Line 167 
Line 172 
     done(1);      done(1);
 }  }
   
   void
 over_unionized(u_cptr)  over_unionized(u_cptr)
 char *u_cptr;  char *u_cptr;
 {  {
Line 177 
Line 182 
     done(1);      done(1);
 }  }
   
   void
 illegal_tag(t_lineno, t_line, t_cptr)  illegal_tag(t_lineno, t_line, t_cptr)
 int t_lineno;  int t_lineno;
 char *t_line;  char *t_line;
Line 190 
Line 195 
 }  }
   
   
   void
 illegal_character(c_cptr)  illegal_character(c_cptr)
 char *c_cptr;  char *c_cptr;
 {  {
Line 200 
Line 206 
 }  }
   
   
   void
 used_reserved(s)  used_reserved(s)
 char *s;  char *s;
 {  {
Line 208 
Line 215 
     done(1);      done(1);
 }  }
   
   void
 tokenized_start(s)  tokenized_start(s)
 char *s;  char *s;
 {  {
Line 217 
Line 224 
      done(1);       done(1);
 }  }
   
   void
 retyped_warning(s)  retyped_warning(s)
 char *s;  char *s;
 {  {
Line 225 
Line 232 
 redeclared\n", __progname, lineno, input_file_name, s);  redeclared\n", __progname, lineno, input_file_name, s);
 }  }
   
   void
 reprec_warning(s)  reprec_warning(s)
 char *s;  char *s;
 {  {
Line 233 
Line 240 
 redeclared\n", __progname, lineno, input_file_name, s);  redeclared\n", __progname, lineno, input_file_name, s);
 }  }
   
   void
 revalued_warning(s)  revalued_warning(s)
 char *s;  char *s;
 {  {
Line 241 
Line 248 
 redeclared\n", __progname, lineno, input_file_name, s);  redeclared\n", __progname, lineno, input_file_name, s);
 }  }
   
   void
 terminal_start(s)  terminal_start(s)
 char *s;  char *s;
 {  {
Line 250 
Line 257 
     done(1);      done(1);
 }  }
   
   void
 restarted_warning()  restarted_warning()
 {  {
     fprintf(stderr, "%s: w - line %d of \"%s\", the start symbol has been \      fprintf(stderr, "%s: w - line %d of \"%s\", the start symbol has been \
 redeclared\n", __progname, lineno, input_file_name);  redeclared\n", __progname, lineno, input_file_name);
 }  }
   
   void
 no_grammar()  no_grammar()
 {  {
     fprintf(stderr, "%s: e - line %d of \"%s\", no grammar has been \      fprintf(stderr, "%s: e - line %d of \"%s\", no grammar has been \
Line 265 
Line 272 
     done(1);      done(1);
 }  }
   
   void
 terminal_lhs(s_lineno)  terminal_lhs(s_lineno)
 int s_lineno;  int s_lineno;
 {  {
Line 274 
Line 281 
     done(1);      done(1);
 }  }
   
   void
 prec_redeclared()  prec_redeclared()
 {  {
     fprintf(stderr, "%s: w - line %d of  \"%s\", conflicting %%prec \      fprintf(stderr, "%s: w - line %d of  \"%s\", conflicting %%prec \
 specifiers\n", __progname, lineno, input_file_name);  specifiers\n", __progname, lineno, input_file_name);
 }  }
   
   void
 unterminated_action(a_lineno, a_line, a_cptr)  unterminated_action(a_lineno, a_line, a_cptr)
 int a_lineno;  int a_lineno;
 char *a_line;  char *a_line;
Line 293 
Line 300 
     done(1);      done(1);
 }  }
   
   void
 dollar_warning(a_lineno, i)  dollar_warning(a_lineno, i)
 int a_lineno;  int a_lineno;
 int i;  int i;
Line 302 
Line 309 
 end of the current rule\n", __progname, a_lineno, input_file_name, i);  end of the current rule\n", __progname, a_lineno, input_file_name, i);
 }  }
   
   void
 dollar_error(a_lineno, a_line, a_cptr)  dollar_error(a_lineno, a_line, a_cptr)
 int a_lineno;  int a_lineno;
 char *a_line;  char *a_line;
Line 315 
Line 322 
 }  }
   
   
   void
 untyped_lhs()  untyped_lhs()
 {  {
     fprintf(stderr, "%s: e - line %d of \"%s\", $$ is untyped\n",      fprintf(stderr, "%s: e - line %d of \"%s\", $$ is untyped\n",
Line 322 
Line 330 
     done(1);      done(1);
 }  }
   
   void
 untyped_rhs(i, s)  untyped_rhs(i, s)
 int i;  int i;
 char *s;  char *s;
Line 332 
Line 340 
     done(1);      done(1);
 }  }
   
   void
 unknown_rhs(i)  unknown_rhs(i)
 int i;  int i;
 {  {
Line 341 
Line 349 
     done(1);      done(1);
 }  }
   
   void
 default_action_warning()  default_action_warning()
 {  {
     fprintf(stderr, "%s: w - line %d of \"%s\", the default action assigns an \      fprintf(stderr, "%s: w - line %d of \"%s\", the default action assigns an \
 undefined value to $$\n", __progname, lineno, input_file_name);  undefined value to $$\n", __progname, lineno, input_file_name);
 }  }
   
   void
 undefined_goal(s)  undefined_goal(s)
 char *s;  char *s;
 {  {
Line 356 
Line 364 
     done(1);      done(1);
 }  }
   
   void
 undefined_symbol_warning(s)  undefined_symbol_warning(s)
 char *s;  char *s;
 {  {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5