Appendix A: System Routines — Variable Name Utilities
1123
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
SymSysVar
Declaration:
WORD
SymSysVar
(BYTE *
StrName
)
Category(ies):
Variable Name Utilities
Description:
Check if given variable is a system reserved variable stored in the symbol
table (in the MAIN folder).
Inputs:
StrName
— Pointer to an ASCIIZ symbol name.
Outputs:
Same return value as
CheckSysFunc
. But returns R_SYSVAR for
SysData and RegCoef.
Assumptions:
None
Side Effects:
None
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: CheckSysFunc, TokenizeSymName
Example:
System reserved names always reside in the MAIN folder. In the
TokenizeSymName
function, if the TSF_FULLY_QUALIFIED flag is set
and the variable does not already have a folder and it is not a system
reserved name (which needs no folder name) then one is added. The
check for the previous conditions is shown in the code fragment below.
if ((Flags & TSF_FULLY_QUALIFIED) && (strchr((char *)StrSymName, SYM_SEP) == NULL)
&& !SymSysVar(StrSymName)) {
/* . . . add folder name . . . */
}