aboutsummaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-11-26 05:55:44 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-11-26 05:55:44 +0000
commit3cc80a553011ea9fba55a72581d46a6dbd31f485 (patch)
tree7351ce27ea833efcee5cf4bb96aea7977f216d91 /version.c
parent1f8a4f68ebe51c7f05133f93931d5273adacbe93 (diff)
added compilation date and time to the output list
svn path=/trunk/externals/hcs/; revision=6431
Diffstat (limited to 'version.c')
-rw-r--r--version.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/version.c b/version.c
index 6487c49..fddbf37 100644
--- a/version.c
+++ b/version.c
@@ -27,7 +27,7 @@
#include <m_pd.h>
-static char *version = "$Revision: 1.1 $";
+static char *version = "$Revision: 1.2 $";
t_int version_instance_count;
@@ -51,13 +51,15 @@ static void version_output(t_version* x)
{
DEBUG(post("version_output"););
- t_atom version_data[4];
+ t_atom version_data[6];
SETFLOAT(version_data, (float) PD_MAJOR_VERSION);
SETFLOAT(version_data + 1, (float) PD_MINOR_VERSION);
SETFLOAT(version_data + 2, (float) PD_BUGFIX_VERSION);
SETSYMBOL(version_data + 3, gensym(PD_TEST_VERSION));
+ SETSYMBOL(version_data + 4, gensym(__DATE__));
+ SETSYMBOL(version_data + 5, gensym(__TIME__));
- outlet_list(x->x_obj.ob_outlet, &s_list, 4, version_data);
+ outlet_list(x->x_obj.ob_outlet, &s_list, 6, version_data);
}
@@ -90,5 +92,4 @@ void version_setup(void)
0);
/* add inlet datatype methods */
class_addbang(version_class,(t_method) version_output);
-
}