Wireshark-commits: [Wireshark-commits] rev 39838: /trunk/epan/dfilter/ /trunk/epan/dfilter/: dfilte
Date: Tue, 15 Nov 2011 04:26:39 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=39838

User: guy
Date: 2011/11/14 08:26 PM

Log:
 Get rid of the depth argument to dfilter_macro_apply(); have an internal
 routine that does all the work and that takes a depth argumen, and an
 external routine that calls that internal routine with a depth argument
 of 0.  The depth is only of use internally, to avoid infinite recursion.
 
 When recursing with that routine, pass depth+1 as the depth value,
 rather than passing depth and incrementing it afterwards; the latter
 doesn't prevent infinite recursion.  (Thanks and a tip of the hat to
 Clang Cat for catching this.)
 
 Squelch some other (harmless) warnings from Clang Cat.
 
 Clean up indentation.

Directory: /trunk/epan/dfilter/
  Changes    Path               Action
  +116 -110  dfilter-macro.c    Modified
  +1 -1      dfilter-macro.h    Modified
  +1 -1      dfilter.c          Modified