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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr34138.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
extern void free (void *__ptr);
2
struct shparam
3
{
4
  char **p;
5
  int foo;
6
};
7
static struct shparam shellparam;
8
inline void freeparam (volatile struct shparam *param, char **ap)
9
{
10
  free ((void *) (*ap));
11
  free ((void *) (param->p));
12
}
13
void dotcmd (char **p)
14
{
15
  freeparam (&shellparam, p);
16
}
17
void evaltree (void)
18
{
19
  void (*evalfn) (char **);
20
  evalfn = dotcmd;
21
}

powered by: WebSVN 2.1.0

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