From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2d1a49d186e069b5,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-28 08:28:09 PST Path: news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.nacamar.de!newsfeed01.sul.t-online.de!t-online.de!newspeer1-gui.server.ntli.net!ntli.net!newsfep4-winn.server.ntli.net.POSTED!53ab2750!not-for-mail From: chris User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: setjmp/longjmp? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 28 Sep 2003 16:33:08 +0100 NNTP-Posting-Host: 81.98.236.164 X-Complaints-To: abuse@ntlworld.com X-Trace: newsfep4-winn.server.ntli.net 1064762887 81.98.236.164 (Sun, 28 Sep 2003 16:28:07 BST) NNTP-Posting-Date: Sun, 28 Sep 2003 16:28:07 BST Organization: ntl Cablemodem News Service Xref: news1.google.com comp.lang.ada:73 Date: 2003-09-28T16:33:08+01:00 List-Id: Hi, I started a binding to libpng so I can load some images into OpenGL, but the library uses setjmp and longjmp for error handling. This is very new to me but from what I understand it's some form of library "goto" which allows code to jump to predefined points on given events. When dealing with such things is it best to wrap around the code with C and catch all these longjmps with setjmps, returning error flags if something fails? Thanks, Chris