diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-01-27 23:51:56 +0000 |
commit | 6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1 (patch) | |
tree | 926065cf45450116098db664e3c61dced9e1f21a /ipl/procs/version.icn | |
download | icon-6ab0c0f5bf14ed9c15370407b9ee7e0b4b089ae1.tar.gz |
Initial upstream version 9.4.3upstream/9.4.3
Diffstat (limited to 'ipl/procs/version.icn')
-rw-r--r-- | ipl/procs/version.icn | 30 |
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 |