aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rpprat/untils.r
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 /unix/boot/spp/rpp/rpprat/untils.r
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'unix/boot/spp/rpp/rpprat/untils.r')
-rw-r--r--unix/boot/spp/rpp/rpprat/untils.r26
1 files changed, 26 insertions, 0 deletions
diff --git a/unix/boot/spp/rpp/rpprat/untils.r b/unix/boot/spp/rpp/rpprat/untils.r
new file mode 100644
index 00000000..b784fab5
--- /dev/null
+++ b/unix/boot/spp/rpp/rpprat/untils.r
@@ -0,0 +1,26 @@
+#-h- untils 397 local 12/01/80 15:55:11
+# untils - generate code for until or end of repeat
+ include defs
+
+ subroutine untils (lab, token)
+ integer lab, token
+
+ include COMMON_BLOCKS
+
+ character ptoken (MAXTOK)
+
+ integer junk
+ integer lex
+
+ xfer = NO
+ call outnum (lab)
+ if (token == LEXUNTIL) {
+ junk = lex (ptoken)
+ call ifgo (lab - 1)
+ }
+ else
+ call outgo (lab - 1)
+ call indent (-1)
+ call outcon (lab + 1)
+ return
+ end