[Bro-Dev] #754: Complete implementation of switch statement

Bro Tracker bro at tracker.bro-ids.org
Fri Jan 11 09:52:02 PST 2013


#754: Complete implementation of switch statement
----------------------------+------------------------
  Reporter:  seth           |      Owner:  robin
      Type:  Merge Request  |     Status:  closed
  Priority:  Normal         |  Milestone:  Bro2.2
 Component:  Bro            |    Version:  git/master
Resolution:  fixed          |   Keywords:  language
----------------------------+------------------------

Comment (by jsiwek):

 In [8695053e278158ce40cb2a3d6aa04ff60653ca0e/bro]:
 {{{
 #!CommitTicketReference repository="bro"
 revision="8695053e278158ce40cb2a3d6aa04ff60653ca0e"
 Disable automatic case fallthrough in switch stmts.  Addresses #754.

 Case bodies now don't require a "break" statement to prevent fallthrough
 to case bodies below.  Empty case bodies generate an error message at
 parse-time to help indicate the absence of automatic fallthrough; to
 associate multiple values with a case, use "case 1, 2:" instead of
 "case 1: case 2:".
 }}}

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/754#comment:24>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list