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

« back to all changes in this revision

Viewing changes to macros/m2sci/mfile_path.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 path=mfile_path(nam)
2
 
// Copyright INRIA
3
 
fil=nam+'.m';nf=length(fil)
4
 
path=[];
5
 
for k=1:size(mfiles,'*')
6
 
  pk=mfiles(k);
7
 
  kk=strindex(pk,'/');
8
 
  if fil==part(pk,kk($)+1:length(pk)) then
9
 
    path=pk;
10
 
    break
11
 
  end
12
 
end
13