News for hackers. Stuff that matters.
Re:Goto (2007) by ghoward on Friday October 22, 2021 @02:15AM (#28954183)
For a rough estimation, you can use my bc at [1] which uses goto extensively for safe and effective use of setjmp() and longjmp(), while having no memory leaks (to my knowledge).

When going through the code, though, be aware that some goto's are in #define's to make it easier to work with setjmp().

If you're lazy, it's about 10k loc with about 100-200 uses of goto.

[1]: https://git.yzena.com/gavin/bc

There are no comments on this comment yet.