CheckReservedName Function (ROM Call 0x8B)

vat.h

short CheckReservedName (SYM_STR SymName);

Checks for graph functions and other special variable names.

CheckReservedName checks whether SymName is a graph function or another special variable name. It returns zero if this is not the case, otherwise it returns the type of the variable. This routine works in the same way as CheckSysFunc; the only differences are that SymName is a tokenized name, and that the function may also return R_SYSVAR.

Precisely, this function returns values from either GraphModes or ExtendedSysTypes, in addition to zero:

GR_FUNC "y1".."y99"
GR_PAR "xt1".."xt99", "yt1".."yt99"
GR_POL "r1".."r99"
GR_SEQ "u1".."u99"
GR_3D "z1".."z99"
GR_DE "y'1".."y'99"
SEQ_INITC "ui1".."ui99"
DE_INITC "yi1".."yi99"
DR_FLDPIC "FldPic"
SOLVER_SYS_VARS "Exp", "Eqn"
UNIT_VAR name with a leading underscore
C_COL "c1".."c99"
R_REGEQ "RegEq"
R_SYSVAR another system variable (see EXT_SYSTEM_TAG)

This function calls TokToStrN and CheckSysFunc.


Uses: CheckSysFunc, TokToStrN
Used by: cmd_local, push_parse_text, EQU_getNameInfo, GraphOrTableCmd, push_parse_prgm_or_func_text, tokenize_if_TI_92_or_text, VarStoreLink, ROM Call 0x437


See also: CheckSysFunc, SymSysVar