From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- pkg/utilities/nttools/tunits/tuniterr.x | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkg/utilities/nttools/tunits/tuniterr.x (limited to 'pkg/utilities/nttools/tunits/tuniterr.x') diff --git a/pkg/utilities/nttools/tunits/tuniterr.x b/pkg/utilities/nttools/tunits/tuniterr.x new file mode 100644 index 00000000..25a750c5 --- /dev/null +++ b/pkg/utilities/nttools/tunits/tuniterr.x @@ -0,0 +1,24 @@ +#* HISTORY * +#* B.Simon 07-Jan-99 Original + +# TUNITERR -- Print error message for tunits + +procedure tuniterr (errstr, errval) + +char errstr[ARB] # i: error message string +char errval[ARB] # i: value which caused error +#-- +pointer sp, errmsg + +begin + call smark (sp) + call salloc (errmsg, SZ_LINE, TY_CHAR) + + call sprintf (Memc[errmsg], SZ_LINE, "%s (%s)") + call pargstr (errstr) + call pargstr (errval) + + call error (1, Memc[errmsg]) + + call sfree (sp) +end -- cgit