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

« back to all changes in this revision

Viewing changes to macros/m2sci/sci_sprintf.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_sprintf()
2
 
 
3
 
// Copyright INRIA
4
 
txt=[] 
5
 
RHS=[]
6
 
nam='mtlb_sprintf'
7
 
for k=1:rhs
8
 
  RHS=[stk(top)(1),RHS]
9
 
  top=top-1
10
 
end
11
 
top=top+1
12
 
if lhs==1 then
13
 
  stk=list(nam+rhsargs(RHS),'0','?','1','10')
14
 
else
15
 
  stk=list()
16
 
  stk(1)=list(nam+rhsargs(RHS),'-1','?','1','10')
17
 
  if lhs>=2 then
18
 
    stk(2)=list(nam+rhsargs(RHS),'-1','1','1','10')
19
 
  end
20
 
end
21