Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dir 4.8 if struct is only visible through a function declaration
#1
Hi there,
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. */
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?
<t></t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)