a better version of a copyb lowerer
[libfirm] / include / libfirm / firm.h
index 1ae2fd7..194b853 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -187,14 +187,23 @@ struct _firm_parameter_t {
 
 typedef struct _firm_parameter_t firm_parameter_t;
 
+/* Set a version number if it has not been set in environment */
+#ifndef libfirm_VERSION_MAJOR
+#define libfirm_VERSION_MAJOR 1
+#endif
+
+#ifndef libfirm_VERSION_MINOR
+#define libfirm_VERSION_MINOR 4
+#endif
+
 /**
  * The Firm version number.
  */
 typedef struct _firm_version_t {
   unsigned major;
   unsigned minor;
-  unsigned micro;
-  unsigned build;
+  const char *revision;
+  const char *build;
 } firm_version_t;
 
 /**
@@ -221,12 +230,10 @@ void free_firm(void);
  */
 void firm_get_version(firm_version_t *version);
 
-#ifdef WITH_LIBCORE
 /**
  * Read initializations arguments from the .init file.
  */
 void firm_init_options(const char *arg_prefix, int argc, const char **argv);
-#endif
 
 #ifdef __cplusplus
 }