Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'utils/version.c')
-rw-r--r--utils/version.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/utils/version.c b/utils/version.c
new file mode 100644
index 00000000..edc4da99
--- /dev/null
+++ b/utils/version.c
@@ -0,0 +1,23 @@
+/*
+ * PuTTY version numbering
+ */
+
+/*
+ * The difficult part of deciding what goes in these version strings
+ * is done in Buildscr, and then written into version.h. All we have
+ * to do here is to drop it into variables of the right names.
+ */
+
+#include "putty.h"
+#include "ssh.h"
+
+#include "version.h"
+
+const char ver[] = TEXTVER;
+const char sshver[] = SSHVER;
+
+/*
+ * SSH local version string MUST be under 40 characters. Here's a
+ * compile time assertion to verify this.
+ */
+enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };