From 6d064658f8ae7ca0f42fef6dcc7f896144e9637b Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 18 Oct 2013 15:48:59 +0200 Subject: restart using git --- include/globals.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/globals.h (limited to 'include/globals.h') diff --git a/include/globals.h b/include/globals.h new file mode 100644 index 0000000..8420f76 --- /dev/null +++ b/include/globals.h @@ -0,0 +1,20 @@ +#ifndef GLOBALS_H +#define GLOBALS_H + +#include +#include +#include + +#define MAX_LINE_LENGTH 1024 + +#define Calloc(type, n) (type *)calloc((n), sizeof(type)) +#define Malloc(type, n) (type *)malloc((n)*sizeof(type)) +#define Memset(var, type, n) memset(var, 0, (n)*sizeof(type)) + +#ifndef MIN_MAX_DEFINE +#define MIN_MAX_DEFINE +#define maximum(a, b) (a) > (b) ? (a) : (b) +#define minimum(a, b) (a) < (b) ? (a) : (b) +#endif + +#endif -- cgit v1.2.3