1*40865Sbostic /*- 2*40865Sbostic * Copyright (c) 1979 The Regents of the University of California. 3*40865Sbostic * All rights reserved. 4*40865Sbostic * 5*40865Sbostic * %sccs.include.redist.c% 6*40865Sbostic */ 72123Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)CATCHERR.c 1.3 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 112123Smckusick 122123Smckusick #include "h00vars.h" 132123Smckusick 142123Smckusick CATCHERR(err, todo) 152123Smckusick long err; /* error to be caught */ 162123Smckusick struct formalrtn todo; /* procedure to call to catch error */ 172123Smckusick { 183434Smckusic if (todo.fbn == 1) 193434Smckusic _entry[err].fentryaddr = todo.fentryaddr; 202123Smckusick else 212123Smckusick fputs("procedure not at level 1", stderr); 222123Smckusick } 23