File: fbutn.f

package info (click to toggle)
scilab 2.2-4
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 31,472 kB
  • ctags: 21,963
  • sloc: fortran: 110,983; ansic: 89,717; makefile: 3,016; sh: 1,892; csh: 150; cpp: 101
file content (37 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
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
      subroutine fbutn(name,win,entry)
c!
c interface for buttons
c!
      include '../stack.h'
      integer win,entry
      character*(*) name
c
      integer halt
      common /coshlt/ halt

c
      integer it1
c
      nn=0
 10   nn=nn+1
      if(name(nn:nn).ne.char(0)) goto 10
      nn=nn-1
c+
      
      if(name(1:nn).eq.'halt_scicos') then
         halt=1
         return
      endif
c+
c     dynamic link
      call tlink(name,0,it1)
      if(it1.le.0) goto 2000
      call dyncall(it1-1,n,t,y,ydot) 
cc fin
      return
c
 2000 iero=1
      call  basout(io,wte,
     &     ' No action associated with this menu in fbutn')
      return
      end