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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_files/sci_PROTO12.g

  • 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 [tree]=sci_MFUN(tree)
 
2
// Copyright INRIA
 
3
// M2SCI function
 
4
// Conversion function for Matlab MFUN()
 
5
// Input: tree = Matlab funcall tree
 
6
// Ouput: tree = Scilab equivalent for tree
 
7
// V.C.
 
8
 
 
9
k=1
 
10
while k<=size(tree.rhs)
 
11
  if tree.rhs(k).value=="" then
 
12
    tree.rhs(k)=null()
 
13
  end
 
14
  k=k+1
 
15
end
 
16
 
 
17
if size(tree.rhs)==0 then
 
18
  // Nothing to do
 
19
else
 
20
  select tree.rhs(1).value
 
21
  case "global" then
 
22
    // Nothing to do
 
23
  case "-file" then
 
24
    no_equiv(expression2code(tree))
 
25
  else
 
26
    no_equiv(expression2code(tree))
 
27
  end
 
28
end
 
29
 
 
30
endfunction