Skip to content
Snippets Groups Projects
Commit d43affe4 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

some confusing errors removed

Rev: src/language.yacc:1.45
parent 294dc509
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
/* This is the grammar definition of Pike. */ /* This is the grammar definition of Pike. */
#include "global.h" #include "global.h"
RCSID("$Id: language.yacc,v 1.44 1997/08/03 09:55:07 hubbe Exp $"); RCSID("$Id: language.yacc,v 1.45 1997/08/03 12:46:15 hubbe Exp $");
#ifdef HAVE_MEMORY_H #ifdef HAVE_MEMORY_H
#include <memory.h> #include <memory.h>
#endif #endif
...@@ -1187,7 +1187,9 @@ low_idents: F_IDENTIFIER ...@@ -1187,7 +1187,9 @@ low_idents: F_IDENTIFIER
pop_stack(); pop_stack();
}else{ }else{
$$=0; $$=0;
if( get_master() && !num_parse_error) if(!num_parse_error)
{
if( get_master() )
{ {
reference_shared_string($1); reference_shared_string($1);
push_string($1); push_string($1);
...@@ -1210,6 +1212,7 @@ low_idents: F_IDENTIFIER ...@@ -1210,6 +1212,7 @@ low_idents: F_IDENTIFIER
my_yyerror("'%s' undefined.", $1->str); my_yyerror("'%s' undefined.", $1->str);
} }
} }
}
free_string($1); free_string($1);
} }
| F_PREDEF F_COLON_COLON F_IDENTIFIER | F_PREDEF F_COLON_COLON F_IDENTIFIER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment