summaryrefslogtreecommitdiff
path: root/ipl/procs/version.icn
diff options
context:
space:
mode:
Diffstat (limited to 'ipl/procs/version.icn')
-rw-r--r--ipl/procs/version.icn30
1 files changed, 30 insertions, 0 deletions
diff --git a/ipl/procs/version.icn b/ipl/procs/version.icn
new file mode 100644
index 0000000..9d75ed9
--- /dev/null
+++ b/ipl/procs/version.icn
@@ -0,0 +1,30 @@
+############################################################################
+#
+# File: version.icn
+#
+# Subject: Procedures to produce Icon version number
+#
+# Author: Ralph E. Griswold
+#
+# Date: September 2, 1991
+#
+############################################################################
+#
+# This file is in the public domain.
+#
+############################################################################
+#
+# This procedure produces the version number of Icon on which a
+# program is running. It only works if the &version is in the
+# standard form.
+#
+############################################################################
+
+procedure version()
+
+ &version ? {
+ tab(find("Version ") + 8) | fail
+ tab(many('0123456789.')) ? return tab(-1)
+ }
+
+end