File:  [Research Unix] / researchv10dc / dist / man / v4 / man3 / reset.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.th RESET III 5/10/73
.sh NAME
reset \*- execute non-local goto
.sh SYNOPSIS
.ft B
setexit( )
.s3
reset( )
.ft R
.sh DESCRIPTION
These routines are useful
for dealing with errors
discovered in a low-level subroutine
of a program.
.s3
.it Setexit
is typically called just at the start of
the main loop of a processing program.
It stores certain parameters such as the call point and the stack
level.
.s3
.it Reset
is typically called after diagnosing an error
in some subprocedure called from the main loop.
When
.it reset
is called,
it pops the stack appropriately
and generates a non-local return from
the last call to
.it setexit.
.s3
It is erroneous, and generally
disastrous,
to call
.it reset
unless
.it setexit
has been called in a routine which is
an ancestor of
.it reset.
.sh BUGS

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.