#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
+#include "builddate.h"
//windows.h for win machines
#if defined(_WIN32) && !defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN 1
static void usage(int v)
{
- printf(useString);
+ fputs(useString, stdout);
exit(v);
}
+static char *Info[] = {
+ "smyrna", /* Program */
+ VERSION, /* Version */
+ BUILDDATE /* Build Date */
+};
+
static char *parseArgs(int argc, char *argv[], ViewInfo * view)
{
unsigned int c;
- while ((c = getopt(argc, argv, ":eKf:txv?")) != -1) {
+ while ((c = getopt(argc, argv, ":eKf:txvV?")) != -1) {
switch (c) {
case 'e':
view->drawSplines = 1;
view->optArg=strdup(optarg);
break;
+ case 'V':
+ fprintf(stderr, "%s version %s (%s)\n",
+ Info[0], Info[1], Info[2]);
+ exit (0);
+ break;
case '?':
if (optopt == '?')
usage(0);
<widget class="GtkWindow" id="frmMain">
<property name="width_request">900</property>
<property name="height_request">700</property>
- <property name="title" translatable="yes">Smyrna Graph visualizer ver: 1.0 ATT</property>
+ <property name="title" translatable="yes">Smyrna Graph Visualizer ver: 2.0 ATT (17 June 2013)</property>
<property name="type">GTK_WINDOW_TOPLEVEL</property>
<property name="window_position">GTK_WIN_POS_CENTER</property>
<property name="modal">False</property>