Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal dfilter-grammar.y

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 11 Oct 1999 14:39:42 -0500 (CDT)
guy         1999/10/11 14:39:36 CDT

  Modified files:
    .                    dfilter-grammar.y 
  Log:
  The answer to the question
  
  	(Is there a better way to force a parse to fail from arbitrary
  	places in routines called by the parser?)
  
  asked in an earlier checkin is "yes", which would've been obvious had I
  seen the code that handles MAC addresses, as it returns NULL on an
  error, and the YACC clause checks for a null return value and, if the
  return value is null, uses YYERROR to make the parse fail.
  
  Use that for IPv4 and IPv6 errors.
  
  Also, use "dfilter_fail()" for the MAC address code.
  
  Revision  Changes    Path
  1.25      +30 -14    ethereal/dfilter-grammar.y