Research V4 development
[unix-history] / man / man3 / reset.3
CommitLineData
d0e448f7
KT
1.th RESET III 5/10/73
2.sh NAME
3reset \*- execute non-local goto
4.sh SYNOPSIS
5.ft B
6setexit( )
7.s3
8reset( )
9.ft R
10.sh DESCRIPTION
11These routines are useful
12for dealing with errors
13discovered in a low-level subroutine
14of a program.
15.s3
16.it Setexit
17is typically called just at the start of
18the main loop of a processing program.
19It stores certain parameters such as the call point and the stack
20level.
21.s3
22.it Reset
23is typically called after diagnosing an error
24in some subprocedure called from the main loop.
25When
26.it reset
27is called,
28it pops the stack appropriately
29and generates a non-local return from
30the last call to
31.it setexit.
32.s3
33It is erroneous, and generally
34disastrous,
35to call
36.it reset
37unless
38.it setexit
39has been called in a routine which is
40an ancestor of
41.it reset.
42.sh BUGS