aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rpprat/lndict.r
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /unix/boot/spp/rpp/rpprat/lndict.r
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'unix/boot/spp/rpp/rpprat/lndict.r')
-rw-r--r--unix/boot/spp/rpp/rpprat/lndict.r30
1 files changed, 30 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/rpprat/lndict.r b/unix/boot/spp/rpp/rpprat/lndict.r
new file mode 100644
index 00000000..42cf8d6a
--- /dev/null
+++ b/unix/boot/spp/rpp/rpprat/lndict.r
@@ -0,0 +1,30 @@
+#-h- lndict 678 local 12/01/80 15:54:13
+# lndict - output long-name dictionary as a debugging aid
+ include defs
+
+subroutine lndict
+
+character sym (MAXTOK), c
+ifdef (UPPERC, character cupper)
+integer sctabl, length
+pointer posn, locn
+include COMMON_BLOCKS
+
+ posn = 0
+ while (sctabl (namtbl, sym, locn, posn) != EOF)
+ if (length(sym) > MAXIDLENGTH) {
+ ifdef (UPPERC, call outch (BIGC))
+ ifnotdef (UPPERC, call outch (LETC))
+ call outtab
+ for (; mem (locn) != EOS; locn = locn + 1) {
+ c = mem (locn) # kluge for people with LOGICAL*1 characters
+ ifdef (UPPERC, c = cupper (c))
+ call outch (c)
+ }
+ call outch (BLANK)
+ call outch (BLANK)
+ call outstr (sym)
+ call outdon
+ }
+ return
+end