[BACK]Return to cgram.y CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / xlint / lint1

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/xlint/lint1/cgram.y between version 1.195 and 1.196

version 1.195, 2021/03/21 10:25:40 version 1.196, 2021/03/21 14:49:21
Line 1753  opt_expr:
Line 1753  opt_expr:
   
 jump_statement:                 /* C99 6.8.6 */  jump_statement:                 /* C99 6.8.6 */
           goto identifier T_SEMI {            goto identifier T_SEMI {
                 dogoto(getsym($2));                  do_goto(getsym($2));
           }            }
         | goto error T_SEMI {          | goto error T_SEMI {
                 symtyp = FVFT;                  symtyp = FVFT;
           }            }
         | T_CONTINUE T_SEMI {          | T_CONTINUE T_SEMI {
                 docont();                  do_continue();
           }            }
         | T_BREAK T_SEMI {          | T_BREAK T_SEMI {
                 dobreak();                  do_break();
           }            }
         | T_RETURN T_SEMI {          | T_RETURN T_SEMI {
                 doreturn(NULL);                  do_return(NULL);
           }            }
         | T_RETURN expr T_SEMI {          | T_RETURN expr T_SEMI {
                 doreturn($2);                  do_return($2);
           }            }
         ;          ;
   

Legend:
Removed from v.1.195  
changed lines
  Added in v.1.196

CVSweb <webmaster@jp.NetBSD.org>