]> git.donarmstrong.com Git - biopieces.git/blob - code_c/Maasha/src/inc/common.h
removed debug message
[biopieces.git] / code_c / Maasha / src / inc / common.h
1 /* Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved */
2
3 /* Including standard libraries */
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <stdarg.h>
7 #include <string.h>
8 #include <unistd.h>
9 #include <ctype.h>
10 #include <math.h>
11 #include <assert.h>
12 #include <errno.h>
13 #include <getopt.h>
14
15 typedef unsigned int uint;
16 typedef unsigned char uchar;
17 typedef unsigned short ushort;
18 typedef long long llong;
19 typedef char boolean;
20
21 #ifndef bool
22 #define bool boolean
23 #endif
24
25 #ifndef TRUE
26 #define TRUE 1
27 #endif
28
29 #ifndef FALSE
30 #define FALSE 0
31 #endif
32
33 /* Macros for determining min or max of two given values. */
34 #define MAX( a, b ) a < b ? b : a
35 #define MIN( a, b ) a > b ? b : a
36
37 /* Macros for abs and int functions. */
38 #define ABS( x ) ( ( x ) < 0 ) ? -( x ) : ( x )
39 #define INT( x ) ( int ) x
40
41 /* Neat debug macro. */
42 #define DEBUG_EXIT 0
43
44 #ifndef die
45 #define die assert( DEBUG_EXIT )
46 #endif
47
48
49 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
50
51
52 /* Function that prints "pong" to stderr. */
53 void maasha_ping();
54
55 // /* Return a binary number as a string of 1's and 0's. */
56 // char *bits2string( uint bin );
57
58
59 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
60
61