summaryrefslogtreecommitdiff
path: root/im/src/im_lib.cpp
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-04 11:56:41 -0800
committerPixel <pixel@nobis-crew.org>2009-11-04 11:59:33 -0800
commitd577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch)
tree590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /im/src/im_lib.cpp
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'im/src/im_lib.cpp')
-rwxr-xr-xim/src/im_lib.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/im/src/im_lib.cpp b/im/src/im_lib.cpp
new file mode 100755
index 0000000..05a71d8
--- /dev/null
+++ b/im/src/im_lib.cpp
@@ -0,0 +1,38 @@
+/** \file
+ * \brief Library Management
+ *
+ * See Copyright Notice in im_lib.h
+ * $Id: im_lib.cpp,v 1.5 2009/10/01 14:43:42 scuri Exp $
+ */
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "im_lib.h"
+
+/* This appears only here to avoid changing the im_lib.h header for bug fixes */
+#define IM_VERSION_FIX ""
+#define IM_VERSION_FIX_NUMBER 0
+
+static char *iVersion = "TECVERID.str:IM:LIB:" IM_VERSION IM_VERSION_FIX;
+
+const char iIdent[] =
+ "$IM: " IM_VERSION IM_VERSION_FIX " " IM_COPYRIGHT " $\n"
+ "$URL: www.tecgraf.puc-rio.br/im $\n";
+
+const char* imVersion(void)
+{
+ (void)iVersion;
+ (void)iIdent;
+ return IM_VERSION IM_VERSION_FIX;
+}
+
+const char* imVersionDate(void)
+{
+ return IM_VERSION_DATE;
+}
+
+int imVersionNumber(void)
+{
+ return IM_VERSION_NUMBER+IM_VERSION_FIX_NUMBER;
+}