chiark
/
gitweb
/
~mdw
/
sod
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc/syntax.tex: Delete (wrong) duplicate rule for <argument-declarator>.
[sod]
/
lib
/
sod-structs.3
diff --git
a/lib/sod-structs.3
b/lib/sod-structs.3
index 0eb6324cc825110f067bbad9a87602ed93f17ce4..672fe596debee5c41230b80733af0e853d0622a1 100644
(file)
--- a/
lib/sod-structs.3
+++ b/
lib/sod-structs.3
@@
-97,7
+97,7
@@
struct SodClass__vt_obj {
\h'2n'} obj;
};
\h'2n'} obj;
};
-struct Sod
Object
__ilayout {
+struct Sod
Class
__ilayout {
\h'2n'union {
\h'4n'struct SodClass__ichain_obj {
\h'6n'const struct SodClass__vt_obj *_vt;
\h'2n'union {
\h'4n'struct SodClass__ichain_obj {
\h'6n'const struct SodClass__vt_obj *_vt;
@@
-542,7
+542,7
@@
struct \fIC\fB__ilayout {
\h'6n'} \fIc\fB;
\h'4n'} \fIc\fB;
\h'4n'\fR...\fB
\h'6n'} \fIc\fB;
\h'4n'} \fIc\fB;
\h'4n'\fR...\fB
-\h'4n'struct \fI
H\fB__ichain_\fIh\fB \fIh
\fB;
+\h'4n'struct \fI
A\fB__ichain_\fIh\fB \fIa
\fB;
\h'2n'} \fIh\fB;
\h'2n'union \fIB\fB__ichainu_\fIi\fB \fIi\fB;
\h'2n'\fR...\fB
\h'2n'} \fIh\fB;
\h'2n'union \fIB\fB__ichainu_\fIi\fB \fIi\fB;
\h'2n'\fR...\fB
@@
-626,13
+626,9
@@
for each of
superclasses
.IR A
in the same chain in some (unimportant) order.
superclasses
.IR A
in the same chain in some (unimportant) order.
-A `pointer to
-.IR C '
-is always assumed
-(and, indeed, defined in C's type system)
-to be a pointer to the
-.B struct
-.IB C __ichain_ h \fR.
+The (somewhat obtuse) purpose of this union is to
+engage the `common initial sequence' rule of
+C99 (clause 6.5.2.3).
.PP
The
.B ichain
.PP
The
.B ichain
@@
-664,6
+660,14
@@
then the last member is
.IB C __islots
.IB c ;
.PP
.IB C __islots
.IB c ;
.PP
+A `pointer to
+.IR C '
+is always assumed
+(and, indeed, defined in C's type system)
+to be a pointer to the
+.B struct
+.IB C __ichain_ h \fR.
+.PP
Finally, the
.B islots
structure simply contains one member for each slot defined by
Finally, the
.B islots
structure simply contains one member for each slot defined by