* System includes
*/
#include "u_assert.h"
+#include "u_defs.h"
-#define LMUD_VER "0.0.1"
-
-/* args without value */
-#define LMUD_OPTS "hvV"
-
-/* args with value */
-#define LMUD_OPTS_ARG "c:"
-#define LMUD_HELP(a, desc) printf("\t-%s\t%s\n", (a), desc);
-
-/**
- * generic typedefs
- */
-
-typedef unsigned char lmud_bool;
-#define LMUD_TRUE 1
-#define LMUD_FALSE 0
-
-struct lmud_config {
- lmud_bool verbose;
-
- char **argv;
- int argc;
-};
-
-typedef unsigned char u8;
-typedef char i8;
-typedef unsigned short u16;
-typedef short i16;
-typedef unsigned int u32;
-typedef int i32;
-
-struct lmud_config* lmud_cfg();
-void lmud_help(int argc, char **argv);
-void lmud_version(void);
-void lmud_getopt(int argc, char **argv, struct lmud_config *cfg);
-int lmud_main(int argc, char **argv);
/**
--- /dev/null
+#ifndef U_DEFS_H__
+#define U_DEFS_H__
+
+/**
+ * This module contains global type defs and constants
+ *
+ */
+
+#define LMUD_VER "0.0.1"
+
+/* args without value */
+#define LMUD_OPTS "hvV"
+
+/* args with value */
+#define LMUD_OPTS_ARG "c:"
+#define LMUD_HELP(a, desc) printf("\t-%s\t%s\n", (a), desc);
+
+/**
+ * generic typedefs
+ */
+
+typedef unsigned char lmud_bool;
+#define LMUD_TRUE 1
+#define LMUD_FALSE 0
+
+struct lmud_config {
+ lmud_bool verbose;
+
+ char **argv;
+ int argc;
+};
+
+typedef unsigned char u8;
+typedef char i8;
+typedef unsigned short u16;
+typedef short i16;
+typedef unsigned int u32;
+typedef int i32;
+
+struct lmud_config* lmud_cfg();
+void lmud_help(int argc, char **argv);
+void lmud_version(void);
+void lmud_getopt(int argc, char **argv, struct lmud_config *cfg);
+int lmud_main(int argc, char **argv);
+
+#endif