FORM  4.3
Data Fields
STOREHEADER Struct Reference

#include <structs.h>

Data Fields

UBYTE headermark [8]
 
UBYTE lenWORD
 
UBYTE lenLONG
 
UBYTE lenPOS
 
UBYTE lenPOINTER
 
UBYTE endianness [16]
 
UBYTE sSym
 
UBYTE sInd
 
UBYTE sVec
 
UBYTE sFun
 
UBYTE maxpower [16]
 
UBYTE wildoffset [16]
 
UBYTE revision
 
UBYTE reserved [512-8-4-16-4-16-16-1]
 

Detailed Description

Defines the structure of the file header for store-files and save-files.

The first 8 bytes serve as a unique mark to identity save-files that contain such a header. Older versions of FORM don't have this header and will write the POSITION of the next file index (struct FiLeInDeX) here, which is always different from this pattern.

It is always 512 bytes long.

Definition at line 74 of file structs.h.

Field Documentation

◆ headermark

UBYTE headermark[8]

Pattern for header identification. Old versions of FORM have a maximum sizeof(POSITION) of 8

Definition at line 75 of file structs.h.

◆ lenWORD

UBYTE lenWORD

Number of bytes for WORD

Definition at line 77 of file structs.h.

◆ lenLONG

UBYTE lenLONG

Number of bytes for LONG

Definition at line 78 of file structs.h.

◆ lenPOS

UBYTE lenPOS

Number of bytes for POSITION

Definition at line 79 of file structs.h.

◆ lenPOINTER

UBYTE lenPOINTER

Number of bytes for void *

Definition at line 80 of file structs.h.

◆ endianness

UBYTE endianness[16]

Used to determine endianness, sizeof(int) should be <= 16

Definition at line 81 of file structs.h.

◆ sSym

UBYTE sSym

sizeof(struct SyMbOl)

Definition at line 82 of file structs.h.

◆ sInd

UBYTE sInd

sizeof(struct InDeX)

Definition at line 83 of file structs.h.

◆ sVec

UBYTE sVec

sizeof(struct VeCtOr)

Definition at line 84 of file structs.h.

◆ sFun

UBYTE sFun

sizeof(struct FuNcTiOn)

Definition at line 85 of file structs.h.

◆ maxpower

UBYTE maxpower[16]

Maximum power, see #MAXPOWER

Definition at line 86 of file structs.h.

◆ wildoffset

UBYTE wildoffset[16]

#WILDOFFSET macro

Definition at line 87 of file structs.h.

◆ revision

UBYTE revision

Revision number of save-file system

Definition at line 88 of file structs.h.

◆ reserved

UBYTE reserved[512-8-4-16-4-16-16-1]

Padding to 512 bytes

Definition at line 89 of file structs.h.


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