Skip to content

Commit ad11441

Browse files
committed
Cosmetic, including updated documentation
1 parent 31b70dc commit ad11441

File tree

7 files changed

+386
-259
lines changed

7 files changed

+386
-259
lines changed

cckd.h

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* CCKD.H (C) Copyright "Fish" (David B. Trout), 2018-2019 */
1+
/* CCKD.H (C) Copyright "Fish" (David B. Trout), 2018-2022 */
22
/* CCKD dasd struct and type definitions */
33
/* */
44
/* Released under "The Q Public License Version 1" */
@@ -164,10 +164,12 @@ struct CCKD_FREEBLK { /* Free block (file) */
164164

165165
/* NOTE: all fields are numeric and always in LITTLE endian format. */
166166

167-
U32 fb_offnxt; /* Offset to next free blk */
168-
U32 fb_len; /* Length this free blk */
167+
U32 fb_offnxt; /* Offset to NEXT free blk */
168+
U32 fb_len; /* Length of THIS free blk */
169169
};
170170

171+
#define fb_offset fb_offnxt // (see cckd_read_fsp/cckd_write_fsp!)
172+
171173
struct CCKD_IFREEBLK { /* Free block (internal) */
172174

173175
/* NOTE: because this control block is an INTERNAL control block */
@@ -176,8 +178,8 @@ struct CCKD_IFREEBLK { /* Free block (internal) */
176178
/* in *HOST* endian format (little endian on little endian hosts */
177179
/* and big endian on big endian hosts). */
178180

179-
U32 ifb_offnxt; /* Offset to next free blk */
180-
U32 ifb_len; /* Length this free blk */
181+
U32 ifb_offnxt; /* Offset to NEXT free blk */
182+
U32 ifb_len; /* Length of THIS free blk */
181183
int ifb_idxprv; /* Index to prev free blk */
182184
int ifb_idxnxt; /* Index to next free blk */
183185
int ifb_pending; /* 1=Free pending (don't use)*/

cckd64.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* CCKD64.H (C) Copyright "Fish" (David B. Trout), 2018-2019 */
1+
/* CCKD64.H (C) Copyright "Fish" (David B. Trout), 2018-2022 */
22
/* CCKD64 dasd struct and type definitions */
33
/* */
44
/* Released under "The Q Public License Version 1" */
@@ -97,8 +97,8 @@ struct CCKD64_FREEBLK { /* Free block (file) */
9797

9898
/* NOTE: all fields are numeric and always in LITTLE endian format. */
9999

100-
U64 fb_offnxt; /* Offset to next free blk */
101-
U64 fb_len; /* Length this free blk */
100+
U64 fb_offnxt; /* Offset to NEXT free blk */
101+
U64 fb_len; /* Length of THIS free blk */
102102
};
103103

104104
struct CCKD64_IFREEBLK { /* Free block (internal) */
@@ -109,8 +109,9 @@ struct CCKD64_IFREEBLK { /* Free block (internal) */
109109
/* in *HOST* endian format (little endian on little endian hosts */
110110
/* and big endian on big endian hosts). */
111111

112-
U64 ifb_offnxt; /* Offset to next free blk */
113-
U64 ifb_len; /* Length this free blk */
112+
U64 ifb_offnxt; /* Offset to NEXT free blk */
113+
U64 ifb_len; /* Length of THIS free blk */
114+
114115
int ifb_idxprv; /* Index to prev free blk */
115116
int ifb_idxnxt; /* Index to next free blk */
116117
int ifb_pending; /* 1=Free pending (don't use)*/

0 commit comments

Comments
 (0)