~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/system/mklist.f

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
       subroutine mklist(n)
 
2
c     form the list built with last n variables stored in top-n+1:top
 
3
c      positions of the stack
 
4
c!
 
5
c     Copyright INRIA
 
6
      call mklistt(n,15)
 
7
      return
 
8
      end
 
9
      subroutine mktlist(n)
 
10
c     form the list built with last n variables stored in top-n+1:top
 
11
c      positions of the stack
 
12
c!
 
13
c     Copyright INRIA
 
14
      call mklistt(n,16)
 
15
      return
 
16
      end
 
17
      subroutine mkmlist(n)
 
18
c     form the list built with last n variables stored in top-n+1:top
 
19
c      positions of the stack
 
20
c!
 
21
c     Copyright INRIA
 
22
      call mklistt(n,17)
 
23
      return
 
24
      end
 
25
 
 
26
      subroutine mklistt(n,typ)
 
27
c     form the list built with last n variables stored in top-n+1:top
 
28
c      positions of the stack
 
29
c!
 
30
c     Copyright INRIA
 
31
      include '../stack.h'
 
32
      integer n,typ,srhs,slhs,sfin
 
33
c
 
34
      srhs=rhs
 
35
      slhs=lhs
 
36
      sfin=fin
 
37
c
 
38
      rhs=n
 
39
      if(typ.eq.15) then
 
40
         fin=1
 
41
      elseif(typ.eq.16) then
 
42
         fin=2
 
43
      elseif(typ.eq.17) then
 
44
         fin=7
 
45
      endif
 
46
 
 
47
      lhs=1
 
48
c      call ref2val
 
49
      call lstelm
 
50
      rhs=srhs
 
51
      lhs=slhs
 
52
      fin=sfin
 
53
      return
 
54
      end