aboutsummaryrefslogtreecommitdiff
path: root/unix/boot/spp/rpp/rppfor/ratfor.f
blob: 7891bd683c4b77f2e69cd1db8c1cfd91d96fbba2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
subroutine ratfor
      common /cdefio/ bp, buf (4096)
      integer bp
      integer buf
      common /cfname/ fcname (30)
      integer fcname
      common /cfor/ fordep, forstk (200)
      integer fordep
      integer forstk
      common /cgoto/ xfer
      integer xfer
      common /clabel/ label, retlab, memflg, col, logic0
      integer label
      integer retlab
      integer memflg
      integer col
      integer logic0
      common /cline/ dbgout, dbglev, level, linect (5), infile (5), fnam
     *p, fnames ( 150)
      integer dbgout
      integer dbglev
      integer level
      integer linect
      integer infile
      integer fnamp
      integer fnames
      common /cmacro/ cp, ep, evalst (500), deftbl
      integer cp
      integer ep
      integer evalst
      integer deftbl
      common /coutln/ outp, outbuf (74)
      integer outp
      integer outbuf
      common /csbuf/ sbp, sbuf(2048), smem(240)
      integer sbp
      integer sbuf
      integer smem
      common /cswtch/ swtop, swlast, swstak(1000), swvnum, swvlev, swvst
     *k(10), swinrg
      integer swtop
      integer swlast
      integer swstak
      integer swvnum
      integer swvlev
      integer swvstk
      integer swinrg
      common /ckword/ rkwtbl
      integer rkwtbl
      common /clname/ fkwtbl, namtbl, gentbl, errtbl, xpptbl
      integer fkwtbl
      integer namtbl
      integer gentbl
      integer errtbl
      integer xpptbl
      common /erchek/ ername, body, esp, errstk(30)
      integer ername
      integer body
      integer esp
      integer errstk
      integer mem( 60000)
      common/cdsmem/mem
      integer i, n
      integer getarg, rfopen
      integer arg (30)
      integer defns(1)
      data defns(1)/-2/
      call initkw
      if (.not.(defns (1) .ne. -2))goto 23000
      infile (1) = rfopen(defns, 1)
      if (.not.(infile (1) .eq. -3))goto 23002
      call remark (37Hcan't open standard definitions file.)
      goto 23003
23002 continue
      call finit
      call parse
      call rfclos(infile (1))
23003 continue
23000 continue
      n = 1
      i=1
23004 if (.not.(getarg(i,arg,30) .ne. -1))goto 23006
      n = n + 1
      call query (37Husage:  ratfor [-g] [files] >outfile.)
      if (.not.(arg(1) .eq. 45 .and. arg(2) .eq. 103 .and. arg(3) .eq. -
     *2))goto 23007
      dbgout = 1
      goto 23005
23007 continue
      if (.not.(arg(1) .eq. 45 .and. arg(2) .eq. -2))goto 23009
      infile(1) = 0
      call finit
      goto 23010
23009 continue
      infile(1) = rfopen(arg, 1)
      if (.not.(infile(1) .eq. -3))goto 23011
      call cant (arg)
      goto 23012
23011 continue
      call finit
      call scopy (arg, 1, fnames, 1)
      fnamp=1
23013 if (.not.(fnames(fnamp) .ne. -2))goto 23015
      if (.not.(fnames(fnamp) .eq. 46 .and. fnames(fnamp+1) .eq. 114))go
     *to 23016
      fnames(fnamp+1) = 120
23016 continue
23014 fnamp=fnamp+1
      goto 23013
23015 continue
23012 continue
23010 continue
23008 continue
      call parse
      if (.not.(infile (1) .ne. 0))goto 23018
      call rfclos(infile (1))
23018 continue
23005 i=i+1
      goto 23004
23006 continue
      if (.not.(n .eq. 1))goto 23020
      infile (1) = 0
      call finit
      call parse
23020 continue
      call lndict
      end
c     logic0  logical_column