The Structure Library

A.X.E.'s structures reside in the Structure Library.


The Structure Library stores all the structures known to a copy of A.X.E.. The commands on the structures menu allow you to access it through a dialog.
The Structure Library is stored in a simple format (i.e. a human-readable text file), because I like human-readable formats. This file, xstruct.ini, resides in the same directory as the A.X.E. executable. It is possible to edit the file manually so as to share structures with other people.
When you delete a structure, the record in question vanishes from xstruct.ini. However, all the structures that have ever been known to A.X.E. are recorded in xstruct.old in the same directory. This backup allows old structures to be restored. Simply copying xstruct.old over xstruct.ini and then starting A.X.E. will cause all structures to be loaded up; you can then delete the ones you don't want.
The format of xstruct.ini is that of a regular Windows .ini file. A record might look as follows:

[Sample Structure]
1=000,LONG,A long integer
2=000,BYTE,A plain byte
3=016,UNIC,A unicode string

The 'section name' in brackets is the name of the structure. The elements are numbered entries beneath the section name, starting at 1. Three comma-delimited fields must be present in each entry; a 3-digit decimal number for the element's length (see the description of a structure), a 4-character type code, and then the element's name. Type codes are:
If A.X.E. finds an invalid structure in the library when starting up, it notifies you and then forgets all about the structure, which disappears from the library.