Go to the source code of this file.
|
| void | banks_init_extended (Environment *_environment, int *_allowed, int _allowed_count, int _allowed_size) |
| void | banks_init (Environment *_environment) |
| int | banks_any_used (Environment *_environment) |
| int | banks_get_default_resident (Environment *_environment, int _bank) |
| char * | banks_get_address (Environment *_environment, int _bank) |
| Variable * | banks_get_address_var (Environment *_environment, char *_bank) |
| int | banks_store (Environment *_environment, Variable *_variable, int _resident) |
| int | banks_store_data (Environment *_environment, char *_data, int _size) |
◆ banks_any_used()
◆ banks_get_address()
| char * banks_get_address |
( |
Environment * | _environment, |
|
|
int | _bank ) |
◆ banks_get_address_var()
◆ banks_get_default_resident()
| int banks_get_default_resident |
( |
Environment * | _environment, |
|
|
int | _bank ) |
◆ banks_init()
◆ banks_init_extended()
| void banks_init_extended |
( |
Environment * | _environment, |
|
|
int * | _allowed, |
|
|
int | _allowed_count, |
|
|
int | _allowed_size ) |
◆ banks_store()
◆ banks_store_data()
| int banks_store_data |
( |
Environment * | _environment, |
|
|
char * | _data, |
|
|
int | _size ) |
◆ DATATYPE_AS_STRING
| char DATATYPE_AS_STRING[][16] |
|
extern |
This variable defines as an array of constant pointers. Each element of the array represents the "human" name of a ugBASIC's data type. The main reason is to map an IDto a readable string. If ugBASIC encounters an error, you don't want it to print "Error in type 2," but rather "Error in type
FLOAT.". Note that it's vital that the order of strings in the array exactly reflects the order of the IDs in your enum. If you move an element to one, you must also move it to the other, otherwise the mapping will be staggered. Often, a final NULL or UNKNOWN string is added to handle error cases or to allow you to loop through the array without knowing its size beforehand.
Definition at line 133 of file _infrastructure.c.