09-05-2007, 05:14 PM
It is desirable to allow opaque pointers, and this rule was not intended to prevent their use.
In the Guidelines the line \"struct tnode *pt;\" is given as an example of an incomplete type. The supporting comment correctly states that tnode is incomplete at this point, but the pointer pt is in fact complete. The use of a pointer to an incomplete type is allowed.
In the Guidelines the line \"struct tnode *pt;\" is given as an example of an incomplete type. The supporting comment correctly states that tnode is incomplete at this point, but the pointer pt is in fact complete. The use of a pointer to an incomplete type is allowed.
Posted by and on behalf of the MISRA C Working Group