File:
[Coherent Logic Development] /
freem /
tests /
MAXLEN.m
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs
Sun Jan 19 02:04:04 2025 UTC (2 months, 2 weeks ago) by
snw
Branches:
MAIN,
CoherentLogicDevelopment
CVS tags:
v0-63-1-rc1,
v0-63-0-rc1,
v0-63-0,
v0-62-3,
v0-62-2,
v0-62-1,
v0-62-0,
start,
HEAD
FreeM
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>