summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/error.c7
-rw-r--r--src/common/geom.c7
-rw-r--r--src/common/mem.c7
3 files changed, 21 insertions, 0 deletions
diff --git a/src/common/error.c b/src/common/error.c
index f28a6cd..02ce788 100644
--- a/src/common/error.c
+++ b/src/common/error.c
@@ -2,6 +2,13 @@
2#include <stdlib.h> 2#include <stdlib.h>
3#include <stdio.h> 3#include <stdio.h>
4 4
5/**
6 * File: error.c
7 *
8 * Author:
9 * Pacien TRAN-GIRARD
10 */
11
5void rage_quit(const char *msg) { 12void rage_quit(const char *msg) {
6 fprintf(stderr, "FATAL ERROR: %s\n", msg); 13 fprintf(stderr, "FATAL ERROR: %s\n", msg);
7 exit(1); 14 exit(1);
diff --git a/src/common/geom.c b/src/common/geom.c
index f903fe8..65c0f4c 100644
--- a/src/common/geom.c
+++ b/src/common/geom.c
@@ -2,6 +2,13 @@
2#include <math.h> 2#include <math.h>
3#include "morpher/matrix.h" 3#include "morpher/matrix.h"
4 4
5/**
6 * File: geom.c
7 *
8 * Author:
9 * Pacien TRAN-GIRARD
10 */
11
5static inline IntVector int_round(RealVector x) { 12static inline IntVector int_round(RealVector x) {
6 return (IntVector) round(x); 13 return (IntVector) round(x);
7} 14}
diff --git a/src/common/mem.c b/src/common/mem.c
index 855e010..02bd8c5 100644
--- a/src/common/mem.c
+++ b/src/common/mem.c
@@ -2,6 +2,13 @@
2#include <stdlib.h> 2#include <stdlib.h>
3#include "common/error.h" 3#include "common/error.h"
4 4
5/**
6 * File: error.c
7 *
8 * Author:
9 * Pacien TRAN-GIRARD
10 */
11
5void *malloc_or_die(size_t size) { 12void *malloc_or_die(size_t size) {
6 void *ptr = malloc(size); 13 void *ptr = malloc(size);
7 14