ugBASIC 1.18
An isomorphic BASIC language compiler for retrocomputers
Loading...
Searching...
No Matches
_Variable Struct Reference

Structure of a single variable. More...

#include <ugbc.h>

Data Fields

char * name
char * realName
char * meaningName
VariableType type
FloatTypePrecision precision
int temporary
int used
int locked
int imported
int assigned
int value
int initialValue
int initializedByConstant
StaticStringvalueString
double valueFloating
int bitPosition
int bitByte
unsigned char * valueBuffer
struct _Variableorigin
unsigned char * reflected
int size
int uncompressedSize
Compression compression
int absoluteAddress
int printable
Bankbank
MemoryAreamemoryArea
int arrayDimensions
int arrayDimensionsEach [MAX_ARRAY_DIMENSIONS]
ConstantarrayInitialization
VariableType arrayType
FloatTypePrecision arrayPrecision
int threaded
int frameSize
int frameCount
int staticalInit
char * originalBitmap
int originalWidth
int originalHeight
int originalDepth
int originalColors
int mapWidth
int mapHeight
int mapLayers
int frameWidth
int frameHeight
int firstGid
RGBi originalPalette [MAX_PALETTE]
int bankAssigned
int residentAssigned
int variableUniqueId
int bankReadOrWrite
TsxTilesetoriginalTileset
struct _Variabletileset
TmxMaporiginalTilemap
int readonly
int onStorage
OffsettingoffsettingFrames
OffsettingoffsettingSequences
SIDFILEsidFile
Stripstrips
int usedImage
struct _TypetypeType
struct _Variablenext

Detailed Description

Structure of a single variable.

Definition at line 976 of file ugbc.h.

Field Documentation

◆ absoluteAddress

int absoluteAddress

The absolute address of this variable (if any).

Definition at line 1092 of file ugbc.h.

◆ arrayDimensions

int arrayDimensions

Number of dimensions of this array

Definition at line 1112 of file ugbc.h.

◆ arrayDimensionsEach

int arrayDimensionsEach[MAX_ARRAY_DIMENSIONS]

Size of each dimension

Definition at line 1117 of file ugbc.h.

◆ arrayInitialization

Constant* arrayInitialization

Initialization values

Definition at line 1122 of file ugbc.h.

◆ arrayPrecision

FloatTypePrecision arrayPrecision

Float precision

Definition at line 1128 of file ugbc.h.

◆ arrayType

VariableType arrayType

Variable type

Definition at line 1125 of file ugbc.h.

◆ assigned

int assigned

This flag mark if this variable has been assigned. If it is temporary MUST not be outputed as value.

Definition at line 1020 of file ugbc.h.

◆ bank

Bank* bank

Pointer to the bank where this variable belongs to.

Definition at line 1102 of file ugbc.h.

◆ bankAssigned

int bankAssigned

Bank to be used to store the content of this variable

Definition at line 1172 of file ugbc.h.

◆ bankReadOrWrite

int bankReadOrWrite

is this variable object of a BANK READ / BANK WRITE?

Definition at line 1181 of file ugbc.h.

◆ bitByte

int bitByte

Position of the byte inside the (generic) bitstream.

Definition at line 1056 of file ugbc.h.

◆ bitPosition

int bitPosition

Position of the bit inside the byte.

Definition at line 1051 of file ugbc.h.

◆ compression

Compression compression

The type of compressor.

Definition at line 1087 of file ugbc.h.

◆ firstGid

int firstGid

Definition at line 1166 of file ugbc.h.

◆ frameCount

int frameCount

count of frames (if IMAGES)

Definition at line 1137 of file ugbc.h.

◆ frameHeight

int frameHeight

Definition at line 1164 of file ugbc.h.

◆ frameSize

int frameSize

size of single frame (if IMAGES)

Definition at line 1134 of file ugbc.h.

◆ frameWidth

int frameWidth

Definition at line 1162 of file ugbc.h.

◆ imported

int imported

This flag mark if this variable is imported by external ASM

Definition at line 1014 of file ugbc.h.

◆ initializedByConstant

int initializedByConstant

If this variable has been initialized by a numeric value, this flag will be setted.

Definition at line 1036 of file ugbc.h.

◆ initialValue

int initialValue

The first assigned value of the variable, as given by last (re)definition.

Definition at line 1030 of file ugbc.h.

◆ locked

int locked

This flag mark if this variable is locked (1) or not (0); it is valid only for temporary one and avoid to free variables that are still used.

Definition at line 1009 of file ugbc.h.

◆ mapHeight

int mapHeight

Definition at line 1158 of file ugbc.h.

◆ mapLayers

int mapLayers

Definition at line 1160 of file ugbc.h.

◆ mapWidth

int mapWidth

Definition at line 1156 of file ugbc.h.

◆ meaningName

char* meaningName

Only for temporary vars: the meaning for this variable

Definition at line 985 of file ugbc.h.

◆ memoryArea

MemoryArea* memoryArea

Pointer to the memory area where this variable belongs to.

Definition at line 1107 of file ugbc.h.

◆ name

char* name

Name of the variable (in the program)

Definition at line 979 of file ugbc.h.

◆ next

struct _Variable* next

Link to the next variable (NULL if this is the last one)

Definition at line 1225 of file ugbc.h.

◆ offsettingFrames

Offsetting* offsettingFrames

Linked offsetting for each frame

Definition at line 1206 of file ugbc.h.

◆ offsettingSequences

Offsetting* offsettingSequences

Linked offsetting for each sequence

Definition at line 1211 of file ugbc.h.

◆ onStorage

int onStorage

This flag mark if a variable must be seen as a "memory placeholder" for a data stored into the mass storage.

Definition at line 1201 of file ugbc.h.

◆ origin

struct _Variable* origin

Original coordinate variable referred to this one when ORIGIN is in effect.

Definition at line 1067 of file ugbc.h.

◆ originalBitmap

char* originalBitmap

Original bitmap data (if IMAGE/IMAGES)

Definition at line 1142 of file ugbc.h.

◆ originalColors

int originalColors

Original bitmap nr. colors (if IMAGE/IMAGES)

Definition at line 1154 of file ugbc.h.

◆ originalDepth

int originalDepth

Original bitmap depth (if IMAGE/IMAGES)

Definition at line 1151 of file ugbc.h.

◆ originalHeight

int originalHeight

Original bitmap height (if IMAGE/IMAGES)

Definition at line 1148 of file ugbc.h.

◆ originalPalette

RGBi originalPalette[MAX_PALETTE]

Original bitmap palette (if IMAGE/IMAGES)

Definition at line 1169 of file ugbc.h.

◆ originalTilemap

TmxMap* originalTilemap

If VT_TILEMAP, this is the original tmx' tileset attached (if used)

Definition at line 1189 of file ugbc.h.

◆ originalTileset

TsxTileset* originalTileset

If VT_IMAGES, this is the original tsx' tileset attached (if used)

Definition at line 1184 of file ugbc.h.

◆ originalWidth

int originalWidth

Original bitmap width (if IMAGE/IMAGES)

Definition at line 1145 of file ugbc.h.

◆ precision

FloatTypePrecision precision

Precision type (if float)

Definition at line 991 of file ugbc.h.

◆ printable

int printable

Is a printable buffer?

Definition at line 1097 of file ugbc.h.

◆ readonly

int readonly

This flag mark if this variable is read only (1) or not (0); read only variables could be stored into non writable memory.

Definition at line 1195 of file ugbc.h.

◆ realName

char* realName

Real name (used for source generation)

Definition at line 982 of file ugbc.h.

◆ reflected

unsigned char* reflected

Reflected variable.

Definition at line 1072 of file ugbc.h.

◆ residentAssigned

int residentAssigned

Resident shared assigned to this

Definition at line 1175 of file ugbc.h.

◆ sidFile

SIDFILE* sidFile

Definition at line 1213 of file ugbc.h.

◆ size

int size

The size of the (naive/compressed) static buffer (in bytes).

Definition at line 1077 of file ugbc.h.

◆ staticalInit

int staticalInit

Definition at line 1139 of file ugbc.h.

◆ strips

Strip* strips

Definition at line 1215 of file ugbc.h.

◆ temporary

int temporary

This flag mark if this variable is temporary or not

Definition at line 996 of file ugbc.h.

◆ threaded

int threaded

Is threaded?

Definition at line 1131 of file ugbc.h.

◆ tileset

struct _Variable* tileset

Definition at line 1186 of file ugbc.h.

◆ type

Variable type

Definition at line 988 of file ugbc.h.

◆ typeType

struct _Type* typeType

Definition at line 1222 of file ugbc.h.

◆ uncompressedSize

int uncompressedSize

The size of the (uncompressed) static buffer (in bytes).

Definition at line 1082 of file ugbc.h.

◆ used

int used

This flag mark if this variable is used (1) or not (0); it is valid only for temporary one.

Definition at line 1002 of file ugbc.h.

◆ usedImage

int usedImage

Definition at line 1220 of file ugbc.h.

◆ value

int value

The last value of the variable, as given by last assignment

Definition at line 1025 of file ugbc.h.

◆ valueBuffer

unsigned char* valueBuffer

The static buffer's value, as given by last (re)definition.

Definition at line 1061 of file ugbc.h.

◆ valueFloating

double valueFloating

The static floating's value, as given by last (re)definition.

Definition at line 1046 of file ugbc.h.

◆ valueString

StaticString* valueString

The pointer to the constant string.

Definition at line 1041 of file ugbc.h.

◆ variableUniqueId

int variableUniqueId

Unique ID assigned to this variable (is banked)

Definition at line 1178 of file ugbc.h.


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