29-08-2018, 12:22 PM
Hi there,
I humbly ask for help with compliance to Dir 4.8.
(Borrowing from cxlin, thx)
Given a structure SomeType which implementation is visible to no-use.c.
A pointer to SomeType is only visible through the included other.h where the usetype function is declared.
Is the implementation of no-use.c compliant with Dir 4.8 or not?
I humbly ask for help with compliance to Dir 4.8.
(Borrowing from cxlin, thx)
Code:
/* def.h */
struct SomeType
{
/* Object implementation */
}
/* other.h */
extern void usetype(someType* p);
/* no-use.c */
#include def.h
#include other.h
/* Do something. But no use of SomeType at all. */
A pointer to SomeType is only visible through the included other.h where the usetype function is declared.
Is the implementation of no-use.c compliant with Dir 4.8 or not?
<t></t>