URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
extern void abort(void);
|
extern void abort(void);
|
typedef long GLint;
|
typedef long GLint;
|
void aglChoosePixelFormat (const GLint *);
|
void aglChoosePixelFormat (const GLint *);
|
|
|
void
|
void
|
find (const int *alistp)
|
find (const int *alistp)
|
{
|
{
|
const int *blist;
|
const int *blist;
|
int list[32];
|
int list[32];
|
if (alistp)
|
if (alistp)
|
blist = alistp;
|
blist = alistp;
|
else
|
else
|
{
|
{
|
list[3] = 42;
|
list[3] = 42;
|
blist = list;
|
blist = list;
|
}
|
}
|
aglChoosePixelFormat ((GLint *) blist);
|
aglChoosePixelFormat ((GLint *) blist);
|
}
|
}
|
|
|
void
|
void
|
aglChoosePixelFormat (const GLint * a)
|
aglChoosePixelFormat (const GLint * a)
|
{
|
{
|
int *b = (int *) a;
|
int *b = (int *) a;
|
if (b[3] != 42)
|
if (b[3] != 42)
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
find (0);
|
find (0);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.