File:  [Coherent Logic Development] / freem / tests / MAXLEN.m
Revision 1.1: download - view: text, annotated - select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 2 weeks ago) by snw
CVS tags: MAIN, HEAD
Initial revision

MAXLEN ;
    S $ZTRAP="ERRH"
    W "Creating an 8-character local variable name:  "
    S IDENT="ABCDEFGH",@IDENT="FOO"
    I ABCDEFGH="FOO" W "OK",!  E  W "MISMATCH",!
    KILL
    W "Creating a 256-character local variable name:  "
    S $P(IDENT,"A",256)="A",@IDENT="FOO"
    I @IDENT="FOO" W "OK",!  E  W "MISMATCH",!
    KILL
    W "Creating a 257-character local variable name:  "
    S $P(IDENT,"A",257)="A",@IDENT="FOO"
    I @IDENT="FOO" W "OK",!  E  W "MISMATCH",!
    Q
ERRH ;
    W "ERROR!",!
    W " $ECODE  = ",$ECODE,!
    W " $ZERROR = ",$ZERROR,!
    S ERCODE=$P($P($ZERROR,"<",2),">",1)
    W " MESSAGE = '",$VIEW(16,ERCODE),"'",!
    HALT


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>