URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
struct parsefile
|
struct parsefile
|
{
|
{
|
long fd;
|
long fd;
|
char *buf;
|
char *buf;
|
};
|
};
|
struct parsefile basepf;
|
struct parsefile basepf;
|
struct parsefile *parsefile = &basepf;
|
struct parsefile *parsefile = &basepf;
|
#ifdef STACK_SIZE
|
#ifdef STACK_SIZE
|
int filler[STACK_SIZE / (2*sizeof(int))];
|
int filler[STACK_SIZE / (2*sizeof(int))];
|
#else
|
#else
|
int filler[0x3000];
|
int filler[0x3000];
|
#endif
|
#endif
|
int el;
|
int el;
|
|
|
char *
|
char *
|
g1 (a, b)
|
g1 (a, b)
|
int a;
|
int a;
|
int *b;
|
int *b;
|
{
|
{
|
}
|
}
|
|
|
g2 (a)
|
g2 (a)
|
long a;
|
long a;
|
{
|
{
|
if (a != 0xdeadbeefL)
|
if (a != 0xdeadbeefL)
|
abort ();
|
abort ();
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
f ()
|
f ()
|
{
|
{
|
register char *p, *q;
|
register char *p, *q;
|
register int i;
|
register int i;
|
register int something;
|
register int something;
|
|
|
if (parsefile->fd == 0L && el)
|
if (parsefile->fd == 0L && el)
|
{
|
{
|
const char *rl_cp;
|
const char *rl_cp;
|
int len;
|
int len;
|
rl_cp = g1 (el, &len);
|
rl_cp = g1 (el, &len);
|
strcpy (p, rl_cp);
|
strcpy (p, rl_cp);
|
}
|
}
|
else
|
else
|
{
|
{
|
alabel:
|
alabel:
|
i = g2 (parsefile->fd);
|
i = g2 (parsefile->fd);
|
}
|
}
|
}
|
}
|
|
|
main ()
|
main ()
|
{
|
{
|
el = 0;
|
el = 0;
|
parsefile->fd = 0xdeadbeefL;
|
parsefile->fd = 0xdeadbeefL;
|
f ();
|
f ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.