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 107 and 1765

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

Rev 107 Rev 1765
/*  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.