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

« back to all changes in this revision

Viewing changes to macros/scicos/Paleditor_.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
1
function Paleditor_()
2
2
    Cmenu='Open/Set'
3
 
//    load('.scicos_pal')
4
 
 
5
3
    scicos_palnew=do_edit_pal(scicos_pal)
6
 
    if scicos_palnew<>[] & scicos_palnew<>scicos_pal then 
 
4
    if scicos_palnew<>[] & or(scicos_palnew<>scicos_pal) then 
7
5
      scicos_pal=scicos_palnew
8
 
      errcatch(-1,'continue')
9
 
      save('.scicos_pal',scicos_pal)
10
 
      errcatch(-1)
11
 
      if iserror(-1) then
12
 
        errclear(-1)
 
6
      if execstr('save(''.scicos_pal'',scicos_pal)','errcatch')<>0 then
13
7
        message('Cannot save .scicos_pal in current directory')
14
8
      end
15
9
    end
16
 
    
 
10
endfunction