aboutsummaryrefslogtreecommitdiff
path: root/pkg/vocl/vocl.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/vocl/vocl.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/vocl/vocl.x')
-rw-r--r--pkg/vocl/vocl.x32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkg/vocl/vocl.x b/pkg/vocl/vocl.x
new file mode 100644
index 00000000..531a9602
--- /dev/null
+++ b/pkg/vocl/vocl.x
@@ -0,0 +1,32 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+task vocl = t_vocl
+
+procedure t_vocl ()
+begin
+end
+
+
+# CL -- The main entry point of the CL. Unlike most IRAF tasks, the CL task
+# occupies a process all by itself and takes control immediately when the task
+# is executed; the in-task interpreter never runs. The ONENTRY procedure is
+# used to achieve this. ONENTRY gains control from the IRAF main at process
+# startup, before the in task interpreter is entered. The t_cl procedure is
+# not called by the interpreter as the TASK statement suggests. The purpose
+# of the task statement is to give us an IRAF main.
+
+int procedure onentry (prtype, bkgfile, cmd)
+
+int prtype # process type flag (not used)
+char bkgfile[ARB] # bkgfilename if detached process (not used)
+char cmd[ARB] # optional host command line
+
+char pk_bkgfile[SZ_PATHNAME]
+char pk_cmd[SZ_COMMAND]
+int c_main()
+
+begin
+ call strpak (bkgfile, pk_bkgfile, SZ_PATHNAME)
+ call strpak (cmd, pk_cmd, SZ_COMMAND)
+ return (c_main (prtype, pk_bkgfile, pk_cmd))
+end