summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
authorGravatarGravatar Zoe╠ł Blade <zoe@bytenoise.co.uk>2019-10-21 09:31:13 +0100
committerGravatarGravatar Vas Crabb <cuavas@users.noreply.github.com>2019-10-21 19:40:49 +1100
commit5854f09b4dad2516691571226a99efa7ff90e465 (patch)
treed9d2061e10ba3ab392d5caaaf882b1acf3fa182e /src/tools
parent62925267225a4bf5d743310dc83c8983309864a8 (diff)
Fix spelling, tidy whitespace
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/imgtool/modules/ti99.cpp8
-rw-r--r--src/tools/imgtool/modules/ti990hd.cpp61
2 files changed, 34 insertions, 35 deletions
diff --git a/src/tools/imgtool/modules/ti99.cpp b/src/tools/imgtool/modules/ti99.cpp
index 04881c7b5ef..5c3d66e0c22 100644
--- a/src/tools/imgtool/modules/ti99.cpp
+++ b/src/tools/imgtool/modules/ti99.cpp
@@ -166,7 +166,7 @@
The DSK disk structure is used for floppy disks, and a few RAMDISKs as
well. It supports 1600 AUs and 16 MBytes at most (the 16 MByte value is a
- theorical maximum, as I doubt anyone has ever created so big a DSK volume).
+ theoretical maximum, as I doubt anyone has ever created so big a DSK volume).
The disk sector size is always 256 bytes (the only potential exceptions are
the SCSI floppy disk units and the TI-99 simulator on TI-990, but I don't
@@ -524,7 +524,7 @@ struct dsk_vib
/* the allocation unit associated with that */
/* bit has been allocated. */
/* Bits corresponding to system reserved AUs, */
- /* non-existant AUs, and bad AUs, are set to one, too. */
+ /* non-existent AUs, and bad AUs, are set to one, too. */
/* (AU 0 is associated to LSBit of byte 0, */
/* AU 7 to MSBit of byte 0, AU 8 to LSBit */
/* of byte 1, etc.) */
@@ -1579,7 +1579,7 @@ struct dsk_fdr
/* implementation is regarded as a bug because */
/* program files do not define the fixrecs field */
/* field, so program field saved by the HFDC */
- /* DSR may be larger whan they should. */
+ /* DSR may be larger than they should. */
uint8_t eof; /* EOF offset in last physrec for variable length */
/* record files and program files (0->256)*/
uint8_t reclen; /* logical record size in bytes ([1,255] 0->256) */
@@ -5090,7 +5090,7 @@ static imgtoolerr_t win_image_deletefile(imgtool::partition &partition, const ch
/* check integrity of FDR sibling chain, and go to last sibling */
/* note that as we check that the back chain is consistent with the forward
chain, we will also detect any cycle in the sibling chain, so we do not
- need to check against them explicitely */
+ need to check against them explicitly */
{
int pastendoflist_flag;
unsigned prevfdr_aphysrec;
diff --git a/src/tools/imgtool/modules/ti990hd.cpp b/src/tools/imgtool/modules/ti990hd.cpp
index 8edaeaf3fb6..96866fdd13a 100644
--- a/src/tools/imgtool/modules/ti990hd.cpp
+++ b/src/tools/imgtool/modules/ti990hd.cpp
@@ -96,7 +96,7 @@ enum
Track 1 Sector 0 through N-2: optional disk program image loader
Track 1 Sector N-1: copy of Track 0 Sector 0
Track 1 Sector N: copy of Track 0 Sector 1
- Last cylinder has disagnostic information (reported as .S$DIAG)
+ Last cylinder has diagnostic information (reported as .S$DIAG)
Remaining sectors are used for fdr and data.
*/
@@ -214,7 +214,7 @@ struct ti990_fdr
UINT16BE hkc; /* hask key count: the number of file descriptor records that are present in the directory that hashed to this record number */
UINT16BE hkv; /* hask key value: the result of the hash algorithm for the file name actually covered in this record */
char fnm[8]; /* file name */
- uint8_t rsv[2]; /* reserved */
+ uint8_t rsv[2]; /* reserved */
UINT16BE fl1; /* flags word 1 */
UINT16BE flg; /* flags word 2 */
UINT16BE prs; /* physical record size */
@@ -227,31 +227,31 @@ struct ti990_fdr
UINT32BE eom; /* end of medium record number */
UINT32BE bkm; /* end of medium block number */
UINT16BE ofm; /* end of medium offset / */
- /* prelog number for KIF */
+ /* prelog number for KIF */
UINT32BE fbq; /* free block queue head */
UINT16BE btr; /* B-tree roots block # */
UINT32BE ebq; /* empty block queue head */
UINT16BE kdr; /* key descriptions record # */
- uint8_t ud[6]; /* last update date */
- uint8_t cd[6]; /* creation date */
- uint8_t apb; /* ADU's per block */
- uint8_t bpa; /* blocks per ADU */
- UINT16BE mrs; /* minimumu KIF record size */
- uint8_t sat[64]; /* secondary allocation table: 16 2-word entries. The first word of an entry contains the size, in ADUs, of the secondary allocation. The second word contains the starting ADU of the allocation. */
+ uint8_t ud[6]; /* last update date */
+ uint8_t cd[6]; /* creation date */
+ uint8_t apb; /* ADU's per block */
+ uint8_t bpa; /* blocks per ADU */
+ UINT16BE mrs; /* minimum KIF record size */
+ uint8_t sat[64]; /* secondary allocation table: 16 2-word entries. The first word of an entry contains the size, in ADUs, of the secondary allocation. The second word contains the starting ADU of the allocation. */
/* bytes >86 to >100 are optional */
- uint8_t res[10]; /* reserved: seem to be actually meaningful (at least under DX10 3.6.x) */
+ uint8_t res[10]; /* reserved: seem to be actually meaningful (at least under DX10 3.6.x) */
char uid[8]; /* user id of file creator */
UINT16BE psa; /* public security attribute */
ti990_ace ace[9]; /* 9 access control entries */
- uint8_t fil[2]; /* not used */
+ uint8_t fil[2]; /* not used */
};
/*
ADR record: variant of FDR for Aliases
The fields marked here with *** are in the ADR template to maintain
- compatability with the FDR template.
+ compatibility with the FDR template.
*/
struct ti990_adr
{
@@ -284,19 +284,19 @@ struct ti990_cdr
UINT16BE fill00; /* reserved */
UINT16BE fill01; /* reserved */
UINT16BE fdf; /* flags (same as fdr.flg) */
- uint8_t flg; /* channel flzgs */
- uint8_t iid; /* owner task installed ID */
- uint8_t typ; /* default resource type */
- uint8_t tf; /* resource type flags */
+ uint8_t flg; /* channel flzgs */
+ uint8_t iid; /* owner task installed ID */
+ uint8_t typ; /* default resource type */
+ uint8_t tf; /* resource type flags */
UINT16BE mxl; /* maximum message length */
- uint8_t fill04[6]; /* reserved (and, no, I don't know where fill02 and fill03 have gone) */
+ uint8_t fill04[6]; /* reserved (and, no, I don't know where fill02 and fill03 have gone) */
UINT16BE rna; /* record number of next CDR or ADR */
UINT16BE raf; /* record # of actual FDR */
- uint8_t fill05[110]; /* reserved */
+ uint8_t fill05[110]; /* reserved */
char uid[8]; /* user ID of channel creator */
UINT16BE psa; /* public security attribute */
- uint8_t scg[94]; /* "SDT with 9 control groups" (whatever it means - and, no, 94 is not dividable by 9) */
- uint8_t fill06[8]; /* reserved */
+ uint8_t scg[94]; /* "SDT with 9 control groups" (whatever it means - and, no, 94 is not dividable by 9) */
+ uint8_t fill06[8]; /* reserved */
};
/*
@@ -321,19 +321,18 @@ union directory_entry
*/
struct tifile_header
{
- char tifiles[8]; /* always '\7TIFILES' */
- uint8_t secsused_MSB; /* file length in sectors (big-endian) */
- uint8_t secsused_LSB;
- uint8_t flags; /* see enum above */
- uint8_t recspersec; /* records per sector */
- uint8_t eof; /* current position of eof in last sector (0->255)*/
- uint8_t reclen; /* bytes per record ([1,255] 0->256) */
- uint8_t fixrecs_MSB; /* file length in records (big-endian) */
- uint8_t fixrecs_LSB;
- uint8_t res[128-16]; /* reserved */
+ char tifiles[8]; /* always '\7TIFILES' */
+ uint8_t secsused_MSB; /* file length in sectors (big-endian) */
+ uint8_t secsused_LSB;
+ uint8_t flags; /* see enum above */
+ uint8_t recspersec; /* records per sector */
+ uint8_t eof; /* current position of eof in last sector (0->255)*/
+ uint8_t reclen; /* bytes per record ([1,255] 0->256) */
+ uint8_t fixrecs_MSB; /* file length in records (big-endian) */
+ uint8_t fixrecs_LSB;
+ uint8_t res[128-16]; /* reserved */
};
-
/*
catalog entry (used for in-memory catalog)
*/