OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [testsuite/] [gdb.base/] [opaque0.c] - Diff between revs 106 and 107

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 106 Rev 107
/*  Note that struct foo is opaque (never defined) in this file.  This
/*  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
    is allowed by C since this file does not reference any members of
    the structure.  The debugger needs to be able to associate this
    the structure.  The debugger needs to be able to associate this
    opaque structure definition with the full definition in another
    opaque structure definition with the full definition in another
    file.
    file.
*/
*/
 
 
struct foo *foop;
struct foo *foop;
extern struct foo *getfoo ();
extern struct foo *getfoo ();
#ifdef PROTOTYPES
#ifdef PROTOTYPES
extern void putfoo (struct foo *foop);
extern void putfoo (struct foo *foop);
#endif
#endif
 
 
int main ()
int main ()
{
{
#ifdef usestubs
#ifdef usestubs
    set_debug_traps();
    set_debug_traps();
    breakpoint();
    breakpoint();
#endif
#endif
    foop = getfoo ();
    foop = getfoo ();
    putfoo (foop);
    putfoo (foop);
    return 0;
    return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.