Ethereal-dev: Exceptions was Re: Patching aclocal was Re: [ethereal-dev] 0.8.4 this week

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

From: Gilbert Ramirez <gram@xxxxxxxxxx>
Date: Fri, 07 Apr 2000 05:02:14 -0500
On Fri, Apr 07, 2000 at 01:09:53AM -0700, Guy Harris wrote:
> > Also, you can chain the testy buffers so that a new child buffer sees only
> > part of its parent buffer. This new buffer is passed to the child
> > dissector. In this way, you can also get rid of the 'offset' arg of
> > each dissector, since each dissector starts dissecting from byte 0
> > of the tbuff (Testy Buffer) that it receives.
> 
> We could also conceivably use this to handle higher-level packets that
> consist of more than one frame, if a testy buffer could refer to
> multiple chunks of data.

Yep. As a matter of fact, they can. :-)

BTW, does anyone have a favorite free "exceptions" library for C?
We could roll our own of course, but if one is already available, why?

I saw one in a library called Kazlib on freshmeat. Its syntax isn't as
simple as using a language which has a built-in "try", "catch", and
"raise" semantics, but I don't know how fancy you could get with
the C preprocessor to make something like that happen.

--gilbert