using 'goto' is now an error

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402412
This commit is contained in:
David Anderson 2008-07-12 22:28:10 +00:00
parent 846caf1298
commit 8126aa6bb8

View File

@ -6265,6 +6265,8 @@ static void dogoto(void)
/* if we were inside an endless loop, assume that we jump out of it */
endlessloop=0;
error(4, "goto");
if (lex(&val,&st)==tSYMBOL) {
sym=fetchlab(st);
jumplabel((int)sym->addr);