Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c Subject: Re: Exceptions handling in pure C Date: Sat, 08 Dec 2012 07:44:23 +1300 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net O2QWG1G5p2Z2dkU7MLCVMApu7+KUwUAZYS+Dvcj9IOPD4jA/4kyhVoADYupiROpRR6 Cancel-Lock: sha1:9LG1Xw9YG6YMJ2PW0cSsr+cWbh4= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Xref: csiph.com comp.lang.c:29034 BGB wrote: > On 12/7/2012 2:41 AM, Ian Collins wrote: >> Borneq wrote: >>> Użytkownik "Ian Collins" napisał w wiadomości >>> news:aidkuhFac77U1@mid.individual.net... >>>> Start from scratch. >>> >>> How start? I haven't information about exception handling in C >> >> There isn't any, you have to rewrite the code from scratch. >> > > well, it is possible, either to use OS-specific mechanisms (like Win32 > SEH), or write ones' own exception-handling system (potentially > involving linked-lists and longjmp), and rewrite any code to use this. > > it is kind-of ugly, but it sort of works... It would also be fraught with danger. Writing exception safe code in C isn't easy. -- Ian Collins