1999-04-16 01:35:26 +00:00
|
|
|
/* Note that struct foo is opaque (never defined) in this file. This
|
|
|
|
is allowed by C since this file does not reference any members of
|
|
|
|
the structure. The debugger needs to be able to associate this
|
|
|
|
opaque structure definition with the full definition in another
|
|
|
|
file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct foo *foop;
|
|
|
|
extern struct foo *getfoo ();
|
1999-06-28 16:06:02 +00:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
extern void putfoo (struct foo *foop);
|
|
|
|
#endif
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
int main ()
|
|
|
|
{
|
|
|
|
#ifdef usestubs
|
|
|
|
set_debug_traps();
|
|
|
|
breakpoint();
|
|
|
|
#endif
|
|
|
|
foop = getfoo ();
|
|
|
|
putfoo (foop);
|
|
|
|
return 0;
|
|
|
|
}
|