logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ENTSR - Called by a user to set recovery mode in NCAR Graphics.

Access

       To  use  ENTSR  or c_entsr, load the NCAR Graphics libraries ncarg, ncarg_gks, and ncarg_c, preferably in
       that order.

C-Binding Description

       The C-binding argument descriptions are the same as the FORTRAN argument descriptions.

C-Binding Synopsis

       #include <ncarg/ncargC.h>

       void c_entsr(int *irold, int irnew)

Description

       The FORTRAN statement "CALL ENTSR(IROLD,IRNEW)" is normally used to enter recovery mode and save the
       previous value of the internal error-recovery flag, but it can also be used to exit from recovery mode
       and save the previous value of the flag, or to just get the value of the flag, without changing it.

       If recovery mode is turned off by a call to ENTSR at a time when the internal error flag is non-zero,
       this is treated as a fatal error; the error message is printed, the dump routine FDUM is called, and a
       STOP is executed.

       The arguments of ENTSR are as follows:

       IROLD       (an  output  variable  of  type  INTEGER)  - Receives the old value of the internal flag that
                   indicates whether recovery mode is in effect or not.  In the former case, the returned  value
                   will be a 1; in the latter case, it will be a 2.  Normally, the value returned is saved for a
                   later call to RETSR.

       IRNEW       (an  input  expression  of  type INTEGER) - Specifies what is to be done to the internal flag
                   that indicates whether recovery mode is in effect or not.  If IRNEW is a 1 or a 2, it becomes
                   the new value of the internal recovery-mode flag: the value 1 turns recovery mode on and  the
                   value 2 turns it off.  Other non-zero values are illegal, but, if IRNEW is zero, the state of
                   the internal recovery-mode flag is not changed.

Examples

       Use the ncargex command to see the following relevant examples: tseter, arex02.

Name

       ENTSR - Called by a user to set recovery mode in NCAR Graphics.

See Also

       Online: eprin, errof, error_handling, fdum, icfell, icloem, nerro, retsr, semess, seter, ncarg_cbind

Synopsis

       CALL ENTSR(IROLD,IRNEW)

See Also