aboutsummaryrefslogtreecommitdiff
path: root/sys/etc/xerverify.x
blob: dfb4e88a575a30e0b0f4f644de3a1b651fc9fc9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

include	<error.h>

# XER_VERIFY -- The following procedure is called by the iraf main after
# a task completes, to verify that NHANDLERS is zero, indicating that an XERPOP
# was executed for each XERPSH.  Note that a transfer out of an IFERR block
# (a programming error) could prevent XERPOP from being called.

procedure xer_verify()

include	"error.com"

begin
	if (xerflg)
	    call erract (EA_FATAL)
	if (nhandlers != 0) {
	    nhandlers = 0
	    call putline (STDERR, "Warning: Transfer out of IFERR block\n")
	}
end