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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_files/sci_fscanf.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 [tree]=sci_fscanf(tree)
 
2
// Copyright INRIA
 
3
// M2SCI function
 
4
// Conversion function for Matlab fscanf()
 
5
// Input: tree = Matlab funcall tree
 
6
// Ouput: tree = Scilab equivalent for tree
 
7
// Emulation function: mtlb_fscanf()
 
8
// V.C.
 
9
 
 
10
RHS=[]
 
11
 
 
12
set_infos(["No simple equivalent, so mtlb_fscanf() is called"],0);
 
13
 
 
14
tree.name="mtlb_fscanf"
 
15
 
 
16
if lhs==1 then
 
17
  tree.lhs(1).dims=list(1,1)
 
18
  tree.lhs(1).type=Type(Double,Real)
 
19
else
 
20
  tree.lhs(1).dims=list(Unknown,Unknown)
 
21
  tree.lhs(1).type=Type(Double,Real)
 
22
  tree.lhs(2).dims=list(1,1)
 
23
  tree.lhs(2).type=Type(Double,Real)
 
24
end
 
25
endfunction