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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr40080.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
extern void *ff(void*,int);
2
 
3
struct lpgl { struct lpgl *next; };
4
struct lpgd { struct lpgl *first; };
5
 
6
typedef int (*xfn)( );
7
static void xDP_IF_EnumGroupsInGroup ( void *a, int b, xfn fn)
8
{
9
  struct lpgd *lpGData;
10
  struct lpgl *lpGList;
11
 
12
  if( ( lpGData = ff( a, b ) ) == ((void *)0) )
13
    return;
14
 
15
  if( lpGData->first  == ((void *)0) )
16
    return;
17
  lpGList = lpGData->first;
18
 
19
  for( ;; ) {
20
    if( !(*fn)( ) )
21
      return;
22
    if( lpGList->next == ((void *)0) )
23
      break;
24
    lpGList = lpGList->next;
25
  }
26
  return;
27
}
28
 
29
 
30
static int
31
xcbDeletePlayerFromAllGroups() {
32
  xDP_IF_EnumGroupsInGroup(0, 0, 0);
33
  return 1;
34
}
35
 
36
void xDP_IF_EnumGroups( xfn fn) {
37
  xDP_IF_EnumGroupsInGroup( 0, 0, fn);
38
}
39
 
40
static void xDP_IF_DestroyPlayer () {
41
  xDP_IF_EnumGroups( xcbDeletePlayerFromAllGroups);
42
}
43
 
44
void* foo=xDP_IF_DestroyPlayer;

powered by: WebSVN 2.1.0

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