diff options
author | icculus <icculus@noemail.net> | 2010-03-03 17:06:32 +0000 |
---|---|---|
committer | icculus <icculus@noemail.net> | 2010-03-03 17:06:32 +0000 |
commit | d286fa6691df1c894ff79cc94e18db36685c69bb (patch) | |
tree | 283cbdc9b9a052ae5bd216badf9c0faf93a60868 /tool/lemon.c | |
parent | d49c1aa7a908fc437404d07113c7083e37ab8eec (diff) | |
download | sqlite-d286fa6691df1c894ff79cc94e18db36685c69bb.tar.gz sqlite-d286fa6691df1c894ff79cc94e18db36685c69bb.zip |
Whoops, that shouldn't have been in the merge. Removed buggy code.
FossilOrigin-Name: 643728003218c9841425dffb6fe506763859fd37
Diffstat (limited to 'tool/lemon.c')
-rw-r--r-- | tool/lemon.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tool/lemon.c b/tool/lemon.c index 52304a591..057a883c1 100644 --- a/tool/lemon.c +++ b/tool/lemon.c @@ -2284,21 +2284,11 @@ to follow the previous rule."); psp->errorcnt++; psp->state = RESYNC_AFTER_DECL_ERROR; }else{ - struct symbol *sp = Symbol_find(x); - if((sp) && (sp->datatype)){ - ErrorMsg(psp->filename,psp->tokenlineno, - "Symbol %%destructor \"%s\" already defined", x); - psp->errorcnt++; - psp->state = RESYNC_AFTER_DECL_ERROR; - }else{ - if (!sp){ - sp = Symbol_new(x); - } - psp->declargslot = &sp->destructor; - psp->decllinenoslot = &sp->destLineno; - psp->insertLineMacro = 1; - psp->state = WAITING_FOR_DECL_ARG; - } + struct symbol *sp = Symbol_new(x); + psp->declargslot = &sp->destructor; + psp->decllinenoslot = &sp->destLineno; + psp->insertLineMacro = 1; + psp->state = WAITING_FOR_DECL_ARG; } break; case WAITING_FOR_DATATYPE_SYMBOL: |