]> git.donarmstrong.com Git - biopieces.git/blobdiff - code_c/Maasha/src/inc/common.h
minor updates
[biopieces.git] / code_c / Maasha / src / inc / common.h
index e62a08b95209a6a95f9faa008ebb5587307cb551..4d33bf7f94665b6527ba36295a9a081fa4c751f4 100644 (file)
@@ -1,3 +1,5 @@
+/* Martin Asser Hansen (mail@maasha.dk) Copyright (C) 2008 - All right reserved */
+
 /* Including standard libraries */
 #include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
 #include <assert.h>
 #include <errno.h>
+#include <getopt.h>
+
+typedef unsigned char uchar;
+typedef unsigned short ushort;
+typedef long long llong;
+typedef char boolean;
 
-typedef char bool;
+#ifndef bool
+#define bool boolean
+#endif
 
+#ifndef TRUE
 #define TRUE 1
+#endif
+
+#ifndef FALSE
 #define FALSE 0
+#endif
 
 /* Macros for determining min or max of two given values. */
 #define MAX( a, b ) a < b ? b : a
@@ -24,19 +39,18 @@ typedef char bool;
 
 /* Neat debug macro. */
 #define DEBUG_EXIT 0
-#define die assert( DEBUG_EXIT )
-
 
-/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ARRAYS <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
-
-
-/* Binary search an array of integers for an integer value. */
-bool binary_search_array( int *array, int array_size, int val );
+#ifndef die
+#define die assert( DEBUG_EXIT )
+#endif
 
 
 /* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> MISC <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/
 
 
+/* Function that prints "pong" to stderr. */
+void maasha_ping();
+
 /* Return a binary number as a string of 1's and 0's. */
 char *bits2string( uint bin );