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

« back to all changes in this revision

Viewing changes to macros/m2sci/gettempvar.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 var=gettempvar(n)
2
 
// Copyright INRIA
3
 
[lhs,rhs]=argn(0)
4
 
var='%v'
5
 
if level(1)>0 then
6
 
  var=var+string(level(1))
7
 
end
8
 
if level(2)>0 then
9
 
  var=var+'_'+string(level(2))
10
 
end
11
 
if rhs==1 then
12
 
  var=var+'$'+string(n)
13
 
end