quakeforge/tools/qfcc/test/offset.r

20 lines
308 B
R
Raw Normal View History

2011-03-09 11:34:23 +00:00
struct foobar_s {
float a;
struct foobar_s *b[2];
float c;
};
typedef struct foobar_s foobar_t;
2011-03-09 11:34:23 +00:00
typedef foobar_t *foobar_p;
2011-03-09 11:34:23 +00:00
void (foobar_p foo, vector x, integer y, foobar_t z) bar =
{
foo.a = x.z;
foo.b[1] = (foobar_p)(integer)x.y;
2011-03-09 11:34:23 +00:00
z.a = x_z;
z.c = x.x;
x.y = z.c;
x_x = 0;
x_y = 0;
x.z = 0;
};