~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_close.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function [stk,txt,top]=sci_close()
2
 
// Copyright INRIA
3
 
if rhs<=0 then
4
 
  stk=list('xdel()','0','0','0','1')
5
 
elseif rhs==1 then
6
 
  if convstr(stk(top)(1))=='''all''' then
7
 
    txt='for %w=winsid(),xdel(%w);end'
8
 
    stk=list(' ','-2','0','0','1')
9
 
  elseif stk(top)(5)=='1' then
10
 
    stk=list('xdel('+stk(top)(1)+')','0','0','0','1')
11
 
  else
12
 
    set_infos(['Not enough information on '+stk(top)(1);
13
 
               'using mtlb_close insted of xdel'],1)
14
 
    stk=list('mtlb_close('+stk(top)(1)+')','0','0','0','1')
15
 
  end
16
 
else
17
 
  txt='for %w=winsid(),xdel(%w);end'
18
 
  stk=list(' ','-2','0','0','1')
19
 
end
20
 
 
21