/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/vec.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-07-12 19:04:18 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150712190418-yi9rfito5ovnf6dy
* Made the code more easy to read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#include "vec.h"
2
2
 
3
 
Vec3 * vec3_new (int a, int b, int c) {
 
3
Vec3 *
 
4
vec3_new (int a, int b, int c) {
4
5
  Vec3 * self = malloc (sizeof (Vec3));
5
6
  self->a = a;
6
7
  self->b = b;
8
9
  return self;
9
10
}
10
11
 
11
 
Vec3_16 * vec3_16_new (int16_t a, int16_t b, int16_t c) {
 
12
Vec3_16 *
 
13
vec3_16_new (int16_t a, int16_t b, int16_t c) {
12
14
  Vec3_16 * self = malloc (sizeof (Vec3_16));
13
15
  self->a = a;
14
16
  self->b = b;