bzr branch
http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
|
27
by Gustav Hartvigsson
* added skeleton for the SBox type. |
1 |
#include "vec.h" |
2 |
||
3 |
Vec3 * vec3_new (int a, int b, int c) { |
|
4 |
Vec3 * self = malloc (sizeof (Vec3)); |
|
5 |
self->a = a; |
|
6 |
self->b = b; |
|
7 |
self->c = c; |
|
|
32
by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt |
8 |
return self; |
|
27
by Gustav Hartvigsson
* added skeleton for the SBox type. |
9 |
}
|
10 |
||
11 |
Vec3_16 * vec3_16_new (int16_t a, int16_t b, int16_t c) { |
|
|
32
by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt |
12 |
Vec3_16 * self = malloc (sizeof (Vec3_16)); |
|
27
by Gustav Hartvigsson
* added skeleton for the SBox type. |
13 |
self->a = a; |
14 |
self->b = b; |
|
15 |
self->c = c; |
|
|
32
by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt |
16 |
return self; |
|
27
by Gustav Hartvigsson
* added skeleton for the SBox type. |
17 |
}
|