aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rpprat/synerr.r
diff options
context:
space:
mode:
Diffstat (limited to 'unix/boot/spp/rpp/rpprat/synerr.r')
-rw-r--r--unix/boot/spp/rpp/rpprat/synerr.r37
1 files changed, 37 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/rpprat/synerr.r b/unix/boot/spp/rpp/rpprat/synerr.r
new file mode 100644
index 00000000..80bee91b
--- /dev/null
+++ b/unix/boot/spp/rpp/rpprat/synerr.r
@@ -0,0 +1,37 @@
+#-h- synerr 703 local 12/01/80 15:55:08
+# synerr --- report non-fatal error
+ include defs
+
+ subroutine synerr (msg)
+
+ character msg
+# character*(*) msg
+
+ include COMMON_BLOCKS
+ character lc (MAXCHARS)
+
+ integer i, junk
+ integer itoc
+
+ string of " of "
+ string errmsg "Error on line "
+
+ call putlin (errmsg, ERROUT)
+ if (level >= 1)
+ i = level
+ else
+ i = 1 # for EOF errors
+ junk = itoc (linect (i), lc, MAXCHARS)
+ call putlin (lc, ERROUT)
+ for (i = fnamp - 1; i >= 1; i = i - 1)
+ if (fnames (i - 1) == EOS | i == 1) { # print file name
+ call putlin (of, ERROUT)
+ call putlin (fnames (i), ERROUT)
+ break
+ }
+
+ call putch (COLON, ERROUT)
+ call putch (BLANK, ERROUT)
+ call remark (msg)
+ return
+ end