home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
brokcode.zip
/
READHD2.EXE
/
lha
/
FILEDEF.CPY
< prev
next >
Wrap
Text File
|
1988-10-30
|
3KB
|
82 lines
! ═══════════════════ CLARION FILE DEFINITION STRUCTURES ══════════════════════
FLDNMSIZ EQUATE(16) ! max size of a field name
PRESIZ EQUATE(3) ! max size field name prefix
MAXFLDS EQUATE(256) ! max number of fields per record
NODESIZE EQUATE(512) ! size of nodes in key files
MEMOSIZE EQUATE(256) ! size of memo text block
MAXKEYSIZ EQUATE(245) ! maximum length of key
MAXKEYS EQUATE(255) ! maximum number of keys
MAXPICLEN EQUATE(256) ! maximum length of picture
! record status types
NEWREC EQUATE(00000001B) ! New Record
OLDREC EQUATE(00000010B) ! Old Record
RVISED EQUATE(00000100B) ! Revised
BACKED EQUATE(00001000B) ! Backed Up
DELTED EQUATE(00010000B) ! Deleted
EMPTY EQUATE(00100000B) ! Empty
RDLOCK EQUATE(01000000B) ! Record Locked
WTLOCK EQUATE(10000000B) ! ???
! sf file status defines for sfatr
FILLOCK EQUATE(00000001B) ! file is locked
FILOWN EQUATE(00000010B) ! file is owned
FILCRYP EQUATE(00000100B) ! records are encrypted
FILMEMO EQUATE(00001000B) ! memo file exists
FILCOMP EQUATE(00010000B) ! file is compressed
FILRCLM EQUATE(00100000B) ! reclaim deleted records
FILREAD EQUATE(01000000B) ! file is read only
FILCRET EQUATE(10000000B) ! file may be created
! field types
FLNG EQUATE(1) ! LONG - long
FREL EQUATE(2) ! REAL - double
FSTR EQUATE(3) ! STRING - char[]
FPIC EQUATE(4) ! PICTURE - char[]
FBYT EQUATE(5) ! BYTE - char
FSHT EQUATE(6) ! SHORT - int
FGRP EQUATE(7) ! GROUP
FDEC EQUATE(8) ! DECIMAL
FILEHEAD DOS,NAME(FNAME),PRE(FHE) ! data file header (LEN=85 bytes)
RECORD
filesig short ! signature
sfatr short ! file attributes
numbkeys byte ! number of keys in this file
numrecs long ! number of records in file
numdels long ! number of deleted records
numflds short ! number of fields
numpics short ! number of pictures
numarrs short ! number of arrays
reclen short ! record length
offset long ! start of data area
logeof long ! logical end of file
logbof long ! logical beginning of file
freerec long ! first usable deleted record
recnam string(FLDNMSIZ-4) ! record name without pre
memnam string(FLDNMSIZ-4) ! memo name without pre
filpre string(PRESIZ) ! file name prefix
recpre string(PRESIZ) ! record name prefix
memolen short ! size of memo
memowid short ! column length of memo
lockcnt long ! file locked counter
chgtime long ! time of last change
chgdate long ! date of last change
chcksum short ! checksum used for encrypt
. .
RECHEAD DOS,NAME(FNAME),PRE(RHE) ! record Descriptions
RECORD
fldtype byte ! type of field
fldname string(FLDNMSIZ) ! name of field
foffset short ! offset into record
length short ! length of field
decsig byte ! significance for decimals
decdec byte ! number of decimal places
arrnum short ! array number
picnum short ! picture number
. .