Ju Wang wrote:
> Hi,
>
> Does any body how to use long jump in c/c++, I have a
> program that parse a hierachy structured bitstream, its
> call nested very deep, so I want to get back to the main
> instead of check error in each of the nested function and
> return one by one.
>
> Thanks in advance,
> -Ju Wang
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-net" in
> the body of a message to [EMAIL PROTECTED]
I would have to look it up and don't have my books handy. However I just
wanted to let you know that longjump is VERY SLOW as it has to save and
restore all sorts of process information. I worked at one place that used
longjump as you want to do and when we fixed it to use returns and do
error checking it was over 10 times faster.
--
Jim Gleason
Site2Site Networking
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]