From 38195a70192301e7df5b69bf2266a04a0b90a532 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 9 Jan 2018 16:14:18 +0100 Subject: Update report, add authorship to C files Signed-off-by: pacien --- src/common/error.c | 7 +++++++ src/common/geom.c | 7 +++++++ src/common/mem.c | 7 +++++++ 3 files changed, 21 insertions(+) (limited to 'src/common') 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 @@ #include #include +/** + * File: error.c + * + * Author: + * Pacien TRAN-GIRARD + */ + void rage_quit(const char *msg) { fprintf(stderr, "FATAL ERROR: %s\n", msg); 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 @@ #include #include "morpher/matrix.h" +/** + * File: geom.c + * + * Author: + * Pacien TRAN-GIRARD + */ + static inline IntVector int_round(RealVector x) { return (IntVector) round(x); } 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 @@ #include #include "common/error.h" +/** + * File: error.c + * + * Author: + * Pacien TRAN-GIRARD + */ + void *malloc_or_die(size_t size) { void *ptr = malloc(size); -- cgit v1.2.3