// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab // Copyright (C) ???? - INRIA - Scilab // // This file must be used under the terms of the CeCILL. // This source file is licensed as described in the file COPYING, which // you should have received as part of this distribution. The terms // are also available at // http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt function funcallname=lst_funcall(fil,fnamvect) // LST_FUNCALL function (used by "translatepaths" function) Creates a list of vectors. The first component of each vector is the name of a M-file (found in the Paths to translate), followed by the called functions by this file // Output // -funcallname : a list of vectors // Input // -fil : vector which contains all M-files names (path+name) found in the Paths // -fnamvect : vector which contains all M-files names (just the name) found in the Paths quote="''"; dquote=""""; k=strindex(fil,".") ke=k($)-1 // Function name ksep=strindex(fil,sep) fnam=part(fil,ksep($)+1:ke) // File name without extension txt=mgetl(fil); kf=grep(txt,["function[","function "]) if isempty(kf) then // Batch file bval=%f elseif size(kf,"*")==1 then // Only one function defined bval=%f else funcdecl=[] for kk=kf ind=strindex(txt(kk),["function[";"function "]) if (ind