LIO_CTX Type (Structure)

link.h

typedef struct {
unsigned short hVar; /* File handle (or 0 if no handles associated) */
union {
const void *pVar; /* Pointer to the file, used only if hVar is 0 */
struct {
unsigned short FindFlags;
unsigned short NameSym;
} DirVars; /* Used only if hVar is non-zero */
} extra;
const char *VarName; /* Pointer to the var name (ordinary C string) */
unsigned long VarSize; /* Size of the variable */
unsigned short Index; /* Only for CBL access - data sent as float array */
unsigned short Unknown; /* Sent after index */
unsigned char VarType; /* See below */
unsigned char VarCompat; /* See info about SYM_ENTRY in vat.h */
} LIO_CTX;

A file context structure used in some high-level link commands.

LIO_CTX is a file context structure used in some high-level link commands. Some fields of this structure are not so clear for me. However, in many applications not all fields need to be set properly, so limited use of this structure is possible.

The field VarType may contain the following values (I don't know much more than I wrote in this table, so don't ask me about details):

0Expression
4List
6Matrix
10Data
11Text
12String
13GDB variable
14Geometry figure
16Picture
17Picture (???)
18TI-Basic program
19TI-Basic function
20Geometry macro
21In link protocol, cause execution of assembly block
25Directory list (used recursively, unless VarType 26 follows)
26List the folder table entries
27List contents of a given folder (VarType 26 should follow)
28Other (OTH) file
29Backup file
31Folder entry symbol in group files
32Used for getting a certificate
33ASM program
34ID List
35Product code (AMS)
36FLASH application
37Certificate