FORM  4.2
Data Fields
NaMeTree Struct Reference

#include <structs.h>

Data Fields

NAMENODEnamenode
 
UBYTE * namebuffer
 
LONG nodesize
 
LONG nodefill
 
LONG namesize
 
LONG namefill
 
LONG oldnamefill
 
LONG oldnodefill
 
LONG globalnamefill
 
LONG globalnodefill
 
LONG clearnamefill
 
LONG clearnodefill
 
WORD headnode
 

Detailed Description

A struct of type NAMETREE controls a complete (balanced) tree of names for the compiler. The compiler maintains several of such trees and the system has been set up in such a way that one could define more of them if we ever want to work with local name spaces.

Definition at line 252 of file structs.h.

Field Documentation

◆ namenode

NAMENODE* namenode

[D] Vector of NAMENODE's. Number of elements is nodesize. =0 if no memory has been allocated.

Definition at line 253 of file structs.h.

◆ namebuffer

UBYTE* namebuffer

[D] Buffer that holds all the name strings refered to by the NAMENODE's. Allocation size is namesize. =0 if no memory has been allocated.

Definition at line 255 of file structs.h.

◆ nodesize

LONG nodesize

Maximum number of elements in namenode.

Definition at line 258 of file structs.h.

◆ nodefill

LONG nodefill

Number of currently used nodes in namenode.

Definition at line 259 of file structs.h.

◆ namesize

LONG namesize

Allocation size of namebuffer in bytes.

Definition at line 260 of file structs.h.

◆ namefill

LONG namefill

Number of bytes occupied.

Definition at line 261 of file structs.h.

◆ oldnamefill

LONG oldnamefill

UNUSED

Definition at line 262 of file structs.h.

◆ oldnodefill

LONG oldnodefill

UNUSED

Definition at line 263 of file structs.h.

◆ globalnamefill

LONG globalnamefill

Set by .global statement to the value of namefill. When a .store command is processed, this value will be used to reset namefill.

Definition at line 264 of file structs.h.

◆ globalnodefill

LONG globalnodefill

Same usage as globalnamefill, but for nodefill.

Definition at line 266 of file structs.h.

◆ clearnamefill

LONG clearnamefill

Marks the reset point used by the .clear statement.

Definition at line 267 of file structs.h.

◆ clearnodefill

LONG clearnodefill

Marks the reset point used by the .clear statement.

Definition at line 268 of file structs.h.

◆ headnode

WORD headnode

Offset in namenode of head node. =-1 if tree is empty.

Definition at line 269 of file structs.h.


The documentation for this struct was generated from the following file: