diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/system/help/prmodname.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/system/help/prmodname.x')
-rw-r--r-- | pkg/system/help/prmodname.x | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkg/system/help/prmodname.x b/pkg/system/help/prmodname.x new file mode 100644 index 00000000..dbf2b939 --- /dev/null +++ b/pkg/system/help/prmodname.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "help.h" + +# PR_MODNAME -- Print the module name header "pakname.modname". Omit the +# package name if it begins with an underscore, unless there is no module +# name. + +procedure pr_modname (ctrl, pakname, modname) + +pointer ctrl # help control parameters +char pakname[ARB] # package name +char modname[ARB] # module name + +pointer sp, lbuf + +begin + call smark (sp) + call salloc (lbuf, SZ_LINE, TY_CHAR) + + if (pakname[1] != EOS || modname[1] != EOS) { + call houtput (ctrl, "\n") + if (pakname[1] == '_' && modname[1] != EOS) { + call sprintf (Memc[lbuf], SZ_LINE, "%s:\n") + call pargstr (modname) + } else { + call sprintf (Memc[lbuf], SZ_LINE, "%s.%s:\n") + call pargstr (pakname) + call pargstr (modname) + } + call houtput (ctrl, Memc[lbuf]) + } + + call sfree (sp) +end |