www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/28/07:12:59

Message-Id: <m0z17et-000XeqC@sloep11.cs.vu.nl>
Date: Tue, 28 Jul 98 13:11 +0200
From: Boon van der RJ <rjvdboon AT cs DOT vu DOT nl>
To: dj AT delorie DOT com
CC: djgpp-workers AT delorie DOT com
Subject: 2.02alpha980712 doc-fix (longjmp examples)

Hello DJ (& -gpp workers),
here another documentation source patch, alpha 980712, in longjmp.txh
and setjmp.txh the examples are wrong. longjmp() _needs_ two arguments,
but had only 1, so i've added the second.

Below are patches, diff -c3 OLD NEW, of longjmp.txh and setjmp.txh

hth,
 Robert.

*** src\libc\ansi\setjmp\longjmp.txh.org        Mon Jul 10 02:39:00 1995
--- src\libc\ansi\setjmp\longjmp.txh	Mon Jul 27 23:48:48 1998
***************
*** 29,34 ****
  if (setjmp(j))
    return;
  do_something();
! longjmp(j);
  @end example
  
--- 29,34 ----
  if (setjmp(j))
    return;
  do_something();
! longjmp(j, 1);
  @end example
  
*** src\libc\ansi\setjmp\setjmp.txh.org	Mon Jul 10 02:39:00 1995
--- src\libc\ansi\setjmp\setjmp.txh	Mon Jul 27 23:47:44 1998
***************
*** 28,33 ****
  if (setjmp(j))
    return;
  do_something();
! longjmp(j);
  @end example
  
--- 28,33 ----
  if (setjmp(j))
    return;
  do_something();
! longjmp(j, 1);
  @end example
  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019