1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Add an extra assert() to lemon.c to make debugging easier. Ticket #692. (CVS 1305)

FossilOrigin-Name: 818bdba5dc25cda56716fdda1781a3d4ecb3a111
This commit is contained in:
drh
2004-04-23 23:38:42 +00:00
parent 226e5f9de7
commit cc83b6e071
3 changed files with 10 additions and 8 deletions

View File

@ -2876,7 +2876,7 @@ struct symbol *sp;
struct lemon *lemp;
int *lineno;
{
char *cp;
char *cp = 0;
int linecnt = 0;
if( sp->type==TERMINAL ){
@ -2890,6 +2890,8 @@ int *lineno;
cp = lemp->vardest;
if( cp==0 ) return;
fprintf(out,"#line %d \"%s\"\n{",lemp->vardestln,lemp->filename);
}else{
assert( 0 ); /* Cannot happen */
}
for(; *cp; cp++){
if( *cp=='$' && cp[1]=='$' ){